trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2011

KDEBASE - Build error

From: Baho Utot <baho-utot@...>
Date: Sun, 27 Mar 2011 10:12:51 -0400
I am having the following problem:

[ 55%] Building CXX object 
ksplashml/themeengine/simple/CMakeFiles/ksplashsimple.dir/main.cpp.o
Linking CXX executable ksplashsimple
/usr/bin/ld: cannot find -ltqt
/usr/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
make[2]: *** [ksplashml/themeengine/simple/ksplashsimple] Error 1
make[1]: *** [ksplashml/themeengine/simple/CMakeFiles/ksplashsimple.dir/all] 
Error 2
make[1]: *** Waiting for unfinished jobs....
[ 55%] Building CXX object 
ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/shutdown.cpp.o
[ 55%] Building CXX object 
ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/client.cpp.o
[ 56%] Building CXX object 
ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/KSMServerInterface_skel.cpp.o
[ 56%] Building CXX object 
ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/server_skel.cpp.o
[ 56%] Building CXX object 
ksmserver/CMakeFiles/kdeinit_ksmserver-shared.dir/timed.cpp.o
Linking CXX shared library libkdeinit_ksmserver.so
[ 56%] Built target kdeinit_ksmserver-shared
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
Build failed, check /home/build/scrat/build
make: *** [KDEBASE] Error 1

I don't understand why this is failing here as other modules are not failing.
The patched qt3 is install and so is tqtinterface, the packages that contain 
the libarayies in question.

I have looked at the CmakeLists.txt for serveral modules and compared them to 
the one in ksplashsimple and I don't see anything that would cause this 
error.  Since I don't know cmake I am stuck at this time.

Where is this set ie ${TQT_LIBRARY_DIRS}
link_directories(
  ${TQT_LIBRARY_DIRS}
)

If anyone could point me in the right direction and maybe explain about how 
cmake finds libaries I would be grateful.  I want to learn this in case of 
future problems.   I am going to purchase a book on cmake in the future when 
I get the money to do so.

Thanks