trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2014

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

From: "David C. Rankin" <drankinatty@...>
Date: Sun, 19 Jan 2014 06:07:35 -0600
On 01/19/2014 05:48 AM, David C. Rankin wrote:
> All,
> 
> Linking CXX shared library libtdeinit_kicker.so
> /usr/bin/ld: cannot find -ldbus-tqt-1
> 
>   This looks like a pkgconfig issue. The dbus-tqt-1 library is installed at:
> 
> /opt/trinity/lib/libdbus-tqt-1.so
> /opt/trinity/lib/libdbus-tqt-1.la  # libtool file also there
> 
> The package config file file for dbus-tqt is here:
> 
> /opt/trinity/lib/pkgconfig/dbus-tqt.pc
> 
> prefix=/opt/trinity
> exec_prefix=${prefix}
> libdir=${prefix}/lib
> includedir=${prefix}/include
> 
> Name: dbus-tqt-1
> Description: D-BUS TQt bindings
> Version: R14.0.0
> Requires: dbus-1
> Libs: -L${libdir}  -ldbus-tqt-1 -ldbus-1
> Cflags: -I${includedir} -I${includedir}/dbus-1.0
> 
> So something in cmake is not getting the correct information to where it needs
> to go. The error message is this:
> 
> [ 55%] Building CXX object
> kicker/kicker/CMakeFiles/tdeinit_kicker-shared.dir/dummy.cpp.o
> Linking CXX shared library libtdeinit_kicker.so
> /usr/bin/ld: cannot find -ldbus-tqt-1

I attempted to explicitly tell cmake to look in /opt/trinity/lib with the
following, but the failure remains:

  cmake ${srcdir}/tdebase \
    -DCMAKE_INSTALL_PREFIX=${TDEDIR} \
    -DCMAKE_LIBRARY_PATH="${CMAKE_LIBRARY_PATH} -L/opt/trinity/lib/" \
    <snip>

Any other suggestions?

-- 
David C. Rankin, J.D.,P.E.