Trying to build KDE4/kdelibs for the first time (with cmake)

Kurt Pfeifle k1pfeifle at gmx.net
Sun Jan 29 19:26:04 CET 2006


[cmake run without errors)

-------------------- snip -------------------------------------------------------
kdev4-[SCR]@horizon:~/src/kde40svn/trunk/KDE/kdelibs> make
/usr/local/bin/cmake -H/home/kdev4/src/kde40svn/trunk/KDE/kdelibs -B/home/kdev4/src/kde40svn/trunk/KDE/kdelibs --check-build-system CMakeFiles/Makefile.cmake 0
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/home/kdev4/src/kde40svn/trunk/KDE/kdelibs'
make -f dcop/CMakeFiles/DCOP.dir/build.make dcop/CMakeFiles/DCOP.dir/depend
make[2]: Entering directory `/home/kdev4/src/kde40svn/trunk/KDE/kdelibs'
make[2]: Nothing to be done for `dcop/CMakeFiles/DCOP.dir/depend'.
make[2]: Leaving directory `/home/kdev4/src/kde40svn/trunk/KDE/kdelibs'
make -f dcop/CMakeFiles/DCOP.dir/build.make dcop/CMakeFiles/DCOP.dir/build
make[2]: Entering directory `/home/kdev4/src/kde40svn/trunk/KDE/kdelibs'
Linking CXX shared library ../lib/libDCOP.so
cd /home/kdev4/src/kde40svn/trunk/KDE/kdelibs/dcop && /usr/local/bin/cmake -E remove -f ../lib/libDCOP.a ../lib/libDCOP.so.4.2.0 ../lib/libDCOP.so.4 ../lib/libDCOP.so
cd /home/kdev4/src/kde40svn/trunk/KDE/kdelibs/dcop && /usr/bin/c++  -fPIC -Wl,--fatal-warnings -avoid-version -Wl,--no-undefined -lc -shared -Wl,-soname,libDCOP.so.4 -o ../lib/libDCOP.so.4.2.0 "CMakeFiles/DCOP.dir/dcopstub.o" "CMakeFiles/DCOP.dir/dcopref.o" "CMakeFiles/DCOP.dir/dcopobject.o" "CMakeFiles/DCOP.dir/dcopclient.o" "CMakeFiles/DCOP.dir/accept.o" "CMakeFiles/DCOP.dir/authutil.o" "CMakeFiles/DCOP.dir/connect.o" "CMakeFiles/DCOP.dir/error.o" "CMakeFiles/DCOP.dir/getauth.o" "CMakeFiles/DCOP.dir/iceauth.o" "CMakeFiles/DCOP.dir/listen.o" "CMakeFiles/DCOP.dir/listenwk.o" "CMakeFiles/DCOP.dir/locking.o" "CMakeFiles/DCOP.dir/misc.o" "CMakeFiles/DCOP.dir/ping.o" "CMakeFiles/DCOP.dir/process.o" "CMakeFiles/DCOP.dir/protosetup.o" "CMakeFiles/DCOP.dir/register.o" "CMakeFiles/DCOP.dir/replywait.o" "CMakeFiles/DCOP.dir/setauth.o" "CMakeFiles/DCOP.dir/shutdown.o" "CMakeFiles/DCOP.dir/watch.o" "CMakeFiles/DCOP.dir/transport.o" "CMakeFiles/DCOP.dir/globals.o"  -L/home/kdev4/src/kde40svn/trunk/KDE/kdelibs/lib -L/opt/kde40svn/qt-copy-kde40svn/lib -L/usr/local/lib -lQtCore -lpthread -Wl,-rpath,/home/kdev4/src/kde40svn/trunk/KDE/kdelibs/lib:/opt/kde40svn/qt-copy-kde40svn/lib:/usr/local/lib
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lQtCore
collect2: ld returned 1 exit status
make[2]: *** [lib/libDCOP.so.4.2.0] Error 1
make[2]: Leaving directory `/home/kdev4/src/kde40svn/trunk/KDE/kdelibs'
make[1]: *** [dcop/CMakeFiles/DCOP.dir/all] Error 2
make[1]: Leaving directory `/home/kdev4/src/kde40svn/trunk/KDE/kdelibs'
make: *** [all] Error 2

kdev4-[SCR]@horizon:~/src/kde40svn/trunk/KDE/kdelibs> echo $QTDIR
/opt/kde40svn/qt-copy-kde40svn

kdev4-[SCR]@horizon:~/src/kde40svn/trunk/KDE/kdelibs> ls -l /opt/kde40svn/qt-copy-kde40svn/lib/libQt*|wc
     66     594    8142

kdev4-[SCR]@horizon:~/src/kde40svn/trunk/KDE/kdelibs> ls -l /opt/kde40svn/qt-copy-kde40svn/include/QtCore/|wc
    274    2186   16249

kdev4-[SCR]@horizon:~/src/kde40svn/trunk/KDE/kdelibs> ls -l /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore*.*|wc
      6      54     721

kdev4-[SCR]@horizon:~/src/kde40svn/trunk/KDE/kdelibs> ls -l /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore*
-rw-r--r--  1 root root      776 2006-01-29 17:57 /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore_debug.la
-rw-r--r--  1 root root      766 2006-01-29 17:57 /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore_debug.prl
lrwxrwxrwx  1 root root       24 2006-01-29 17:57 /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore_debug.so -> libQtCore_debug.so.4.1.0
lrwxrwxrwx  1 root root       24 2006-01-29 17:57 /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore_debug.so.4 -> libQtCore_debug.so.4.1.0
lrwxrwxrwx  1 root root       24 2006-01-29 17:57 /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore_debug.so.4.1 -> libQtCore_debug.so.4.1.0
-rwxr-xr-x  1 root root 12863594 2006-01-29 17:57 /opt/kde40svn/qt-copy-kde40svn/lib/libQtCore_debug.so.4.1.0

-------------------- snip -------------------------------------------------------

What could be the problem? Why is it that I get "cannot find -lQtCore" when
my QTDIR is set and not an empty directory? 
(note, I built qt-copy with "--prefix=/opt/kde40svn/qt-copy-kde40svn" and 
did run "make install" with no apparent error)

Cheers,
Kurt


More information about the Kde-buildsystem mailing list