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@kde4:~/docs/kde4> cmake . -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Check size of void* -- Check size of void* - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Looking for Q_WS_X11 -- Looking for Q_WS_X11 - found -- Looking for Q_WS_MAC -- Looking for Q_WS_MAC - not found. -- Looking for Q_WS_WIN -- Looking for Q_WS_WIN - not found. -- Found Qt-Version 4.3.0beta -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so -- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/libX11.so -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Performing Test HAVE_FPIE_SUPPORT -- Performing Test HAVE_FPIE_SUPPORT - Success -- Performing Test __KDE_HAVE_NO_THREADSAFE_STATICS -- Performing Test __KDE_HAVE_NO_THREADSAFE_STATICS - Success -- Performing Test __KDE_HAVE_GCC_VISIBILITY -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success -- Found KDE4 include dir: /usr/include -- Found KDE4 library dir: /usr/lib -- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler CMake Error: Attempt to add link library "/usr/lib/libQtSvg.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libQtCore.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "-lpthread" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "kdecore" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "-lSM" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libICE.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libX11.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libXext.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libXft.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libXau.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libXdmcp.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libXpm.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libQt3Support.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libQtGui.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libQtXml.so" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "kdefx" to target "tutorial1" which is not built by this project. CMake Error: Attempt to add link library "/usr/lib/libkdeui.so" to target "tutorial1" which is not built by this project. -- Configuring done Then if I use make directly, kde-devel@kde4:~/docs/kde4> make make: *** No targets specified and no makefile found. Stop. If I use makeobj.sh and .bashrc(which are from kde.org), http://techbase.kde.org/Getting_Started/Build/KDE4 Result is: kde-devel@kde4:~/docs/kde4> make no objdir found. Tried /home/kde-devel/docs/kde4 That's all what I have. Thanks in advance. Regards, Liang Qi -- http://www.qiliang.net http://www.qtopia.org.cn http://cavendishqi.blogspot.com http://www.kdecn.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org