Changes to build with CMake 2.6

Frederik Schwarzer schwarzerf at gmail.com
Sun Apr 27 13:11:54 UTC 2008


On Sunday 27 April 2008 12:09:02 Alexander Neundorf wrote:

Hi,

> make VERBOSE=1 and then send the linking command.

I hope that's the right stuff:
First with target_link_libraries( kcm_kdev_valgrindsettings 
${KDE4_KUTILS_LIBS} ${KDEVPLATFORM_INTERFACES_LIBRARY} )

---8<---
[ 22%] Linking CXX shared module ../../lib/kcm_kdev_valgrindsettings.so
Generating kdevvalgrind_automoc.cpp
cd /home/compiler/kde/build/kdevelop/plugins/valgrind && /usr/bin/cmake -E 
cmake_link_script 
CMakeFiles/kcm_kdev_valgrindsettings.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions-fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -g3 -fno-inline -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,kcm_kdev_valgrindsettings.so -o ../../lib/kcm_kdev_valgrindsettings.so 
CMakeFiles/kcm_kdev_valgrindsettings.dir/kcm_kdev_valgrindsettings_automoc.o 
CMakeFiles/kcm_kdev_valgrindsettings.dir/valgrindpreferences.o 
CMakeFiles/kcm_kdev_valgrindsettings.dir/valgrindconfig.o -L/home/compiler/kde/lib /usr/lib/libkutils.so.4.1.0 /home/compiler/kde/lib/libkdevplatforminterfaces.so /usr/lib/libkdeui.so.5.1.0 /usr/lib/libkdecore.so.5.1.0 -lQtSvg -lQtGui -lQtXml -lQtCore -lpthread -lQtNetwork -lQtDBus -Wl,-rpath,/home/compiler/kde/lib:::::::::::::::::::::::
cd /home/compiler/kde/build/kdevelop/plugins/valgrind 
&& /usr/bin/kde4automoc /home/compiler/kde/build/kdevelop/plugins/valgrind/kdevvalgrind_automoc.cpp /home/compiler/kde/src/kdevelop/plugins/valgrind /home/compiler/kde/build/kdevelop/plugins/valgrind /usr/bin/moc-qt4
Generating /home/compiler/kde/build/kdevelop/plugins/valgrind/valgrindplugin.moc 
from /home/compiler/kde/src/kdevelop/plugins/valgrind/valgrindplugin.h
Generating /home/compiler/kde/build/kdevelop/plugins/valgrind/valgrindmodel.moc 
from /home/compiler/kde/src/kdevelop/plugins/valgrind/valgrindmodel.h
In file included 
from /home/compiler/kde/src/kdevelop/languages/cpp/debugger/breakpointcontroller.h:39,
                 
from /home/compiler/kde/src/kdevelop/languages/cpp/debugger/breakpoint.cpp:28:
/home/compiler/kde/src/kdevelop/languages/cpp/debugger/util/treeitem.h:30: 
warning: unused parameter ‘index’
/home/compiler/kde/src/kdevelop/languages/cpp/debugger/util/treeitem.h:30: 
warning: unused parameter ‘data’
Generating /home/compiler/kde/build/kdevelop/plugins/valgrind/valgrindcontrol.moc 
from /home/compiler/kde/src/kdevelop/plugins/valgrind/valgrindcontrol.h
Generating /home/compiler/kde/build/kdevelop/plugins/valgrind/valgrindtree.moc 
from /home/compiler/kde/src/kdevelop/plugins/valgrind/valgrindtree.h
Generating /home/compiler/kde/build/kdevelop/plugins/valgrind/valgrindwidget.moc 
from /home/compiler/kde/src/kdevelop/plugins/valgrind/valgrindwidget.h
cd /home/compiler/kde/build/kdevelop && /usr/bin/cmake -E cmake_depends "Unix 
Makefiles" /home/compiler/kde/src/kdevelop /home/compiler/kde/src/kdevelop/plugins/valgrind /home/compiler/kde/build/kdevelop /home/compiler/kde/build/kdevelop/plugins/valgrind /home/compiler/kde/build/kdevelop/plugins/valgrind/CMakeFiles/kdevvalgrind.dir/DependInfo.cmake --color=
Dependee "/home/compiler/kde/build/kdevelop/plugins/valgrind/CMakeFiles/kdevvalgrind.dir/DependInfo.cmake" 
is newer than 
depender "/home/compiler/kde/build/kdevelop/plugins/valgrind/CMakeFiles/kdevvalgrind.dir/depend.internal".
CMakeFiles/kcm_kdev_valgrindsettings.dir/valgrindpreferences.o: In function 
`Ui_ValgrindSettings::setupUi(QWidget*)':
/home/compiler/kde/build/kdevelop/plugins/valgrind/ui_valgrindsettings.h:92: 
undefined reference to `KUrlRequester::KUrlRequester(QWidget*)'
collect2: ld returned 1 exit status
make[2]: *** [lib/kcm_kdev_valgrindsettings.so] Error 1
make[2]: Leaving directory `/home/compiler/kde/build/kdevelop'
make[1]: *** [plugins/valgrind/CMakeFiles/kcm_kdev_valgrindsettings.dir/all] 
Error 2
make[1]: *** Waiting for unfinished jobs....
--->8---


And now with target_link_libraries( kcm_kdev_valgrindsettings 
${KDE4_KUTILS_LIBS} ${KDEVPLATFORM_INTERFACES_LIBRARY} ${KDE4_KIO_LIBS} )

---8<---
Linking CXX shared module ../../lib/kcm_kdev_valgrindsettings.so
cd /home/compiler/kde/build/kdevelop/plugins/valgrind && /usr/bin/cmake -E 
cmake_link_script 
CMakeFiles/kcm_kdev_valgrindsettings.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions-fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -fvisibility-inlines-hidden -g3 -fno-inline -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,kcm_kdev_valgrindsettings.so -o ../../lib/kcm_kdev_valgrindsettings.so 
CMakeFiles/kcm_kdev_valgrindsettings.dir/kcm_kdev_valgrindsettings_automoc.o 
CMakeFiles/kcm_kdev_valgrindsettings.dir/valgrindpreferences.o 
CMakeFiles/kcm_kdev_valgrindsettings.dir/valgrindconfig.o -L/home/compiler/kde/lib /usr/lib/libkutils.so.4.1.0 /home/compiler/kde/lib/libkdevplatforminterfaces.so /usr/lib/libkio.so.5.1.0 /usr/lib/libkdeui.so.5.1.0 /usr/lib/libkdecore.so.5.1.0 -lQtSvg -lQtGui -lQtXml -lQtCore -lpthread -lQtNetwork -lQtDBus -Wl,-rpath,/home/compiler/kde/lib:::::::::::::::::::::::
/home/compiler/kde/src/kdevelop/languages/cpp/debugger/memviewdlg.cpp:460: 
warning: unused parameter ‘oldState’
make[2]: Leaving directory `/home/compiler/kde/build/kdevelop'
/usr/bin/cmake -E 
cmake_progress_report /home/compiler/kde/build/kdevelop/CMakeFiles  53 54
[ 24%] Built target kcm_kdev_valgrindsettings
/usr/bin/cmake -E 
cmake_progress_report /home/compiler/kde/build/kdevelop/CMakeFiles
[ 24%] Building CXX object 
languages/cpp/debugger/CMakeFiles/kdevcppdebugger.dir/gdboutputwidget.o
--->8---

Cheers




More information about the KDevelop-devel mailing list