Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

QT5 build #13

Closed
lamskoy opened this issue Apr 4, 2016 · 6 comments
Closed

QT5 build #13

lamskoy opened this issue Apr 4, 2016 · 6 comments

Comments

@lamskoy
Copy link

lamskoy commented Apr 4, 2016

Building in ArchLinux from AUR. Modified PKGBUILD for QT5 support.
Getting error:

g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -std=gnu++0x -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -I. -I.ui -isystem /usr/include/psi-plus/plugins -isystem /usr/include/qt -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtXml -isystem /usr/include/qt/QtCore -I.moc -I.ui -I/usr/lib/qt/mkspecs/linux-g++ -o .obj/attentionplugin.o attentionplugin.cpp

In file included from /usr/include/qt/QtCore/qchar.h:37:0,
from /usr/include/qt/QtCore/qstring.h:41,
from /usr/include/qt/QtCore/qdir.h:37,
from /usr/include/qt/QtWidgets/qfiledialog.h:37,
from /usr/include/qt/QtWidgets/QFileDialog:1,
from attentionplugin.cpp:21:
attentionplugin.cpp:147:1: error: static assertion failed: Old plugin system used
Q_EXPORT_PLUGIN(AttentionPlugin);

^
Makefile:436: recipe for target '.obj/attentionplugin.o' failed

@lamskoy
Copy link
Author

lamskoy commented Apr 4, 2016

Was able to build psi-plus-git package from AUR with QT5 btw - works good

@lamskoy
Copy link
Author

lamskoy commented Apr 4, 2016

Not sure this solution will work:
http://stackoverflow.com/questions/22394477/how-to-create-plugins-qt-5-2-0

@lamskoy
Copy link
Author

lamskoy commented Apr 4, 2016

@Vitozz
Copy link
Contributor

Vitozz commented Apr 5, 2016

Your plugins psi-plus-plugins-git-0.15.467-1.src.tar.gz are old. Try to use git repository sources to build plugins. All plugins are compiled without any problems with qt5.

@lamskoy
Copy link
Author

lamskoy commented Apr 5, 2016

@Vitozz Sources are up-to-date. It just takes 0.15.467 from git tags

$ git describe --tags | cut -d - -f 1-2 --output-delimiter=.
0.15.467

Found what happens. HAVE_QT5 is not set.

@lamskoy
Copy link
Author

lamskoy commented Apr 5, 2016

ok now all fine
DEFINES += HAVE_QT5
fixed build

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants