This went into the system/bluetooth/bluedroid/Android.mk file-- Android.mk 2008-11-18 11:51:19.000000000 -0600
+++ Android.mk.new 2008-11-18 11:51:57.000000000 -0600
@@ -12,7 +12,8 @@
bluetooth.cLOCAL_C_INCLUDES := \
- $(call include-path-for, bluez-libs)
+ $(call include-path-for, bluez-libs)\
+ $(LOCAL_PATH)/includeLOCAL_SHARED_LIBRARIES := \
libcutils
This went into the frameworks/base/core/jni/Android.mk file...--- Android.mk 2008-11-18 11:53:25.000000000 -0600
+++ Android.mk.new 2008-11-18 11:53:55.000000000 -0600
@@ -146,7 +146,9 @@
ifeq ($(BOARD_HAVE_BLUETOOTH),true)
LOCAL_C_INCLUDES += \
external/dbus \
- external/bluez/libs/include
+ external/bluez/libs/include \
+ system/bluetooth/bluedroid/include
+
LOCAL_CFLAGS += -DHAVE_BLUETOOTH
LOCAL_SHARED_LIBRARIES += libbluedroid libdbus
endifPlease respond back, as to whether this really is a problem,Thanks & Regards,Pavan Savoy.On Tue, Nov 18, 2008 at 9:38 AM, pavan savoy <pavan...@gmail.com> wrote:
Nick,I would have sent a patch, but my problems with bluetooth build is just beginning, I am having problems in Android.mk of android_server_BluetoothDevice*, and having problems with dbus, of which I am yet to find a solution.I would be lucky If I could send you a patch by tonight for all these build issues.However I wanted to confirm that it is happening, can you please confirm me that it is a build issue. I've just added BOARD_HAVE_BLUETOOTH and everything gone beserk.I certainly tested it with a earlier version of code and never faced this issue. Please respond on this.Thanks & Regards,Pavan SavoyOn Tue, Nov 18, 2008 at 9:23 AM, Nick Pelly <npe...@google.com> wrote:
Can you send a patch?
On Tue, Nov 18, 2008 at 8:51 AM, pavan savoy <pavan...@gmail.com> wrote:
Hi,I got a bluetooth build error. The bluedroid library doesn't find bluetooth.h which is inside include/bluedroid/ so the LOCAL_C_INCLUDES for bluedroid should also include the line..$(LOCAL_PATH)/include/Thanks & Regards,Pavan Savoy.
Yeah, couple of silly mistakes, the hcid, said /system/etc/bluez/hcid.conf where it should have said /system/etc/hcid.conf,Ok now the hcid is running,However I still get the error, because I dont think the hciattach is able to start, although If I run the same command through command line /console it starts off ok.Wonder whether these lines in "init.rc" are correct...#pavan -- changed
service hciattach /system/bin/logwrapper /system/bin/hciattach /dev/ttyS1 my_manufacturer 115200
user bluetooth
group bluetooth net_bt_admin misc
disabled
oneshot
and when I run from console, it runs as root. Also have already tried out removing the user bluetooth line to start as root...
Ok, Looking into it.. Still not solved,a #start hciattach on command line returns me just a character "C", whereas the same command with or withoutlogwrapper runs smoothly even registers with the hcid.
Also was the build error valid, or something wrong with my local version?