2006-08-29 15:38:19

by Alex B

[permalink] [raw]
Subject: [Bluez-devel] problem with bluez-utils 3.4 and dbus

I'm trying to croos compile bluez-utils for XScale.

when I write make
Install the error is:
/usr/local/arm-linux/lib/gcc-lib/arm-linux/3.3.2
/../../../../arm-linux/bin/ld:
skipping incompatible
/opt/gnome/lib/libdbus-glib-1.so when searching
for -ldbus-glib-1
/usr/local/arm-linux/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-
linux/bin/ld:
cannot find -ldbus-glib-1
collect2: ld returned 1 exit
status


/opt/gnome/lib/libdbus-glib-1.so it's a simlink to
/usr/lib/libdbus-glib-1.so

I read all old topics about this problem,
but I never found a solution.

the configure string is:
./configure --
host=arm-linux --prefix=/mydir --whit-bluez=/mydir

Can someone help
me???
tnx
Alex B

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2006-08-29 20:53:48

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] problem with bluez-utils 3.4 and dbus

Hi Marco,

> > /usr/local/arm-linux/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-
> > linux/bin/ld:
> > cannot find -ldbus-glib-1
> > collect2: ld returned 1 exit
> > status
>
> Have you cross compiled dbus?
> If you have cross compiled dbus you should add -L<dbus library path> to
> LDFLAG, where <dbus library path> is the path to the cross compiled dbus
> library.

I would prefer if you actually trust pkg-config to configure this
correctly. Messing around with the linker path can have weird side
effects if you don't know exactly what you are doing.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-29 20:18:04

by Marco Pracucci

[permalink] [raw]
Subject: Re: [Bluez-devel] problem with bluez-utils 3.4 and dbus

Hi Alex,

> /usr/local/arm-linux/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-
> linux/bin/ld:
> cannot find -ldbus-glib-1
> collect2: ld returned 1 exit
> status

Have you cross compiled dbus?
If you have cross compiled dbus you should add -L<dbus library path> to
LDFLAG, where <dbus library path> is the path to the cross compiled dbus
library.

Moreover, if you have cross compiled dbus, can you tell us how you have
successfully run the configure script?

Regards,
Marco Pracucci


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-08-29 17:52:59

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] problem with bluez-utils 3.4 and dbus

Hi Alex,

> I'm trying to croos compile bluez-utils for XScale.
>
> when I write make
> Install the error is:
> /usr/local/arm-linux/lib/gcc-lib/arm-linux/3.3.2
> /../../../../arm-linux/bin/ld:
> skipping incompatible
> /opt/gnome/lib/libdbus-glib-1.so when searching
> for -ldbus-glib-1
> /usr/local/arm-linux/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-
> linux/bin/ld:
> cannot find -ldbus-glib-1
> collect2: ld returned 1 exit
> status
>
>
> /opt/gnome/lib/libdbus-glib-1.so it's a simlink to
> /usr/lib/libdbus-glib-1.so
>
> I read all old topics about this problem,
> but I never found a solution.
>
> the configure string is:
> ./configure --
> host=arm-linux --prefix=/mydir --whit-bluez=/mydir

I don't have a solution for this, because I don't do that much cross
compiling by myself. However since we use pkg-config, it should be
really easy to tell it which libraries to use.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel