problems building kde-workspace

Samuel Memmel mail at samuel-memmel.de
Sat Jan 4 12:26:47 GMT 2014


the reason why QtCore was not found, was cmake searched for a
libQtCore.so but in my qt5 build lib dir the file where named libQt5*.
Linking the libQt5* files to libQt* files fixed this problem. But now
cmake says the QT_QT_INCLUDE_PATH is set to NOTFOUND?!?

which says that I'm using the right cmake...

which cmake
/media/hdd/kde4/bin/cmake

also qmake is right

which qmake
/media/hdd/kde4/bin/cmake

and

qmake -query
QT_SYSROOT:
QT_INSTALL_PREFIX:/media/hdd/src/kde/qt5/qtbase
QT_INSTALL_ARCHDATA:/media/hdd/src/kde/qt5/qtbase
QT_INSTALL_DATA:/media/hdd/src/kde/qt5/qtbase
QT_INSTALL_DOCS:/media/hdd/src/kde/qt5/qtbase/doc
QT_INSTALL_HEADERS:/media/hdd/src/kde/qt5/qtbase/include
QT_INSTALL_LIBS:/media/hdd/src/kde/qt5/qtbase/lib
QT_INSTALL_LIBEXECS:/media/hdd/src/kde/qt5/qtbase/libexec
QT_INSTALL_BINS:/media/hdd/src/kde/qt5/qtbase/bin
QT_INSTALL_TESTS:/media/hdd/src/kde/qt5/qtbase/tests
QT_INSTALL_PLUGINS:/media/hdd/src/kde/qt5/qtbase/plugins
QT_INSTALL_IMPORTS:/media/hdd/src/kde/qt5/qtbase/imports
QT_INSTALL_QML:/media/hdd/src/kde/qt5/qtbase/qml
QT_INSTALL_TRANSLATIONS:/media/hdd/src/kde/qt5/qtbase/translations
QT_INSTALL_CONFIGURATION:/media/hdd/src/kde/qt5/qtbase/etc/xdg
QT_INSTALL_EXAMPLES:/media/hdd/src/kde/qt5/qtbase/examples
QT_INSTALL_DEMOS:/media/hdd/src/kde/qt5/qtbase/examples
QT_HOST_PREFIX:/media/hdd/src/kde/qt5/qtbase
QT_HOST_DATA:/media/hdd/src/kde/qt5/qtbase
QT_HOST_BINS:/media/hdd/src/kde/qt5/qtbase/bin
QT_HOST_LIBS:/media/hdd/src/kde/qt5/qtbase/lib
QMAKE_SPEC:linux-g++
QMAKE_XSPEC:linux-g++
QMAKE_VERSION:3.0
QT_VERSION:5.2.1




On 04.01.2014 10:21, Samuel Memmel wrote:
> the problem why kdelibs does not compile: there is no Q_WS_X11 defined
> in my qt5 source.
> 
> 
> Run Build Command:/usr/bin/make "cmTryCompileExec3363922561/fast"
> /usr/bin/make -f CMakeFiles/cmTryCompileExec3363922561.dir/build.make
> CMakeFiles/cmTryCompileExec3363922561.dir/build
> make[1]: Entering directory
> '/media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp'
> /usr/bin/cmake -E cmake_progress_report
> /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp/CMakeFiles 1
> Building C object
> CMakeFiles/cmTryCompileExec3363922561.dir/CheckSymbolExists.c.o
> /usr/bin/cc   -I/media/hdd/src/kde/qt5/qtbase/include    -o
> CMakeFiles/cmTryCompileExec3363922561.dir/CheckSymbolExists.c.o   -c
> /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp/CheckSymbolExists.c
> /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
> In Funktion »main«:
> /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
> Fehler: »Q_WS_X11« nicht deklariert (erste Benutzung in dieser Funktion)
>    return ((int*)(&Q_WS_X11))[argc];
>                    ^
> /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8:19:
> Anmerkung: jeder nicht deklarierte Bezeichner wird nur einmal für jede
> Funktion, in der er vorkommt, gemeldet
> CMakeFiles/cmTryCompileExec3363922561.dir/build.make:60: recipe for
> target 'CMakeFiles/cmTryCompileExec3363922561.dir/CheckSymbolExists.c.o'
> failed
> make[1]: ***
> [CMakeFiles/cmTryCompileExec3363922561.dir/CheckSymbolExists.c.o] Error 1
> make[1]: Leaving directory
> '/media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp'
> Makefile:117: recipe for target 'cmTryCompileExec3363922561/fast' failed
> make: *** [cmTryCompileExec3363922561/fast] Error 2
> 
> File
> /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
> /* */
> #include <QtCore/qglobal.h>
> 
> int main(int argc, char** argv)
> {
>   (void)argv;
> #ifndef Q_WS_X11
>   return ((int*)(&Q_WS_X11))[argc];
> #else
>   (void)argc;
>   return 0;
> #endif
> }
> 
> On 03.01.2014 18:01, Samuel Memmel wrote:
>> On 03.01.2014 15:41, Burkhard Lück wrote:
>>> Am Freitag, 3. Januar 2014, 14:58:01 schrieb Samuel Memmel:
>>>
>>>> I only find plasma-framework if I search for PlasmaConfig.cmake but
>>>> plasma-framework won't compile and it is located in the playground
>>>
>>> But you will need plasma-framework (with KF5PlasmaConfig.cmake.in), see 
>>> http://community.kde.org/Frameworks/Building/Details
>>>
>> It's me again. I can't compile kdelibs. cmake break...
>>
>> cmake says it can't find QtCore but QtCore and qglobal.h are at the
>> right place.
>>
>> echo $QTDIR
>> /media/hdd/src/kde/qt5/qtbase
>>
>> the environment variables depending on qtdir are also correct (PATH,
>> QT_PLUGIN_PATH, QML2_IMPORT_PATH)
>>
>> The file qglobal.h is at the right place:
>> /media/hdd/src/kde/qt5/qtbase/include/QtCore/qglobal.h
>>
>>
>> qtdir in ~/.kdesrc-buildrc is set to /media/hdd/src/kde/qt5/qtbase but
>> testing it, it don't makes any difference if it is set to qtdir
>> /media/hdd/src/kde/qt5/
>>
>> Here are the interesting parts of the build logs:
>>
>> cmake.log
>>
>> CMake Error at cmake/modules/FindQt4.cmake:886 (MESSAGE):
>>   Could NOT find QtCore.  Check
>>   /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeError.log for more
>>   details.
>> Call Stack (most recent call first):
>>   cmake/modules/FindKDE4Internal.cmake:420 (find_package)
>>   CMakeLists.txt:56 (find_package)
>>
>>
>> -- Configuring incomplete, errors occurred!
>> See also "/media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeOutput.log".
>> See also "/media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeError.log".
>>
>> CMakeError.log:
>> File
>> /media/hdd/src/kde/build/kde/kdelibs/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
>> /* */
>> #include <QtCore/qglobal.h>
>>
>> int main(int argc, char** argv)
>> {
>>   (void)argv;
>> #ifndef Q_WS_MAC
>>   return ((int*)(&Q_WS_MAC))[argc];
>> #else
>>   (void)argc;
>>   return 0;
>> #endif
>> }
>>
>>
>>
> 

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list