Dbus cross compilation problems

Thiago Macieira thiago at kde.org
Fri Jul 10 14:03:13 PDT 2009


pgodin wrote:
>So far so good, the compilation succeeds without any error. My problem
>is when invoking the make install target.
>
>The configure script sets the --prefix and --exec-prefix to a custom
>value (pointing on the directory where my target root filesystem lies)
>ex.: /home/pgodin/rootfs.

That's the wrong thing to do.

>After invoking make install, all the files that are copied over the rfs
>such as dbus-daemon, dbus-laucher, etc are bash files (bus) and not the
>real arm binairies located in bus/.libs folder. Furthermore, when I
>manually copy those files (replacing bash files with binairies),
>invoking them yields errors with a related prefix path. System.conf
>paths also contains the absolute path to sockets and so on.

Because setting --prefix the way you did was wrong.

>As an example, invoking dbus-daemon would return the following error:
>could not find /home/pgodin/rootfs/usr/local/etc/dbus-1/system.conf ?
>
>Any ideas on what I'm doing wrong?

See above.

Please use --prefix=/usr/local. When installing, use make 
DESTDIR=/home/pgodin/rootfs. That's how just about every single cross-
compiled (or even not-cross-compiled) software does it.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20090710/929ad3e9/attachment.pgp 


More information about the dbus mailing list