cmake can't find Q_WS_MAC

younker mac.younker at gmail.com
Sat Mar 17 11:11:30 GMT 2007


Hi, all

I built Qt 4.2.3 with qt-copy patch, but when I use cmake to build kde 
stuffs, it can't find Q_WS_MAC macro, this caused kdelibs build failed 
at linking libkdeui.dylib because kglobalaccel_mac.[h, cpp] are not 
compiled and linked.  so it raised the following error:
[ 20%] Building CXX object kdeui/CMakeFiles/kdeui.dir/liveui/kliveui.o
[ 20%] Building CXX object 
kdeui/CMakeFiles/kdeui.dir/windowmanagement/kwin.o
[ 20%] Building CXX object 
kdeui/CMakeFiles/kdeui.dir/windowmanagement/kwinmodule.o
[ 20%] Building CXX object 
kdeui/CMakeFiles/kdeui.dir/windowmanagement/netwm.o
Linking CXX shared library ../lib/libkdeui.dylib
ld: Undefined symbols:
__ZN16KGlobalAccelImpl6enableEv
__ZN16KGlobalAccelImpl7disableEv
__ZN16KGlobalAccelImpl7grabKeyEib
__ZN16KGlobalAccelImplC1EP12KGlobalAccel
/usr/bin/libtool: internal link edit command failed
make[2]: *** [lib/libkdeui.5.0.0.dylib] Error 1
make[1]: *** [kdeui/CMakeFiles/kdeui.dir/all] Error 2
make: *** [all] Error 2

I searched google and someone said that it depends on qmake, with the 
right qmake installation, cmake will get Q_WS_MAC, but I tried to run 
qmake -query QT_INSTALL_HEADERS, result is /usr/local/Qt4/include, which 
is not the correct header file location for Qt main library.

So what should I modify to make kdelibs built?

younker
mac.younker at google.com




More information about the kde-core-devel mailing list