trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] SOLVED Re: [trinity-devel] kpowersave - /usr/bin/ld: cannot find -ldbus-tqt-1

From: Darrell Anderson <humanreadable@...>
Date: Mon, 19 Mar 2012 10:52:09 -0700 (PDT)
> > Nope. I think DBUS_TQT_LIBRARY_DIRS is not passed to
> linker. Try to add this 
> > to src/CMakeLists.txt:
> > 
> > link_directories(
> >   ${TQT_LIBRARY_DIRS}
> >   ${DBUS_TQT_LIBRARY_DIRS}
> > )
> 
> You were correct sir! I added ${DBUS_TQT_LIBRARY_DIRS} as
> indicated above and
> kpowersave built just fine. After adding it, the library was
> included:
> 
> <snip>
> CMakeFiles/tdeinit_kpowersave-shared.dir/suspend_Dialog.cpp.o
> -L/opt/tqt3/lib
> -L/opt/trinity/lib -ldbus-tqt-1 -ldbus-1 -lpthread -lrt
> /opt/trinity/lib/libkio.so.4.2.0 -lhal -lXext -lXtst -lXss
> /opt/trinity/lib/libtdeui.so.4.2.0 -lfreetype -lfontconfig
> /opt/trinity/lib/libtdesu.so.4.2.0 -lutil
> /opt/trinity/lib/libkwalletclient.so.1.0.1
> /opt/trinity/lib/libtdecore.so.4.2.0
> /opt/trinity/lib/libDCOP.so.4.2.0
> /opt/trinity/lib/libtdefx.so.4.2.0 -ltqt
> -ltqt-mt -lXrender -lX11 -lz -lidn -lXcomposite -lICE -lSM
> -Wl,-rpath,/opt/tqt3/lib:/opt/trinity/lib:
> make[2]: Leaving directory `/build/src/build'
> <snip>
> 
> -L/opt/trinity/lib is there!

kpowersave builds without error here on Slackware 13.1 without patching CMakeLists.txt. Adding the referenced patch makes no differnce and the package builds the same.

Darrell