bluetooth compilation and usage regarding

umeshyv <[email protected]> Sat, 12 Jul 2008 13:16:44 +0530
Newsgroups gmane.linux.bluez.user
Message-ID <[email protected]>
Hi to all,

I am trying to compile 3.32  version of bluetooth .Still locked with
errors.I attached what I have done please check it and explain where I am
doing wrong.I want to cross compile it to mips and i need to achieve file
transfer from my mobile to target board(mips32 architecture) and remote
desktop access from k750i mobile.waiting for valuable suggestions.

Regards
Umesh

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
bluetooth1.txt (text/plain, 13.3 KB)
Compiling Bluetooth libraries

>Apply Buildroot or Toolchain Path
>./configure --host=mipsel-linux --prefix=/usr --enable-shared=no --enable-static=yes
>make
>make install DESTDIR=/home/newbuild/blue/bluez-libs-3.32/install

Compiling Bluetooth Utils

linux:/home/newbuild/blue/bluez-utils-3.32 # export BLUEZ_CFLAGS=-I /home/newbuild/blue/bluez-libs-3.32/install/usr/include
linux:/home/newbuild/blue/bluez-utils-3.32 # export BLUEZ_LIBS="-L/home/newbuild/blue/bluez-libs-3.32/install/usr/lib -lbluetooth"
linux:/home/newbuild/blue/bluez-utils-3.32 # ./configure --host=mipsel-linux --with-bluez=/home/newbuild/blue/bluez-libs-3.32/install/usr/ CPPFLAGS="-D__KERNEL__"
linux:/home/newbuild/blue/bluez-utils-3.32 # make
mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I..   -D__KERNEL__ -I/usr/local/include/dbus-1.0 -I/usr/local/lib/dbus-1.0/include   -I../eglib -I../gdbus -Wall -O2 -D_FORTIFY_SOURCE=2 -MT glib-helper.o -MD -MP -MF .deps/glib-helper.Tpo -c -o glib-helper.o glib-helper.c
glib-helper.c:35:33: error: bluetooth/bluetooth.h: No such file or directory
glib-helper.c:36:30: error: bluetooth/rfcomm.h: No such file or directory
glib-helper.c:37:29: error: bluetooth/l2cap.h: No such file or directory
glib-helper.c:38:27: error: bluetooth/sco.h: No such file or directory
glib-helper.c:39:27: error: bluetooth/sdp.h: No such file or directory
glib-helper.c:40:31: error: bluetooth/sdp_lib.h: No such file or directory
In file included from glib-helper.c:44:
glib-helper.h:26: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:26: error: expected ';', ',' or ')' before '*' token
glib-helper.h:28: error: expected ')' before '*' token
glib-helper.h:31: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:31: error: expected ';', ',' or ')' before '*' token
glib-helper.h:34: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:34: error: expected ';', ',' or ')' before '*' token
glib-helper.h:38: error: expected ')' before '*' token
glib-helper.h:39: error: expected ')' before '*' token
glib-helper.h:43: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:43: error: expected ';', ',' or ')' before '*' token
glib-helper.h:45: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:45: error: expected ';', ',' or ')' before '*' token
glib-helper.h:47: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:47: error: expected ';', ',' or ')' before '*' token
glib-helper.h:50: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:50: error: expected ';', ',' or ')' before '*' token
glib-helper.h:52: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:52: error: expected ';', ',' or ')' before '*' token
glib-helper.h:55: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.h:55: error: expected ';', ',' or ')' before '*' token
glib-helper.c:46: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c:46: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c:70: error: expected specifier-qualifier-list before 'bt_io_callback_t'
glib-helper.c:76: error: expected specifier-qualifier-list before 'bdaddr_t'
glib-helper.c: In function 'search_context_cleanup':
glib-helper.c:87: error: 'struct search_context' has no member named 'destroy'
glib-helper.c:88: error: 'struct search_context' has no member named 'destroy'
glib-helper.c:88: error: 'struct search_context' has no member named 'user_data'
glib-helper.c: In function 'search_completed_cb':
glib-helper.c:96: error: 'sdp_list_t' undeclared (first use in this function)
glib-helper.c:96: error: (Each undeclared identifier is reported only once
glib-helper.c:96: error: for each function it appears in.)
glib-helper.c:96: error: 'recs' undeclared (first use in this function)
glib-helper.c:101: error: 'SDP_SVC_SEARCH_ATTR_RSP' undeclared (first use in this function)
glib-helper.c:106: warning: implicit declaration of function 'sdp_extract_seqtype'
glib-helper.c:112: error: 'sdp_record_t' undeclared (first use in this function)
glib-helper.c:112: error: 'rec' undeclared (first use in this function)
glib-helper.c:116: warning: implicit declaration of function 'sdp_extract_pdu'
glib-helper.c:121: warning: implicit declaration of function 'sdp_record_free'
glib-helper.c:128: warning: implicit declaration of function 'sdp_list_append'
glib-helper.c:132: warning: implicit declaration of function 'sdp_close'
glib-helper.c:132: error: 'struct search_context' has no member named 'session'
glib-helper.c:133: error: 'struct search_context' has no member named 'cb'
glib-helper.c:134: error: 'struct search_context' has no member named 'cb'
glib-helper.c:134: error: 'struct search_context' has no member named 'user_data'
glib-helper.c: In function 'search_process_cb':
glib-helper.c:149: warning: implicit declaration of function 'sdp_process'
glib-helper.c:149: error: 'struct search_context' has no member named 'session'
glib-helper.c:156: error: 'struct search_context' has no member named 'session'
glib-helper.c:157: error: 'struct search_context' has no member named 'cb'
glib-helper.c:158: error: 'struct search_context' has no member named 'cb'
glib-helper.c:158: error: 'struct search_context' has no member named 'user_data'
glib-helper.c: In function 'connect_watch':
glib-helper.c:168: error: 'sdp_list_t' undeclared (first use in this function)
glib-helper.c:168: error: 'search' undeclared (first use in this function)
glib-helper.c:168: error: 'attrids' undeclared (first use in this function)
glib-helper.c:168: warning: left-hand operand of comma expression has no effect
glib-helper.c:184: warning: implicit declaration of function 'sdp_set_notify'
glib-helper.c:184: error: 'struct search_context' has no member named 'session'
glib-helper.c:189: error: 'struct search_context' has no member named 'uuid'
glib-helper.c:191: warning: implicit declaration of function 'sdp_service_search_attr_async'
glib-helper.c:191: error: 'struct search_context' has no member named 'session'
glib-helper.c:192: error: 'SDP_ATTR_REQ_RANGE' undeclared (first use in this function)
glib-helper.c:193: warning: implicit declaration of function 'sdp_list_free'
glib-helper.c:208: error: 'struct search_context' has no member named 'session'
glib-helper.c:209: error: 'struct search_context' has no member named 'cb'
glib-helper.c:210: error: 'struct search_context' has no member named 'cb'
glib-helper.c:210: error: 'struct search_context' has no member named 'user_data'
glib-helper.c: At top level:
glib-helper.c:217: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:217: error: expected ';', ',' or ')' before '*' token
glib-helper.c:249: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:249: error: expected ';', ',' or ')' before '*' token
glib-helper.c:270: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:270: error: expected ';', ',' or ')' before '*' token
glib-helper.c:280: error: expected ')' before '*' token
glib-helper.c:328: error: expected ')' before '*' token
glib-helper.c: In function 'resolve_names':
glib-helper.c:415: warning: implicit declaration of function 'memset'
glib-helper.c:415: warning: incompatible implicit declaration of built-in function 'memset'
glib-helper.c: At top level:
glib-helper.c:429: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c:429: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c: In function 'rfcomm_resolver':
glib-helper.c:431: error: storage size of 'host' isn't known
glib-helper.c:431: error: storage size of 'peer' isn't known
glib-helper.c:441: warning: implicit declaration of function 'bacpy'
glib-helper.c:441: error: 'src' undeclared (first use in this function)
glib-helper.c:442: error: 'dst' undeclared (first use in this function)
glib-helper.c:431: warning: unused variable 'peer'
glib-helper.c:431: warning: unused variable 'host'
glib-helper.c: At top level:
glib-helper.c:447: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c:447: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c: In function 'l2cap_resolver':
glib-helper.c:449: error: storage size of 'host' isn't known
glib-helper.c:449: error: storage size of 'peer' isn't known
glib-helper.c:459: error: 'src' undeclared (first use in this function)
glib-helper.c:460: error: 'dst' undeclared (first use in this function)
glib-helper.c:449: warning: unused variable 'peer'
glib-helper.c:449: warning: unused variable 'host'
glib-helper.c: At top level:
glib-helper.c:465: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c:465: error: expected declaration specifiers or '...' before 'bdaddr_t'
glib-helper.c: In function 'sco_resolver':
glib-helper.c:467: error: storage size of 'host' isn't known
glib-helper.c:467: error: storage size of 'peer' isn't known
glib-helper.c:477: error: 'src' undeclared (first use in this function)
glib-helper.c:478: error: 'dst' undeclared (first use in this function)
glib-helper.c:467: warning: unused variable 'peer'
glib-helper.c:467: warning: unused variable 'host'
glib-helper.c: In function 'listen_cb':
glib-helper.c:490: error: 'bdaddr_t' undeclared (first use in this function)
glib-helper.c:490: error: expected ';' before 'src'
glib-helper.c:503: warning: incompatible implicit declaration of built-in function 'memset'
glib-helper.c:508: error: 'struct io_context' has no member named 'resolver'
glib-helper.c:509: error: 'struct io_context' has no member named 'resolver'
glib-helper.c:509: error: 'src' undeclared (first use in this function)
glib-helper.c:509: error: 'dst' undeclared (first use in this function)
glib-helper.c:520: error: 'struct io_context' has no member named 'cb'
glib-helper.c:521: error: 'struct io_context' has no member named 'cb'
glib-helper.c:521: error: 'struct io_context' has no member named 'user_data'
glib-helper.c:526: error: 'struct io_context' has no member named 'cb'
glib-helper.c:527: error: 'struct io_context' has no member named 'cb'
glib-helper.c:527: error: 'struct io_context' has no member named 'user_data'
glib-helper.c: In function 'connect_cb':
glib-helper.c:555: error: 'bdaddr_t' undeclared (first use in this function)
glib-helper.c:555: error: expected ';' before 'src'
glib-helper.c:571: error: 'struct io_context' has no member named 'resolver'
glib-helper.c:572: error: 'struct io_context' has no member named 'resolver'
glib-helper.c:572: error: 'src' undeclared (first use in this function)
glib-helper.c:572: error: 'dst' undeclared (first use in this function)
glib-helper.c:580: error: 'struct io_context' has no member named 'cb'
glib-helper.c:581: error: 'struct io_context' has no member named 'cb'
glib-helper.c:581: error: 'struct io_context' has no member named 'user_data'
glib-helper.c: At top level:
glib-helper.c:614: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:614: error: expected ';', ',' or ')' before '*' token
glib-helper.c:648: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:648: error: expected ';', ',' or ')' before '*' token
glib-helper.c:691: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:691: error: expected ';', ',' or ')' before '*' token
glib-helper.c:710: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:710: error: expected ';', ',' or ')' before '*' token
glib-helper.c:736: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:736: error: expected ';', ',' or ')' before '*' token
glib-helper.c:770: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:770: error: expected ';', ',' or ')' before '*' token
glib-helper.c:800: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:800: error: expected ';', ',' or ')' before '*' token
glib-helper.c: In function 'create_io_context':
glib-helper.c:832: error: 'struct io_context' has no member named 'cb'
glib-helper.c:833: error: 'struct io_context' has no member named 'resolver'
glib-helper.c:834: error: 'struct io_context' has no member named 'user_data'
glib-helper.c: At top level:
glib-helper.c:848: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:848: error: expected ';', ',' or ')' before '*' token
glib-helper.c:867: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:867: error: expected ';', ',' or ')' before '*' token
glib-helper.c:878: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:878: error: expected ';', ',' or ')' before '*' token
glib-helper.c:887: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:887: error: expected ';', ',' or ')' before '*' token
glib-helper.c:906: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:906: error: expected ';', ',' or ')' before '*' token
glib-helper.c:925: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:925: error: expected ';', ',' or ')' before '*' token
glib-helper.c:945: warning: type defaults to 'int' in declaration of 'bdaddr_t'
glib-helper.c:945: error: expected ';', ',' or ')' before '*' token
make[2]: *** [glib-helper.o] Error 1
make[2]: Leaving directory `/home/newbuild/blue/bluez-utils-3.32/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/newbuild/blue/bluez-utils-3.32'
make: *** [all] Error 2
linux:/home/newbuild/blue/bluez-utils-3.32 #