Return-Path: Message-ID: Date: Mon, 30 Jun 2008 15:09:34 +0300 From: "Voni Hakau" To: "Mumia W.." In-Reply-To: MIME-Version: 1.0 References: <4852914F.6020209@earthlink.net> <4856EC25.5040508@earthlink.net> Cc: BlueZ users Subject: Re: [Bluez-users] Bluez build problem Reply-To: BlueZ users List-Id: BlueZ users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-users-bounces@lists.sourceforge.net Errors-To: bluez-users-bounces@lists.sourceforge.net On Mon, Jun 30, 2008 at 3:06 PM, Voni Hakau wrote: > Hi ! > > On Tue, Jun 17, 2008 at 1:41 AM, Mumia W.. > wrote: >> But DESTDIR is used during "make install," and as you figured, you can use >> the platform's prefix. >> >> Note that some programs don't use the DESTDIR variable, but almost all do. >> > > I have successfully built expat,dbus and bluez-libs with this idea, but it seems > that bluez-utils doesn't like it.. > > Here is my configure command: > BLUEZ_CFLAGS=-I/path/to/my/platform/root/usr/include > BLUEZ_LIBS="-L/path/to/my/platform/root/usr/lib -lbluetooth" > DBUS_LIBS="-L/path/to/my/platform/root/usr/lib -ldbus-1" > DBUS_CFLAGS="-I/path/to/my/platform/root/usr/include/dbus-1.0 > -I/path/to/my/platform/root/usr/include/dbus-1.0/include" > CPPFLAGS=-I/path/to/my/platform/root/usr/include > LDFLAGS=-L/path/to/my/platform/root/usr/lib ./configure --prefix=/usr > --host=arm-linux --mandir=/usr/share/man --sysconfdir=/etc > --localstatedir=/var --libexecdir=/lib > > configure runs ok, and then make runs a little until it is doing this: > arm-linux-gcc -I/path/to/my/platform/root/usr/include > -I/path/to/my/platform/root/usr/include/dbus-1.0 > -I/path/to/my/platform/root/usr/include/dbus-1.0/include -I../eglib > -I../gdbus -DPLUGINDIR=\"/usr/lib/bluetooth/plugins\" -Wall -O2 > -D_FORTIFY_SOURCE=2 -o hcid main.o -rdynamic > -L/path/to/my/platform/root/usr/lib libhciserver.a > ../sdpd/libsdpserver.a ../common/libhelper.a ../gdbus/.libs/libgdbus.a > ../eglib/.libs/libeglib.a -ldl /usr/lib/libdbus-1.so > /path/to/my/platform/root/usr/lib/libbluetooth.so -Wl,--rpath > -Wl,/path/to/my/platform/root/usr/lib -Wl,--rpath > -Wl,/path/to/my/platform/root/usr/lib > /usr/lib/libdbus-1.so: file not recognized: File format not recognized > collect2: ld returned 1 exit status > > we can see that it tried to use my host libdbus-1.so, and it ignores > the DBUS_LIBS variable.. > > did i do something wrong ? > maybe it is a bug in bluez ? do you know how to fix it or bypass it ? > I tried to look in the Makefiles themselves to change this behavior > but didn't find it.. > > Thank you again for this wonderful assistance ! > Voni > > (btw, I even tried to set up > PKG_CONFIG_PATH=/path/to/my/platform/root/usr/lib/pkgconfig > but it didn't help...) btw, I can also see another problem: -DPLUGINDIR=\"/usr/lib/bluetooth/plugins\" i don't know if it is severe.. > >> >> > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users