Cross compiling dbus for ARM

View: New views
4 Messages — Rating Filter:   Alert me  

Cross compiling dbus for ARM

by pan son :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

RE: Cross compiling dbus for ARM

by Schmottlach, Glenn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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@... [mailto:dbus-bounces@...] On Behalf Of pan son
Sent: Friday, October 02, 2009 7:07 PM
To: dbus@...
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


_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

Re: Cross compiling dbus for ARM

by pan son :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@... [mailto:dbus-bounces@...] On Behalf Of pan son
Sent: Friday, October 02, 2009 7:07 PM


To: dbus@...
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



_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

Parent Message unknown Re: Cross compiling dbus for ARM

by pan son :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Nirav,

What was the configure command you used? How did you resolve the xml expat.h missing error?

Thanks,
Vink


On Fri, Oct 2, 2009 at 11:47 PM, Nirav Rabara <Nirav.Rabara@...> wrote:

Hi,

 

"checking abstract socket namespace... configure: error: in `/programs/src/dbus-1.2.8':  This is comman error.

Try 1.3.0 version. I have tried almost dozen dbus version, But I found only 1.3.0 cross compliable with my arm-linux-4.3.3 toolchain. Or you may better try different dbus versions also.

It will work

 

With Regards,

Nirav  

 


From: dbus-bounces@... [mailto:dbus-bounces@...] On Behalf Of pan son
Sent: Saturday, October 03, 2009 4:37 AM
To: dbus@...
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

Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com

 



_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus