Web lists-archives.com

KF5 Conversion problems




This is my first KDE4->KF5 conversion so brace for a lot of n00b questions! To 
start I am getting compile failures because the wrong include files are 
getting picked up:

[8/10] Building CXX object 
src/CMakeFiles/kmtail.dir/kmtail_autogen/mocs_compilation.cpp.o
FAILED: src/CMakeFiles/kmtail.dir/kmtail_autogen/mocs_compilation.cpp.o 
/usr/bin/c++  -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DISABLE_DEPRECATED_BEFORE=0 
-DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_WIDGETS_LIB -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -Isrc -I../src -Isrc/kmtail_autogen/include -isystem 
/usr/include/KF5/KWidgetsAddons -isystem /usr/include/KF5 -isystem 
/usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem 
/usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem 
/usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/KF5/KIOWidgets -isystem 
/usr/include/KF5/KIOCore -isystem /usr/include/KF5/KCoreAddons -isystem 
/usr/include/KF5/KService -isystem /usr/include/KF5/KConfigCore -isystem 
/usr/include/KF5/KJobWidgets -isystem /usr/include/qt5/QtNetwork -isystem 
/usr/include/KF5/KCompletion -std=c++0x -fno-operator-names -fno-exceptions -
Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -
Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-
type -Wvla -Wdate-time -fdiagnostics-color=always -g -fvisibility=hidden -
fvisibility-inlines-hidden   -fPIC -std=gnu++11 -MD -MT 
src/CMakeFiles/kmtail.dir/kmtail_autogen/mocs_compilation.cpp.o -MF 
src/CMakeFiles/kmtail.dir/kmtail_autogen/mocs_compilation.cpp.o.d -o 
src/CMakeFiles/kmtail.dir/kmtail_autogen/mocs_compilation.cpp.o -c 
src/kmtail_autogen/mocs_compilation.cpp
In file included from /usr/include/kfontdialog.h:27:0,
                 from src/ui_kmconf.h:27,
                 from 
src/kmtail_autogen/EWIEGA46WW/../../../../src/kmconf.h:26,
                 from src/kmtail_autogen/EWIEGA46WW/moc_kmconf.cpp:9,
                 from src/kmtail_autogen/mocs_compilation.cpp:2:
/usr/include/kdialog.h:35:25: fatal error: QtGui/QDialog: No such file or 
directory
 #include <QtGui/QDialog>

There is a KDE4Support in the findpackage for KF5 so the c++ call should 
include a -isystem /usr/include/KF5/KDELibs4Support to my thinking but 
doesn't. But cmake reports:
 * KF5KDE4Support (required version >= 5.31.0)

so it should have been picked up. What have I missed here?

Thanks
Robin
-- 









-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.