文件名称:btstack
介绍说明--下载内容均来自于网络,请自行研究使用
蓝牙协议栈btstack的源码,用于iphone的开发。
在XCODE 4.6 /MAC OS LION 10.7.3 上编译btstack步骤:
btstack的官网上的介绍各种不靠谱,按照上面的说法根本无法编译成功。
注意:XCODE要和其他APP放在一起,路径为/Applications/Xcode.app。不可省事放在桌面上。
1、下载btstack
svn checkout http://btstack.googlecode.com/svn/trunk/ btstack
2、编译生成iphone上的静态库libBTstack.a和动态库libBTstack.dylib
cd btstack
./bootstrap.sh
修改configure.in文件,找到这几行,改成如下这样
[Specify toolchain path])], DEVELOPER_PATH=$withval, DEVELOPER_PATH= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer )
AC_ARG_WITH(sdk-version, [AS_HELP_STRING([--with-sdk-version=6.1], [Specify SDK version])], SDK_VERS
-Btstack Bluetooth protocol stack source code for iphone development. In XCODE 4.6/MAC OS LION 10.7.3 compile btstack step: the official online presentation btstack various tricky, simply can not compile successfully in accordance with the above statement. Note: XCODE and other APP to put together, the path is/Applications/Xcode.app. Can not save on your desktop. 1, download btstack svn checkout http://btstack.googlecode.com/svn/trunk/ btstack 2, compiled on libBTstack.a iphone static library and dynamic library libBTstack.dylib cd btstack./Bootstrap.sh modify configure.in file, find these lines, so read as follows [Specify toolchain path])], DEVELOPER_PATH = $ withval, DEVELOPER_PATH = ' / Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer' ) AC_ARG_WITH (sdk-version, [AS_HELP_STRING ([- with-sdk-version = 6.1], [Specify SDK version])], SDK_VERS
在XCODE 4.6 /MAC OS LION 10.7.3 上编译btstack步骤:
btstack的官网上的介绍各种不靠谱,按照上面的说法根本无法编译成功。
注意:XCODE要和其他APP放在一起,路径为/Applications/Xcode.app。不可省事放在桌面上。
1、下载btstack
svn checkout http://btstack.googlecode.com/svn/trunk/ btstack
2、编译生成iphone上的静态库libBTstack.a和动态库libBTstack.dylib
cd btstack
./bootstrap.sh
修改configure.in文件,找到这几行,改成如下这样
[Specify toolchain path])], DEVELOPER_PATH=$withval, DEVELOPER_PATH= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer )
AC_ARG_WITH(sdk-version, [AS_HELP_STRING([--with-sdk-version=6.1], [Specify SDK version])], SDK_VERS
-Btstack Bluetooth protocol stack source code for iphone development. In XCODE 4.6/MAC OS LION 10.7.3 compile btstack step: the official online presentation btstack various tricky, simply can not compile successfully in accordance with the above statement. Note: XCODE and other APP to put together, the path is/Applications/Xcode.app. Can not save on your desktop. 1, download btstack svn checkout http://btstack.googlecode.com/svn/trunk/ btstack 2, compiled on libBTstack.a iphone static library and dynamic library libBTstack.dylib cd btstack./Bootstrap.sh modify configure.in file, find these lines, so read as follows [Specify toolchain path])], DEVELOPER_PATH = $ withval, DEVELOPER_PATH = ' / Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer' ) AC_ARG_WITH (sdk-version, [AS_HELP_STRING ([- with-sdk-version = 6.1], [Specify SDK version])], SDK_VERS
(系统自动生成,下载前可以参看下载内容)
下载文件列表
btstack\addCopyright.sh
.......\bootstrap.sh
.......\.ttest\bttest\bttest\AppDelegate.h
.......\......\......\......\AppDelegate.m
.......\......\......\......\bttest-Info.plist
.......\......\......\......\bttest-Prefix.pch
.......\......\......\......\Default-568h@2x.png
.......\......\......\......\Default.png
.......\......\......\......\Default@2x.png
.......\......\......\......\devicemanager.c
.......\......\......\......\devicemanager.h
.......\......\......\......\en.lproj\InfoPlist.strings
.......\......\......\......\........\MainStoryboard.storyboard
.......\......\......\......\main.m
.......\......\......\......\ViewController.h
.......\......\......\......\ViewController.m
.......\......\.......xcodeproj\project.pbxproj
.......\......\................\........xcworkspace\contents.xcworkspacedata
.......\......\................\...................\xcuserdata\zhouziwei.xcuserdatad\UserInterfaceState.xcuserstate
.......\......\................\...................\..........\.....................\xcdebugger\Expressions.xcexplist
.......\......\................\xcuserdata\zhouziwei.xcuserdatad\xcdebugger\Breakpoints.xcbkptlist
.......\......\................\..........\.....................\..schemes\bttest.xcscheme
.......\......\................\..........\.....................\.........\xcschememanagement.plist
.......\config-iphone.h
.......\config-iphone.sh
.......\config.guess
.......\config.h
.......\config.sub
.......\configure.in
.......\include\btstack\ant_cmds.h
.......\.......\.......\btstack.h
.......\.......\.......\hal_cpu.h
.......\.......\.......\hal_tick.h
.......\.......\.......\hal_uart_dma.h
.......\.......\.......\hci_cmds.h
.......\.......\.......\linked_list.h
.......\.......\.......\memory_pool.h
.......\.......\.......\run_loop.h
.......\.......\.......\sdp_util.h
.......\.......\.......\utils.h
.......\ltmain.sh
.......\Makefile.am
.......\Makefile.iphone
.......\package.sh
.......\src\btstack.c
.......\...\btstack_memory.c
.......\...\btstack_memory.h
.......\...\btstack_memory_generator.py
.......\...\bt_control.h
.......\...\bt_control_iphone.h
.......\...\bt_control_iphone.m
.......\...\daemon.c
.......\...\debug.h
.......\...\get_version.sh
.......\...\hci.c
.......\...\hci.h
.......\...\hci_cmds.c
.......\...\hci_dump.c
.......\...\hci_dump.h
.......\...\hci_transport.h
.......\...\hci_transport_h4.c
.......\...\hci_transport_h4_dma.c
.......\...\hci_transport_h4_ehcill_dma.c
.......\...\hci_transport_h4_iphone.c
.......\...\hci_transport_h5.c
.......\...\hci_transport_usb.c
.......\...\l2cap.c
.......\...\l2cap.h
.......\...\l2cap_signaling.c
.......\...\l2cap_signaling.h
.......\...\linked_list.c
.......\...\Makefile.am.disabled
.......\...\Makefile.in
.......\...\Makefile.in.bak
.......\...\Makefile.iphone
.......\...\memory_pool.c
.......\...\platform_iphone.h
.......\...\platform_iphone.m
.......\...\remote_device_db.h
.......\...\remote_device_db_iphone.m
.......\...\remote_device_db_memory.c
.......\...\rfcomm.c
.......\...\rfcomm.h
.......\...\run_loop.c
.......\...\run_loop_cocoa.m
.......\...\run_loop_embedded.c
.......\...\run_loop_posix.c
.......\...\run_loop_private.h
.......\...\sdp.c
.......\...\sdp.h
.......\...\sdp_client.c
.......\...\sdp_client.h
.......\...\sdp_parser.c
.......\...\sdp_parser.h
.......\...\sdp_query_rfcomm.c
.......\...\sdp_query_rfcomm.h
.......\...\sdp_util.c
.......\...\socket_connection.c
.......\...\socket_connection.h
.......\...\utils.c