On 03/19/2012 12:20 AM, David C. Rankin wrote:
Tim, Darrell,
Other than a few hiccups, the build with tqtinterface and libart_lgpl in /usr
has run fairly smooth. I did just run into another issue with kpowersave at 96%
which looks like another ldconfig issue. The problem here is I didn't have any
ldconfig or issues with kpowersave prior to the tqtinterface move to /usr. Is
there something we can do with cmake that will help prevent the "I can't find
the library issue?"
<snip>
CMakeFiles/tdeinit_kpowersave-shared.dir/suspend_Dialog.cpp.o -L/opt/tqt3/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:
/usr/bin/ld: cannot find -ldbus-tqt-1
collect2: ld returned 1 exit status
make[2]: *** [src/libtdeinit_kpowersave.so] Error 1
make[2]: Leaving directory `/build/src/build'
make[1]: *** [src/CMakeFiles/tdeinit_kpowersave-shared.dir/all] Error 2
make[1]: Leaving directory `/build/src/build'
make: *** [all] Error 2
Looking at the -ldbus-tqt-1 designation - it is one of the few that does not
have the full path information. Where is that supposed to come from if not from
the pkg-config results? The pkg-config lib results are correct, so what's up?
I don't know why I had to do it this time, but I just added an export of
CXXFLAGS and it found libdbus-tqt-1:
export CXXFLAGS="${CXXFLAGS} -L/opt/trinity/lib"
How can we/what it the proper way to build library search paths into the tde
build systems so that this information is automatically passed to make during
the build? Can we do something in cmake to make sure the default $TDEDIR/lib and
$TDEDIR/lib/trinity/lib are always passed as flags? This would take care of over
half the spurious build failures I see.
--
David C. Rankin, J.D.,P.E.