Export to GitHub

btstack - issue #328

Can't compile btstack with 6.1 SDK and Xcode 4.6.1


Posted on Mar 21, 2013 by Grumpy Panda

Hi,

Using 6.1 with Xcode 4.6.1, I can't get btstack to compile. If I don't mess with anything and follow the instructions in GettingStarted, I get the following when running bootstrap:

sdfsdfd:btstack-read-only dany$ ./bootstrap.sh aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:7: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:7: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation configure.in:27: installing 'config/config.guess' configure.in:27: installing 'config/config.sub' configure.in:7: installing 'config/install-sh' configure.in:7: installing 'config/missing' configure.in:294: error: required file 'PatchBlueTool/Makefile.in' not found configure.in:294: error: required file 'SpringBoardAccess/Makefile.in' not found

Touching the missing files lets get get later into the build process. I updated the configure.in file to reflect Xcode's new path and fixed a problem with header file inclusion, but eventually I hit a brick wall with this error during compilation:

sdfsdfd:btstack-read-only dany$ make Making all in src ./get_version.sh /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 - -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/c++/4.2.1/ -Werror -Wall -Wpointer-arith -I.. -I../include -dynamiclib -install_name /usr/local/lib/libBTstack.dylib -o libBTstack.dylib btstack.c hci_cmds.c linked_list.c run_loop.c run_loop_posix.c run_loop_cocoa.m sdp_util.c socket_connection.c utils.c -framework CoreFoundation -framework Foundation -framework Foundation -framework CoreFoundation -lobjc -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/Frameworks/IOKit.framework/Versions/A -lIOKit /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager arm-apple-darwin10-llvm-gcc-4.2: -E or -x required when input is from standard input

Any ideas on what I should do here? Should I just download an old version of Xcode and redirect all the paths as necessary to get btstack to compile?

(Is there any reason a precompiled static library for iPhone isn't distributed anywhere?)

Thanks, --Dany.

Comment #1

Posted on Mar 21, 2013 by Swift Ox

Hi. Please look here: http://code.google.com/p/btstack/issues/detail?id=327&can=1&sort=-id

I stilll have to update the wiki page. There's no static library as it's more common (outside the AppStore) to link against the installed libBTstack.dylib. This makes updating BTstack easier.

Comment #2

Posted on Mar 21, 2013 by Grumpy Panda

Hi,

Thanks for your quick response. Please excuse me as I'm incredibly new to btstack/jailbreaking. Do you mean for me to install btstack on my phone and get the dylib from there?

Comment #3

Posted on Apr 1, 2013 by Swift Ox

I've updated the GettingStarted page. I hope you can follow it now.

Status: Fixed

Labels:
Type-Defect Priority-Medium