Hi I have qt4 and qt5 installed but I try to install compile kde only with qt4 support by adding this option -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4 to cmake. Somehow some application still check for qt5 e.g. akonadi. But it gives me the following compilation error Linking CXX executable ../bin/akonadi_agent_server CMakeFiles/akonadi_agent_server.dir/agentserver.cpp.o: In function `Akonadi::AgentServer::startAgent(QString const&, QString const&, QString const&)': /home/joker/kdesrc/kdesupport/akonadi/agentserver/agentserver.cpp:66: undefined reference to `akDebug()' Any Ideas why? Is there a possibility to prevent akonadi and other kde application to compile for qt5? Thanks for your great work Reproducible: Always
>Linking CXX executable ../bin/akonadi_agent_server CMakeFiles/akonadi_agent_server.dir/agentserver.cpp.o: In function `Akonadi::AgentServer::startAgent(QString const&, QString const&, QString const&)': >/home/joker/kdesrc/kdesupport/akonadi/agentserver/agentserver.cpp:66: undefined reference to `akDebug()' It would help if you build with 'VERBOSE=1 make -j1' and paste the command that leads to this error (the line that's just before)
Created attachment 77913 [details] cmake and make output
Hi Thanks a lot for your reply. I just attached the requested output.
I tested both the Qt4 & Qt5 build. So far, no issue. I can only assume your build error comes from the arch linux decision to make qmake point to the Qt5 version. Please also read this thread: http://mail.kde.org/pipermail/kde-buildsystem/2013-March/009166.html Now, I'm also not convinced it makes any sense to build Akonadi using Qt5 for the moment.
Hi Christophe Thanks a lot for your response. Yes, I only wanna compile it for qt4 for now. I just tried to recompile akonadi and now this error didn't show up anymore. Though I had a different error which probably is due to the fact that I didn't recompile the other apps with qt5 installed. I tried to prevent the use of the qt5 libs by reordering the qmake list in FindQt4.cmake but it didn't have an effect...
I've no idea how arch packages things. Are the development and runtime files shipped together or in different packages ?
They ship it with the development files. See here: http://unix.stackexchange.com/questions/28972/why-are-there-no-dev-packages-in-arch-linux
Git commit d73b5301992ad8152a296ccb9de00c8f2fc3901f by Christophe Giboudeaux. Committed on 15/03/2013 at 16:46. Pushed by cgiboudeaux into branch '1.9'. Add an option to choose which Qt version we need Previously we were looking for Qt5 first then Qt4 as a fallback. This fails for arch linux users. passing -DQT5_BUILD=TRUE is now necessary to build Akonadi with Qt5. FIXED-IN: 1.9.2 M +10 -10 CMakeLists.txt http://commits.kde.org/akonadi/d73b5301992ad8152a296ccb9de00c8f2fc3901f