dbus 1.6.14 cross-compilation : installation problem on the target
Yang Chengwei
chengwei.yang at intel.com
Mon Sep 16 21:37:50 PDT 2013
On Mon, Sep 16, 2013 at 03:13:34PM +0000, Brosseau, Vincent wrote:
> Hi all,
>
>
>
> I managed to build and install dbus with the following commands on my linux PC
> (Ubuntu):
>
>
>
> ./configure --host=arm-linux-gnueabihf --prefix=/home/vincent/target/rootfs
> --with-x=no
>
> make install
>
>
>
> All is installed in the /home/vincent/target/rootfs as expected. This directory
> is the file system (ARM platform) for my target.
>
>
>
> But when I run dbus-launch on the target, I’ve got an unexpected error :
>
>
>
> target ~> dbus-launch
>
> Failed to execute message bus daemon /home/vincent/target/rootfs/bin/
> dbus-daemon: No such file or directory. Will try again without full path.
This is a fatal error, it will try dbus-daemon in $PATH as below.
>
> Failed to start message bus: Failed to open "/home/vincent/target/rootfs/etc/
> dbus-1/session.conf": No such file or directory
So dbus-daemon found in $PATH but fail to start due to the above error.
>
> EOF in dbus-launch reading address from bus daemon
>
>
>
> So, how can I configure/build dbus with “installation-directory-when-building=/
> home/vincent/target/rootfs” BUT with “installation-directory-on-the-target=/usr
> /bin” ?
>
Please use DESTDIR variable, for example.
$ ./autogen.sh
$ make DESTDIR=/home/vincent/target/rootfs install
the default prefix is "/usr/local", you can overwrite it by specify
"--prefix=" like below
$ ./autogen.sh --prefix=
$ make DESTDIR=/home/vincent/target/rootfs install
For details about DESTDIR, please check
http://www.gnu.org/prep/standards/html_node/DESTDIR.html
--
Thanks,
Chengwei
>
>
> Regards
>
>
>
> Vincent
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130917/1bbb83ed/attachment.pgp>
More information about the dbus
mailing list