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: Serghei Amelian <serghei@...>
Date: Mon, 19 Mar 2012 21:27:06 +0200
On Monday 19 March 2012 21:22:21 Darrell Anderson wrote:
> > > 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
> >
> > Probably you have tqt-dbus somewhere in standard paths.
>
> No, I don't. I have

Maybe you have libdbus-tqt-1.so in /usr/lib? Or maybe the linker looking into 
your LD_LIBRARY_PATH. However, the correct way is to pass to linker correct 
path to library.

> $PKG_CONFIG_PATH=/opt/trinity/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/l
>ib/pkgconfig and LD_LIBRARY_PATH=/opt/trinity/lib:/opt/trinity/lib/trinity
> in my build environment. Perhaps that is the difference?
>
> I see the following in the build output:
>
> -- checking for one of the modules 'dbus-1'
> -- checking for one of the modules 'dbus-tqt'
>
> No errors.
>
> In the cmake cache I see:
>
> DBUS_CFLAGS:INTERNAL=-I/usr/include/dbus-1.0;-I/usr/lib/dbus-1.0/include
> DBUS_INCLUDE_DIRS:INTERNAL=/usr/include/dbus-1.0;/usr/lib/dbus-1.0/include
> DBUS_LDFLAGS:INTERNAL=-ldbus-1;-lpthread;-lrt
> DBUS_STATIC_CFLAGS:INTERNAL=-I/usr/include/dbus-1.0;-I/usr/lib/dbus-1.0/inc
>lude
> DBUS_STATIC_INCLUDE_DIRS:INTERNAL=/usr/include/dbus-1.0;/usr/lib/dbus-1.0/i
>nclude DBUS_STATIC_LDFLAGS:INTERNAL=-ldbus-1;-lpthread;-lrt
> DBUS_TQT_CFLAGS:INTERNAL=-I/opt/trinity/include;-I/opt/trinity/include/dbus
>-1.0;-I/usr/include/dbus-1.0;-I/usr/lib/dbus-1.0/include

-- 
Serghei