2015-04-07 08:44:36

by Mariusz Skamra

[permalink] [raw]
Subject: [PATCH] tools: Fix btmgmt build on Android

target Executable: btmgmt (out/target/product/mako/obj/EXECUTABLES/btmgmt_intermediates/LINKED/btmgmt)
external/bluetooth/bluez/tools/btmgmt.c:1477: error: undefined reference to 'hci_bustostr'
collect2: error: ld returned 1 exit status
---
android/Android.mk | 1 +
1 file changed, 1 insertion(+)

diff --git a/android/Android.mk b/android/Android.mk
index f218805..1e22ca6 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -539,6 +539,7 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
bluez/tools/btmgmt.c \
bluez/lib/bluetooth.c \
+ bluez/lib/hci.c \
bluez/lib/sdp.c \
bluez/src/shared/mainloop.c \
bluez/src/shared/io-mainloop.c \
--
1.9.1



2015-04-07 09:03:11

by Szymon Janc

[permalink] [raw]
Subject: Re: [PATCH] tools: Fix btmgmt build on Android

Hi Mariusz,

On Tuesday 07 of April 2015 10:44:36 Mariusz Skamra wrote:
> target Executable: btmgmt
> (out/target/product/mako/obj/EXECUTABLES/btmgmt_intermediates/LINKED/btmgmt
> ) external/bluetooth/bluez/tools/btmgmt.c:1477: error: undefined reference
> to 'hci_bustostr' collect2: error: ld returned 1 exit status
> ---
> android/Android.mk | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/android/Android.mk b/android/Android.mk
> index f218805..1e22ca6 100644
> --- a/android/Android.mk
> +++ b/android/Android.mk
> @@ -539,6 +539,7 @@ include $(CLEAR_VARS)
> LOCAL_SRC_FILES := \
> bluez/tools/btmgmt.c \
> bluez/lib/bluetooth.c \
> + bluez/lib/hci.c \
> bluez/lib/sdp.c \
> bluez/src/shared/mainloop.c \
> bluez/src/shared/io-mainloop.c \

Patch applied, thanks.

--
BR
Szymon Janc