Cross compiling dbus for ARM

pan son sonicpan.sonicpan at gmail.com
Mon Oct 5 13:06:05 PDT 2009


Thanks guys, I got through that error by adding --enable-abstract-sockets
option to my configure.

I got the error,
checking for XML_ParserCreate_MM in -lexpat... no
configure: error: Could not find expat.h, check config.log for failed
attempts

I cross compiled expat2.0.1 for ARM, but some how I am not able to compile
dbus with expat and get through this error.

this is how I compile dbus now..

./configure --prefix=/programs/arm-dbus --host=i686-linux
-target=arm-linux-gnu --enable-abstract-sockets
--includedir=/programs/arm-expat/include --libdir=/programs/arm-expat/lib

tried doing...
env CPPFLAGS=-I/programs/arm-expat/include LIBS=-lexpat LDFLAGS=-s
before configure.

but still the same error.

At this link...
http://lists.freedesktop.org/archives/dbus/2006-December/006778.html
John Palmieri says -devel package. Whats does he mean?



On Mon, Oct 5, 2009 at 6:37 AM, Schmottlach, Glenn <
glenn.schmottlach at harman.com> wrote:

>  You might try explicitly defining:
>
>
>
> ac_cv_have_abstract_sockets=yes
>
>
>
> in the environment prior to running “configure”. This **should** tell
> “configure” to assume that abstract sockets exists so that it won’t bother
> trying to build/run the test program.  So your command line might look like
> this:
>
>
>
> ac_cv_have_abstract_sockets=yes ./configure --prefix=/programs/arm-dbus
> --host=i686-linux -target=arm-linux-gnu ARCH=ARM
> CROSS_COMPILE=/programs/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-
>
>
>  ------------------------------
>
> *From:* dbus-bounces at lists.freedesktop.org [mailto:
> dbus-bounces at lists.freedesktop.org] *On Behalf Of *pan son
> *Sent:* Friday, October 02, 2009 7:07 PM
> *To:* dbus at lists.freedesktop.org
> *Subject:* Cross compiling dbus for ARM
>
>
>
> Hi I am trying to cross compile dbus 1.2.8 for ARM and this is how I run
> configure...
>
>
> ./configure --prefix=/programs/arm-dbus --host=i686-linux
> -target=arm-linux-gnu ARCH=ARM
> CROSS_COMPILE=/programs/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-
>
> My compilation stops at...
> "checking abstract socket namespace... configure: error: in
> `/programs/src/dbus-1.2.8':
> configure: error: cannot run test program while cross compiling
> See `config.log' for more details."
>
> How do I disable test program check while cross compiling?
>
> Many thanks,
> Vink
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20091005/8aabb6b8/attachment.htm 


More information about the dbus mailing list