[CMake] a problem about cmake and kde 4 on opensuse 10.2

Bill Hoffman hoffman.mlist at gmail.com
Wed Apr 11 11:11:32 EDT 2007


Liang Qi wrote:
> Hi, all,
>
>
> Could you give me some hints on this topic?
>
> Thanks a lot. Following is the build log:
>
> In gcc way, I used,
> gcc main.cpp -o tutorial1 -I/usr/include -I/usr/include/Qt
> -I/usr/include/QtCore -I/usr/include/KDE -L/usr/lib -lQtCore -lQtGui
> -lkdeui -lkdecore
>
> It's ok.
>
> In cmake way,
>
> kde-devel at kde4:~/docs/kde4> cmake . 
....
>
> [100%] Building CXX object CMakeFiles/tutorial1.dir/main.o
> /usr/bin/c++   -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef
> -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
> -Wformat-security -fno-exception
> s -fno-check-new -fno-common -fno-threadsafe-statics
> -fvisibility=hidden -O2 -g   -D_BSD_SOURCE -o
So, the cmake build has no -I paths, can you post the CMakeLists.txt 
file you are using?  If I had to guess without seeing it, I would say 
that you misspelled KDE4_INCLUDES on this line:
include_directories( ${KDE4_INCLUDES} )

-Bill




More information about the CMake mailing list