seungmanChun / btstack

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

Compile failure #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OS is  OSX 10.8
XCODE 4.5
But Compile failure...

./configure --target=iphone --with-sdk-version=6.0 --with-gcc-version=4.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.0.0
checking host system type... x86_64-apple-darwin12.0.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... none
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes

BTstack configured for HCI H4 Transport
Cross-compiling for iPhone/iPod touch using Apple's iPhone SDK 6.0, GCC 4.2
SDK path: /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
iPhone IP for install-iphone target: 
USE_BLUETOOL:    yes
USE_LDID:        no
CC:                  
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4
.2
CPPFLAGS:             -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -Werror 
-Wall -Wpointer-arith
LDFLAGS:              -framework CoreFoundation -framework Foundation 
-framework Foundation -framework CoreFoundation -lobjc 
-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/L
ibrary/Frameworks/IOKit.framework/Versions/A -lIOKit 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/Lib
rary/PrivateFrameworks/BluetoothManager.framework/BluetoothManager
UART_DEVICE:         /dev/tty.bluetooth
UART_SPEED:          115200
PLATFORM_SOURCES:    bt_control_iphone.m platform_iphone.m 
hci_transport_h4_iphone.c
USE_LAUNCHD:         no
USE_SPRINGBOARD:     yes
USE_PREFSBUNDLE:     no
USE_POWERMANAGEMENT: yes
USE_COCOA_RUN_LOOP:  yes
REMOTE_DEVICE_DB:    remote_device_db_iphone
HAVE_SO_NOSIGPIPE:   yes

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating example/Makefile
config.status: creating PatchBlueTool/Makefile
config.status: creating SpringBoardAccess/Makefile
config.status: executing depfiles commands
sh-3.2# make
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh 
/Users/skaly/Desktop/BTstack/trunk/config/missing --run aclocal-1.12 
aclocal-1.12: warning: autoconf input should be named 'configure.ac', not 
'configure.in'
 cd . && /bin/sh /Users/skaly/Desktop/BTstack/trunk/config/missing --run automake-1.12 --foreign
automake-1.12: 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
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh 
/Users/skaly/Desktop/BTstack/trunk/config/missing --run autoconf
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --target=iphone 
--with-sdk-version=6.0 --with-gcc-version=4.2 target_alias=iphone --no-create 
--no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.0.0
checking host system type... x86_64-apple-darwin12.0.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... none
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
./configure: line 4207: syntax error near unexpected token `LIBUSB,'
./configure: line 4207: `    PKG_CHECK_MODULES(LIBUSB, libusb-1.0, 
HAVE_LIBUSB="yes", HAVE_LIBUSB="no")'
make: *** [config.status] Error 2
sh-3.2# make
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --target=iphone 
--with-sdk-version=6.0 --with-gcc-version=4.2 target_alias=iphone --no-create 
--no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.0.0
checking host system type... x86_64-apple-darwin12.0.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... yes
checking whether gcc accepts -g... yes
checking dependency style of gcc... none
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
./configure: line 4207: syntax error near unexpected token `LIBUSB,'
./configure: line 4207: `    PKG_CHECK_MODULES(LIBUSB, libusb-1.0, 
HAVE_LIBUSB="yes", HAVE_LIBUSB="no")'
make: *** [config.status] Error 2

May provide one to compile well, can above osx10.8 xcode4.5 the debugging and 
use libBTstack.dylib?

Original issue reported on code.google.com by bothwin...@gmail.com on 24 Oct 2012 at 3:14

GoogleCodeExporter commented 9 years ago
I don't think it compiles with Xcode 4.5, I suggest to install Xcode 4.4 for 
BTstack.
Then, you're lacking the pkg package.

if you only need libBTstack.dylib, you can take the one from your device. Also, 
please post on the mailing list.

Original comment by matthias.ringwald@gmail.com on 24 Oct 2012 at 8:07

GoogleCodeExporter commented 9 years ago
Same environment,Same problems!

Original comment by ekingo1...@gmail.com on 1 Nov 2012 at 3:16