Image 01
profile-image

dotnetCarpenter

Jon Ronnenberg
KaffeineTY

Various KDE 1.-4. Improvements by keluoinhac 19 comments

Unfortunately the make command fails:
Quote:Scanning dependencies of target kaffeinety_automoc
Generating moc_kaffeinety.cpp
[ 0%] Built target kaffeinety_automoc
[ 10%] Generating config.h, config.cpp
Scanning dependencies of target kaffeinety
[ 20%] Building CXX object app/CMakeFiles/kaffeinety.dir/kaffeinety_automoc.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QObject:1:0,
from /home/dotnet/projects/opensource/kaffeinety/build/app/../../app/kaffeinety.h:23,
from /home/dotnet/projects/opensource/kaffeinety/build/app/moc_kaffeinety.cpp:9,
from /home/dotnet/projects/opensource/kaffeinety/build/app/kaffeinety_automoc.cpp:4:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:50:33: fatal error: QtCore/qobject_impl.h: No such file or directory
#include <QtCore/qobject_impl.h>
- Aug 02 2015
KaffeineTY

Various KDE 1.-4. Improvements by keluoinhac 19 comments

Unfortunately the make command fails:
Quote:Scanning dependencies of target kaffeinety_automoc
Generating moc_kaffeinety.cpp
[ 0%] Built target kaffeinety_automoc
[ 10%] Generating config.h, config.cpp
Scanning dependencies of target kaffeinety
[ 20%] Building CXX object app/CMakeFiles/kaffeinety.dir/kaffeinety_automoc.o
In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/QObject:1:0,
from /home/dotnet/projects/opensource/kaffeinety/build/app/../../app/kaffeinety.h:23,
from /home/dotnet/projects/opensource/kaffeinety/build/app/moc_kaffeinety.cpp:9,
from /home/dotnet/projects/opensource/kaffeinety/build/app/kaffeinety_automoc.cpp:4:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:50:33: fatal error: QtCore/qobject_impl.h: No such file or directory
#include <QtCore/qobject_impl.h>
- Aug 02 2015
KaffeineTY

Various KDE 1.-4. Improvements by keluoinhac 19 comments

I think it works now. I ended up with the following cmake arguments:

cmake -DCMAKE_INSTALL_PREFIX=/usr -DQT_QT_INCLUDE_DIR=/usr/include/qt4 /home/dotnet/projects/opensource/kaffeinety/
- Aug 02 2015
KaffeineTY

Various KDE 1.-4. Improvements by keluoinhac 19 comments

I have both qt4 (/usr/share/qt4) and qt5 (/usr/share/qt5).
When I try to build I get the following error:
Quote:
-- Found Qt-Version 5.4.1 (using /usr/bin/qmake)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /home/dotnet/projects/opensource/kaffeinety/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed

CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1316 (message):
Unable to compile a basic Qt application. Qt has not been found correctly.
Call Stack (most recent call first):
/usr/share/cmake-3.0/Modules/FindKDE4.cmake:108 (find_package)
CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/dotnet/projects/opensource/kaffeinety/build/CMakeFiles/CMakeOutput.log".
See also "/home/dotnet/projects/opensource/kaffeinety/build/CMakeFiles/CMakeError.log".
dotnet@s440:~/projects/opensource/kaffeinety/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_QT_QT_INCLUDE_DIR=/usr/bin/qmake-qt4 /home/dotnet/projects/opensource/kaffeinety/
-- Found Qt-Version 5.4.1 (using /usr/bin/qmake)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
used as include directory in directory /home/dotnet/projects/opensource/kaffeinety/build/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed
- Aug 02 2015