[opensuse-kde] a question about how to develop kde4 app on suse 10.2
Hi, all, I used opensuse 10.2 and installed some package from here: http://software.opensuse.org/download/KDE:/KDE4/openSUSE_10.2/ I had installed cmake, libqt4, strigi, kdelibs, kdepimlibs, kdebase and devel packages for them. And I had followed the article to create my first kde4 app, http://techbase.kde.org/Development/Tutorials/Programming_Tutorial_KDE_4/Fir... When build, gcc way is ok now. But cmake way failed(make and makeobj both failed). Could you give me some hints on this topic? Thanks a lot. 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
On Friday 30 March 2007, Liang Qi said:
I used opensuse 10.2 and installed some package from here: http://software.opensuse.org/download/KDE:/KDE4/openSUSE_10.2/
I had installed cmake, libqt4, strigi, kdelibs, kdepimlibs, kdebase and devel packages for them. And I had followed the article to create my first kde4 app, http://techbase.kde.org/Development/Tutorials/Programming_Tutorial_KDE_4/Fi rst_program
Great! Welcome aboard - that's what the KDE4 packages are there for.
When build, gcc way is ok now. But cmake way failed(make and makeobj both failed).
Could you give me some hints on this topic?
Sure, if you give us the error messages from cmake. regards Will -- Desktop Engineer Interfaces and Applications Team --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
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
Sorry, a typo in CMakeLists.txt, now "cmake ." is ok, but make failed. 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 -- Configuring done -- Generating done -- Build files have been written to: /home/kde-devel/docs/kde4 kde-devel@kde4:~/docs/kde4> make Scanning dependencies of target tutorial1 [100%] Building CXX object CMakeFiles/tutorial1.dir/main.o /home/kde-devel/docs/kde4/main.cpp:1:19: error: QString: No such file or directory /home/kde-devel/docs/kde4/main.cpp:2:24: error: KApplication: No such file or directory /home/kde-devel/docs/kde4/main.cpp:3:22: error: KAboutData: No such file or directory /home/kde-devel/docs/kde4/main.cpp:4:23: error: KMessageBox: No such file or directory /home/kde-devel/docs/kde4/main.cpp:5:24: error: KCmdLineArgs: No such file or directory /home/kde-devel/docs/kde4/main.cpp: In function â: /home/kde-devel/docs/kde4/main.cpp:9: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:9: error: expected `;' before â /home/kde-devel/docs/kde4/main.cpp:12: error: â has not been declared /home/kde-devel/docs/kde4/main.cpp:12: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:13: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:13: error: expected `;' before â /home/kde-devel/docs/kde4/main.cpp:14: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:14: error: expected `;' before â /home/kde-devel/docs/kde4/main.cpp:17: error: â has not been declared /home/kde-devel/docs/kde4/main.cpp:18: error: â was not declared in this scope make[2]: *** [CMakeFiles/tutorial1.dir/main.o] Error 1 make[1]: *** [CMakeFiles/tutorial1.dir/all] Error 2 make: *** [all] Error 2 -- 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
On Sunday 01 April 2007 15:01:58 Liang Qi wrote:
Sorry, a typo in CMakeLists.txt, now "cmake ." is ok, but make failed.
Sounds like you're having a nice Sunday hacking too. Please attach the output of "VERBOSE=1 make". Will -- Will Stephenson Desktop Engineer Interfaces and Applications --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
Just a little boring, not want to any other else. Thanks for reply. kde-devel@kde4:~/docs/kde4> VERBOSE=1 make /usr/bin/cmake -H/home/kde-devel/docs/kde4 -B/home/kde-devel/docs/kde4 --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /home/kde-devel/docs/kde4/CMakeFiles 1 make -f CMakeFiles/Makefile2 all make[1]: Entering directory `/home/kde-devel/docs/kde4' make -f CMakeFiles/tutorial1.dir/build.make CMakeFiles/tutorial1.dir/depend make[2]: Entering directory `/home/kde-devel/docs/kde4' make[2]: Nothing to be done for `CMakeFiles/tutorial1.dir/depend'. make[2]: Leaving directory `/home/kde-devel/docs/kde4' make -f CMakeFiles/tutorial1.dir/build.make CMakeFiles/tutorial1.dir/build make[2]: Entering directory `/home/kde-devel/docs/kde4' /usr/bin/cmake -E cmake_progress_report /home/kde-devel/docs/kde4/CMakeFiles 1 [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-secu rity -fno-exceptions -fno-check-new -fno-common -fno-threadsafe-statics -fvisibility=hidden -O2 -g -D_BSD_SOURCE -o CMakeFiles/tut orial1.dir/main.o -c /home/kde-devel/docs/kde4/main.cpp /home/kde-devel/docs/kde4/main.cpp:1:19: error: QString: No such file or directory /home/kde-devel/docs/kde4/main.cpp:2:24: error: KApplication: No such file or directory /home/kde-devel/docs/kde4/main.cpp:3:22: error: KAboutData: No such file or directory /home/kde-devel/docs/kde4/main.cpp:4:23: error: KMessageBox: No such file or directory /home/kde-devel/docs/kde4/main.cpp:5:24: error: KCmdLineArgs: No such file or directory /home/kde-devel/docs/kde4/main.cpp: In function â: /home/kde-devel/docs/kde4/main.cpp:9: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:9: error: expected `;' before â /home/kde-devel/docs/kde4/main.cpp:12: error: â has not been declared /home/kde-devel/docs/kde4/main.cpp:12: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:13: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:13: error: expected `;' before â /home/kde-devel/docs/kde4/main.cpp:14: error: â was not declared in this scope /home/kde-devel/docs/kde4/main.cpp:14: error: expected `;' before â /home/kde-devel/docs/kde4/main.cpp:17: error: â has not been declared /home/kde-devel/docs/kde4/main.cpp:18: error: â was not declared in this scope make[2]: *** [CMakeFiles/tutorial1.dir/main.o] Error 1 make[2]: Leaving directory `/home/kde-devel/docs/kde4' make[1]: *** [CMakeFiles/tutorial1.dir/all] Error 2 make[1]: Leaving directory `/home/kde-devel/docs/kde4' make: *** [all] Error 2 -- 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
Hi, Will or any other friends in this list, Could you help me about my question? thanks. 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
participants (2)
-
Liang Qi
-
Will Stephenson