All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Fail in cross-compile bluez-utils-3.9
@ 2007-07-20  7:56 leiyu
  2007-07-20  8:16 ` Sumeet VERMA
  2007-07-24  3:43 ` leiyu
  0 siblings, 2 replies; 7+ messages in thread
From: leiyu @ 2007-07-20  7:56 UTC (permalink / raw)
  To: Bluez-Users

[-- Attachment #1: Type: text/plain, Size: 1378 bytes --]

Dear All,

I use arm-linux-gcc-3.4.1 to cross-compile bluez-libs-3.9 and bluez-utils-3.9
I success in cross-compile bluez-libs-3.9 ,but fail in bluez-utils-3.9 ,

/usr/bluez/bluezlibs is the directory I install bluez-libs-3.9    
/usr/local/arm/linux-2.6.14.1 is the kernel diretory

[root@localhost bluez-utils-3.9]# ./configure --prefix=/bluez/bluezutils --includedir=/bluez/bluezlibs/include --libdir=/bluez/bluezlibs/lib  --host=arm-linux CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc CPP=/usr/local/arm/3.4.1/bin/arm-linux-cpp AR=/usr/local/arm/3.4.1/bin/arm-linux-ar STRIP=/usr/local/arm/3.4.1/bin/arm-linux-strip RANLIB=/usr/local/arm/3.4.1/bin/arm-linux-ranlib LD=/usr/local/arm/3.4.1/bin/arm-linux-ld --with-bluez-libs=/bluez/bluezlibs --with-kernel=/usr/local/arm/linux-2.6.14.1
.......
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
checking for ppoll... no
checking for arm-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BLUEZ... no
configure: error: Bluetooth library is required

Is my gcc version  not suit for it ? or Is my configure parameter not right ? I appreciate for your comment, thanks 
 
Best regards,
Leiyu


[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-users] Fail in cross-compile bluez-utils-3.9
  2007-07-20  7:56 [Bluez-users] Fail in cross-compile bluez-utils-3.9 leiyu
@ 2007-07-20  8:16 ` Sumeet VERMA
  2007-07-24  3:43 ` leiyu
  1 sibling, 0 replies; 7+ messages in thread
From: Sumeet VERMA @ 2007-07-20  8:16 UTC (permalink / raw)
  To: 'BlueZ users'

[-- Attachment #1: Type: text/plain, Size: 2257 bytes --]

Hi Leiyu
You can add the path of your toolchain to the PATH variable
PATH=$PATH:/usr/local/arm/3.4.1/bin
That way you don’t have to specify options for CC, CPP, AR, STRIP..etc.
Just providing --host option is enough. The configure script will search the
PATH for installed toolchain. 

When you installed the bluez-libs, the bluez.pc file should be created in
the libs directory that you gave with the --prefix option. Add that path to
the PKG_CONFIG_PATH variable
e.g  export PKG_CONFIG_PATH=/bluez/bluezlibs/pkgconfig

Doing this change should fix your problem.


Regards,
Sumeet 
-----Original Message-----
From: bluez-users-bounces@lists.sourceforge.net
[mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of leiyu
Sent: Friday, July 20, 2007 1:26 PM
To: Bluez-Users
Subject: [Bluez-users] Fail in cross-compile bluez-utils-3.9

Dear All,

I use arm-linux-gcc-3.4.1 to cross-compile bluez-libs-3.9 and bluez-utils-3.
9 I success in cross-compile bluez-libs-3.9 ,but fail in bluez-utils-3.9 ,

/usr/bluez/bluezlibs is the directory I install bluez-libs-3.9    
/usr/local/arm/linux-2.6.14.1 is the kernel diretory

[root@localhost bluez-utils-3.9]# ./configure --prefix=/bluez/bluezutils
--includedir=/bluez/bluezlibs/include --libdir=/bluez/bluezlibs/lib
--host=arm-linux CC=/usr/local/arm/3.4.1/bin/arm-linux-gcc
CPP=/usr/local/arm/3.4.1/bin/arm-linux-cpp
AR=/usr/local/arm/3.4.1/bin/arm-linux-ar
STRIP=/usr/local/arm/3.4.1/bin/arm-linux-strip
RANLIB=/usr/local/arm/3.4.1/bin/arm-linux-ranlib
LD=/usr/local/arm/3.4.1/bin/arm-linux-ld --with-bluez-libs=/bluez/bluezlibs
--with-kernel=/usr/local/arm/linux-2.6.14.1
.......
checking if libtool supports shared libraries... yes checking whether to
build shared libraries... yes checking whether to build static libraries...
no
configure: creating libtool
checking for ppoll... no
checking for arm-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at
least version 0.9.0... yes checking for BLUEZ... no
configure: error: Bluetooth library is required

Is my gcc version  not suit for it ? or Is my configure parameter not right
? I appreciate for your comment, thanks 
 
Best regards,
Leiyu




[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bluez-users] Fail in cross-compile bluez-utils-3.9
  2007-07-20  7:56 [Bluez-users] Fail in cross-compile bluez-utils-3.9 leiyu
  2007-07-20  8:16 ` Sumeet VERMA
@ 2007-07-24  3:43 ` leiyu
  2007-07-24  5:37   ` [Bluez-users] " leiyu
  1 sibling, 1 reply; 7+ messages in thread
From: leiyu @ 2007-07-24  3:43 UTC (permalink / raw)
  To: Bluez-Users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 1736 bytes --]



Dear ALL,

I has passed to configure bluez-utils by Sumeet's help.
But when I enter into bluez-utils directory then make it,
it happens many errors as below, How can I fix these problems?
Thanks very much for your help. 

......
sdp-xml.c: In function `sdp_xml_parse_datatype':
sdp-xml.c:764: error: dereferencing pointer to incomplete type
sdp-xml.c:767: error: `SDP_BOOL' undeclared (first use in this function)
sdp-xml.c:769: error: `SDP_UINT8' undeclared (first use in this function)
sdp-xml.c:771: error: `SDP_UINT16' undeclared (first use in this function)
sdp-xml.c:773: error: `SDP_UINT32' undeclared (first use in this function)
sdp-xml.c:775: error: `SDP_UINT64' undeclared (first use in this function)
sdp-xml.c:777: error: `SDP_UINT128' undeclared (first use in this function)
sdp-xml.c:779: error: `SDP_INT8' undeclared (first use in this function)
sdp-xml.c:781: error: `SDP_INT16' undeclared (first use in this function)
sdp-xml.c:783: error: `SDP_INT32' undeclared (first use in this function)
sdp-xml.c:785: error: `SDP_INT64' undeclared (first use in this function)
sdp-xml.c:787: error: `SDP_INT128' undeclared (first use in this function)
sdp-xml.c:793: error: dereferencing pointer to incomplete type
sdp-xml.c: At top level:
sdp-xml.c:65: error: storage size of `indent' isn't known
sdp-xml.c:67: error: storage size of `next_indent' isn't known
sdp-xml.c:374: warning: `convert_raw_attr_to_xml_func' defined but not used
make[2]: *** [sdp-xml.o] error¯¯ 1
make[2]: Leaving directory `/bluez/bluez-3-3-2/bluez-utils-3.9/common'
make[1]: *** [all-recursive] error¯¯ 1
make[1]: Leaving directory `/bluez/bluez-3-3-2/bluez-utils-3.9'
make: *** [all] error¯¯ 2

Best regards,
Leiyu

[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bluez-users] cross-compile bluez-utils-3.9
  2007-07-24  3:43 ` leiyu
@ 2007-07-24  5:37   ` leiyu
  2007-07-25  4:21     ` [Bluez-users] RE:cross-compile bluez-utils-3.9 leiyu
  0 siblings, 1 reply; 7+ messages in thread
From: leiyu @ 2007-07-24  5:37 UTC (permalink / raw)
  To: Bluez-Users

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 1732 bytes --]

Dear ALL,

I has passed to configure bluez-utils by Sumeet's help.
But when I enter into bluez-utils directory then make it,
it happens many errors as below, How can I fix these problems?
Thanks very much for your help. 

......
sdp-xml.c: In function `sdp_xml_parse_datatype':
sdp-xml.c:764: error: dereferencing pointer to incomplete type
sdp-xml.c:767: error: `SDP_BOOL' undeclared (first use in this function)
sdp-xml.c:769: error: `SDP_UINT8' undeclared (first use in this function)
sdp-xml.c:771: error: `SDP_UINT16' undeclared (first use in this function)
sdp-xml.c:773: error: `SDP_UINT32' undeclared (first use in this function)
sdp-xml.c:775: error: `SDP_UINT64' undeclared (first use in this function)
sdp-xml.c:777: error: `SDP_UINT128' undeclared (first use in this function)
sdp-xml.c:779: error: `SDP_INT8' undeclared (first use in this function)
sdp-xml.c:781: error: `SDP_INT16' undeclared (first use in this function)
sdp-xml.c:783: error: `SDP_INT32' undeclared (first use in this function)
sdp-xml.c:785: error: `SDP_INT64' undeclared (first use in this function)
sdp-xml.c:787: error: `SDP_INT128' undeclared (first use in this function)
sdp-xml.c:793: error: dereferencing pointer to incomplete type
sdp-xml.c: At top level:
sdp-xml.c:65: error: storage size of `indent' isn't known
sdp-xml.c:67: error: storage size of `next_indent' isn't known
sdp-xml.c:374: warning: `convert_raw_attr_to_xml_func' defined but not used
make[2]: *** [sdp-xml.o] error¯¯ 1
make[2]: Leaving directory `/bluez/bluez-3-3-2/bluez-utils-3.9/common'
make[1]: *** [all-recursive] error¯¯ 1
make[1]: Leaving directory `/bluez/bluez-3-3-2/bluez-utils-3.9'
make: *** [all] error¯¯ 2

Best regards,
Leiyu

[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bluez-users] RE:cross-compile bluez-utils-3.9
  2007-07-24  5:37   ` [Bluez-users] " leiyu
@ 2007-07-25  4:21     ` leiyu
  2007-07-25  4:27       ` [Bluez-users] RE: [Bluez-users]RE£ocross-compile bluez-utils-3.9 Sumeet VERMA
  2007-07-31  7:05       ` [Bluez-users] RE:cross-compile bluez-utils-3.9 leiyu
  0 siblings, 2 replies; 7+ messages in thread
From: leiyu @ 2007-07-25  4:21 UTC (permalink / raw)
  To: Bluez-Users

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

Dear All,

Last email I did not express the error clearly
I write all the procedure as below

I install bluez-libs-3.9 in /bluez/bluezlibs  then 
export PKG_CONFIG_PATH=/bluez/bluezlibs/lib/pkgconfig

Enter into bluez-utils-3.9, configure then make it
  
./configure --prefix=/bluez/bluez-uitls --host=arm-linux
make

but it happens some error, it prompt :
sdp-xml.c:36:27: bluetooth/sdp.h: no such file or directory
sdp-xml.c:37:31: bluetooth/sdp_lib.h: no such file or directory

But All the files exist in /bluez/bluez-libs/include directory,
It seems that I already include bluez-lib, Could anyone help me to fix it?
Thanks in advance!

Best regards,
Leiyu

[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bluez-users] RE: [Bluez-users]RE£ocross-compile bluez-utils-3.9
  2007-07-25  4:21     ` [Bluez-users] RE:cross-compile bluez-utils-3.9 leiyu
@ 2007-07-25  4:27       ` Sumeet VERMA
  2007-07-31  7:05       ` [Bluez-users] RE:cross-compile bluez-utils-3.9 leiyu
  1 sibling, 0 replies; 7+ messages in thread
From: Sumeet VERMA @ 2007-07-25  4:27 UTC (permalink / raw)
  To: 'BlueZ users'

[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]

Hi Leiyu,
Add another option --includedir and --libdir to the configure string 
./configure --prefix=/bluez/bluez-uitls --host=arm-linux
--includedir=/bluez/bluez-libs/include --libdir=/bluez/bluez-libs/libs

Set the libdir and includedir path to whatever path you are using.




Regards,
Sumeet 
-----Original Message-----
From: bluez-users-bounces@lists.sourceforge.net
[mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of leiyu
Sent: Wednesday, July 25, 2007 9:52 AM
To: Bluez-Users
Subject: [Bluez-users]RE:cross-compile bluez-utils-3.9

Dear All,

Last email I did not express the error clearly I write all the procedure as
below

I install bluez-libs-3.9 in /bluez/bluezlibs  then export
PKG_CONFIG_PATH=/bluez/bluezlibs/lib/pkgconfig

Enter into bluez-utils-3.9, configure then make it
  
./configure --prefix=/bluez/bluez-uitls --host=arm-linux make

but it happens some error, it prompt :
sdp-xml.c:36:27: bluetooth/sdp.h: no such file or directory
sdp-xml.c:37:31: bluetooth/sdp_lib.h: no such file or directory

But All the files exist in /bluez/bluez-libs/include directory, It seems
that I already include bluez-lib, Could anyone help me to fix it?
Thanks in advance!

Best regards,
Leiyu



[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bluez-users] RE:cross-compile bluez-utils-3.9
  2007-07-25  4:21     ` [Bluez-users] RE:cross-compile bluez-utils-3.9 leiyu
  2007-07-25  4:27       ` [Bluez-users] RE: [Bluez-users]RE£ocross-compile bluez-utils-3.9 Sumeet VERMA
@ 2007-07-31  7:05       ` leiyu
  1 sibling, 0 replies; 7+ messages in thread
From: leiyu @ 2007-07-31  7:05 UTC (permalink / raw)
  To: Bluez-Users

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

Dear All,

I have fixed below problem by Manuel's help
sdp-xml.c:36:27: bluetooth/sdp.h: no such file or directory
sdp-xml.c:37:31: bluetooth/sdp_lib.h: no such file or directory 

but it prompt that it can not find dbus library afterwards

Wl,/bluez/bluez-libs/lib -Wl,--rpath -Wl,/bluez/bluez-libs/lib
/usr/local/arm/3.3.2/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: cannot find -ldbus-1
collect2: ld returned 1 exit status
make[3]: *** [hcid] Error 1
make[3]: Leaving directory `/bluez/bluez-utils-3.9/hcid'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/bluez/bluez-utils-3.9/hcid'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/bluez/bluez-utils-3.9'

I already install dbus-1.0.2 with standard path "/usr" , but it meet same problem as above, 
May  you help me? thanks very much

Best regards,
Leiyu

[-- Attachment #2: Type: text/plain, Size: 315 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-07-31  7:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-20  7:56 [Bluez-users] Fail in cross-compile bluez-utils-3.9 leiyu
2007-07-20  8:16 ` Sumeet VERMA
2007-07-24  3:43 ` leiyu
2007-07-24  5:37   ` [Bluez-users] " leiyu
2007-07-25  4:21     ` [Bluez-users] RE:cross-compile bluez-utils-3.9 leiyu
2007-07-25  4:27       ` [Bluez-users] RE: [Bluez-users]RE£ocross-compile bluez-utils-3.9 Sumeet VERMA
2007-07-31  7:05       ` [Bluez-users] RE:cross-compile bluez-utils-3.9 leiyu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.