hayabusa4827 / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

Can't compile btstack with 6.1 SDK and Xcode 4.6.1 #328

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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_AUTO
MAKE-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/Develop
er/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.framewor
k/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.

Original issue reported on code.google.com by nes...@gmail.com on 21 Mar 2013 at 9:49

GoogleCodeExporter commented 8 years ago
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.

Original comment by matthias.ringwald@gmail.com on 21 Mar 2013 at 10:54

GoogleCodeExporter commented 8 years ago
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?

Original comment by nes...@gmail.com on 21 Mar 2013 at 11:39

GoogleCodeExporter commented 8 years ago
I've updated the GettingStarted page. I hope you can follow it now.

Original comment by matthias.ringwald@gmail.com on 1 Apr 2013 at 2:23