IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 开发工具 -> 树莓派移植bluz-tools工具 -> 正文阅读

[开发工具]树莓派移植bluz-tools工具

下载bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1.tar.gz工具

解压

pi@raspberrypi:~/tools $ tar xvf bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1.tar.gz
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/.gitignore
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/AUTHORS
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/COPYING
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/ChangeLog
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/INSTALL
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/Makefile.am
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/NEWS
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/README
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/autogen.sh
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/configure.ac
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/adapter-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/agent-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/agent.xml
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/alert-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/assigned-numbers.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/cyclingspeed-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/device-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/health-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/heartrate-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/media-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/mgmt-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/network-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/obex-agent-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/obex-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/obex_agent.xml
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/profile-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/proximity-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/sap-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/settings-storage.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/supported-features.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/test-coverage.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/bluez-api-5.20-fixed/thermometer-api.txt
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/build-mans.sh
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/gen-dbus-gobject.pl
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/generate-bluez-gobjects.sh
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-adapter.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-agent.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-audio.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-device.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-input.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-monitor.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-network.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-obex.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/contrib/man/bt-serial.pod
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/git-version-gen
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/Makefile.am
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-adapter.1
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-adapter.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-agent.1
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-agent.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-device.1
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-device.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-network.1
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-network.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-obex.1
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/bt-obex.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/agent-helper.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/agent-helper.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez-api.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/adapter.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/adapter.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/agent_manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/agent_manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/alert.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/alert.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/alert_agent.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/alert_agent.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/cycling_speed.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/cycling_speed.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/cycling_speed_manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/cycling_speed_manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/device.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/device.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/health_channel.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/health_channel.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/health_device.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/health_device.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/health_manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/health_manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/heart_rate.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/heart_rate.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/heart_rate_manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/heart_rate_manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/media.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/media.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/media_control.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/media_control.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/media_player.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/media_player.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/network.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/network.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/network_server.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/network_server.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_agent_manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_agent_manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_client.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_client.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_file_transfer.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_file_transfer.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_message.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_message.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_message_access.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_message_access.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_object_push.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_object_push.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_phonebook_access.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_phonebook_access.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_session.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_session.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_synchronization.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_synchronization.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_transfer.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/obex/obex_transfer.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/profile_manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/profile_manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/proximity_monitor.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/proximity_monitor.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/proximity_reporter.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/proximity_reporter.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/sim_access.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/sim_access.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/thermometer.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/thermometer.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/thermometer_manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/bluez/thermometer_manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/dbus-common.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/dbus-common.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/helpers.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/helpers.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/manager.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/manager.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/obex_agent.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/obex_agent.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/properties.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/properties.h
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/sdp.c
bluez-tools-97efd293491ad7ec96a655665339908f2478b3d1/src/lib/sdp.h

编译:

pi@raspberrypi:~/tools/bluez-tools $ ./autogen.sh
./autogen.sh: 3: ./autogen.sh: autoreconf: not found
./autogen.sh: 4: ./autogen.sh: ./configure: not found

编译出错,百度查询错误

安装一些必要工具

pi@raspberrypi:~/tools/bluez-tools $ sudo apt-get install -y autoconf automake libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
? libao-common libao4 libbluetooth3 libcec4 libfstrcmp0 libgdata-common libgdata22 libgoa-1.0-0b libgoa-1.0-common
? libimobiledevice6 libiso9660-11 liblzo2-2 libmicrohttpd12 liboauth0 libpcrecpp0v5 libplist3 libpulse-mainloop-glib0
? libshairplay0 libtinyxml2.6.2v5 libusbmuxd4 python-bluez
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
? autotools-dev libltdl-dev libsigsegv2 m4
Suggested packages:
? autoconf-archive gnu-standards autoconf-doc gettext libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc
The following NEW packages will be installed:
? autoconf automake autotools-dev libltdl-dev libsigsegv2 libtool m4
0 upgraded, 7 newly installed, 0 to remove and 208 not upgraded.
Need to get 2,112 kB of archives.
After this operation, 6,463 kB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libsigsegv2 armhf 2.12-2 [32.3 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf m4 armhf 1.4.18-2 [185 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf autoconf all 2.69-11 [341 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf autotools-dev all 20180224.1 [77.0 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf automake all 1:1.16.1-4 [771 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libltdl-dev armhf 2.4.6-9 [159 kB]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libtool all 2.4.6-9 [547 kB]
Fetched 2,112 kB in 1s (1,782 kB/s)
Selecting previously unselected package libsigsegv2:armhf.
(Reading database ... 166680 files and directories currently installed.)
Preparing to unpack .../0-libsigsegv2_2.12-2_armhf.deb ...
Unpacking libsigsegv2:armhf (2.12-2) ...
Selecting previously unselected package m4.
Preparing to unpack .../1-m4_1.4.18-2_armhf.deb ...
Unpacking m4 (1.4.18-2) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../2-autoconf_2.69-11_all.deb ...
Unpacking autoconf (2.69-11) ...
Selecting previously unselected package autotools-dev.
Preparing to unpack .../3-autotools-dev_20180224.1_all.deb ...
Unpacking autotools-dev (20180224.1) ...
Selecting previously unselected package automake.
Preparing to unpack .../4-automake_1%3a1.16.1-4_all.deb ...
Unpacking automake (1:1.16.1-4) ...
Selecting previously unselected package libltdl-dev:armhf.
Preparing to unpack .../5-libltdl-dev_2.4.6-9_armhf.deb ...
Unpacking libltdl-dev:armhf (2.4.6-9) ...
Selecting previously unselected package libtool.
Preparing to unpack .../6-libtool_2.4.6-9_all.deb ...
Unpacking libtool (2.4.6-9) ...
Setting up autotools-dev (20180224.1) ...
Setting up libsigsegv2:armhf (2.12-2) ...
Setting up libtool (2.4.6-9) ...
Setting up m4 (1.4.18-2) ...
Setting up autoconf (2.69-11) ...
Setting up automake (1:1.16.1-4) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up libltdl-dev:armhf (2.4.6-9) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...
?

再次编译

pi@raspberrypi:~/tools/bluez-tools $ sudo ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:18: installing './compile'
configure.ac:3: installing './install-sh'
configure.ac:3: installing './missing'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... no
configure: error: Package requirements (glib-2.0 >= 2.36.0) were not met:

No package 'glib-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

还是报错,继续查找解决方法

再安装一些工具

pi@raspberrypi:~/tools/bluez-tools $ sudo apt install -y libglib2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
? libao-common libao4 libbluetooth3 libcec4 libfstrcmp0 libgdata-common libgdata22 libgoa-1.0-0b libgoa-1.0-common
? libimobiledevice6 libiso9660-11 liblzo2-2 libmicrohttpd12 liboauth0 libplist3 libpulse-mainloop-glib0 libshairplay0
? libtinyxml2.6.2v5 libusbmuxd4 python-bluez
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
? libblkid-dev libffi-dev libglib2.0-dev-bin libmount-dev libpcre16-3 libpcre3-dev libpcre32-3 libselinux1-dev libsepol1-dev
? uuid-dev
Suggested packages:
? libglib2.0-doc libgdk-pixbuf2.0-bin | libgdk-pixbuf2.0-dev libxml2-utils
The following NEW packages will be installed:
? libblkid-dev libffi-dev libglib2.0-dev libglib2.0-dev-bin libmount-dev libpcre16-3 libpcre3-dev libpcre32-3 libselinux1-dev
? libsepol1-dev uuid-dev
0 upgraded, 11 newly installed, 0 to remove and 208 not upgraded.
Need to get 3,688 kB of archives.
After this operation, 14.7 MB of additional disk space will be used.
Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf uuid-dev armhf 2.33.1-0.1 [92.4 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libblkid-dev armhf 2.33.1-0.1 [210 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libffi-dev armhf 3.2.1-9 [159 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libglib2.0-dev-bin armhf 2.58.3-2+deb10u2 [155 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libmount-dev armhf 2.33.1-0.1 [209 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libpcre16-3 armhf 2:8.39-12 [234 kB]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libpcre32-3 armhf 2:8.39-12 [227 kB]
Get:8 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libpcre3-dev armhf 2:8.39-12 [564 kB]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libsepol1-dev armhf 2.8-1 [309 kB]
Get:10 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libselinux1-dev armhf 2.8-1+b1 [156 kB]
Get:11 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libglib2.0-dev armhf 2.58.3-2+deb10u2 [1,372 kB]
Fetched 3,688 kB in 1s (2,935 kB/s)
Selecting previously unselected package uuid-dev:armhf.
(Reading database ... 167046 files and directories currently installed.)
Preparing to unpack .../00-uuid-dev_2.33.1-0.1_armhf.deb ...
Unpacking uuid-dev:armhf (2.33.1-0.1) ...
Selecting previously unselected package libblkid-dev:armhf.
Preparing to unpack .../01-libblkid-dev_2.33.1-0.1_armhf.deb ...
Unpacking libblkid-dev:armhf (2.33.1-0.1) ...
Selecting previously unselected package libffi-dev:armhf.
Preparing to unpack .../02-libffi-dev_3.2.1-9_armhf.deb ...
Unpacking libffi-dev:armhf (3.2.1-9) ...
Selecting previously unselected package libglib2.0-dev-bin.
Preparing to unpack .../03-libglib2.0-dev-bin_2.58.3-2+deb10u2_armhf.deb ...
Unpacking libglib2.0-dev-bin (2.58.3-2+deb10u2) ...
Selecting previously unselected package libmount-dev:armhf.
Preparing to unpack .../04-libmount-dev_2.33.1-0.1_armhf.deb ...
Unpacking libmount-dev:armhf (2.33.1-0.1) ...
Selecting previously unselected package libpcre16-3:armhf.
Preparing to unpack .../05-libpcre16-3_2%3a8.39-12_armhf.deb ...
Unpacking libpcre16-3:armhf (2:8.39-12) ...
Selecting previously unselected package libpcre32-3:armhf.
Preparing to unpack .../06-libpcre32-3_2%3a8.39-12_armhf.deb ...
Unpacking libpcre32-3:armhf (2:8.39-12) ...
Selecting previously unselected package libpcre3-dev:armhf.
Preparing to unpack .../07-libpcre3-dev_2%3a8.39-12_armhf.deb ...
Unpacking libpcre3-dev:armhf (2:8.39-12) ...
Selecting previously unselected package libsepol1-dev:armhf.
Preparing to unpack .../08-libsepol1-dev_2.8-1_armhf.deb ...
Unpacking libsepol1-dev:armhf (2.8-1) ...
Selecting previously unselected package libselinux1-dev:armhf.
Preparing to unpack .../09-libselinux1-dev_2.8-1+b1_armhf.deb ...
Unpacking libselinux1-dev:armhf (2.8-1+b1) ...
Selecting previously unselected package libglib2.0-dev:armhf.
Preparing to unpack .../10-libglib2.0-dev_2.58.3-2+deb10u2_armhf.deb ...
Unpacking libglib2.0-dev:armhf (2.58.3-2+deb10u2) ...
Setting up libglib2.0-dev-bin (2.58.3-2+deb10u2) ...
Setting up libpcre16-3:armhf (2:8.39-12) ...
Setting up libsepol1-dev:armhf (2.8-1) ...
Setting up libffi-dev:armhf (3.2.1-9) ...
Setting up uuid-dev:armhf (2.33.1-0.1) ...
Setting up libpcre32-3:armhf (2:8.39-12) ...
Setting up libblkid-dev:armhf (2.33.1-0.1) ...
Setting up libpcre3-dev:armhf (2:8.39-12) ...
Setting up libmount-dev:armhf (2.33.1-0.1) ...
Setting up libselinux1-dev:armhf (2.8-1+b1) ...
Setting up libglib2.0-dev:armhf (2.58.3-2+deb10u2) ...
Processing triggers for libglib2.0-0:armhf (2.58.3-2+deb10u2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...

终于通过了

pi@raspberrypi:~/tools/bluez-tools $ sudo ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for GIO... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking for readline in -lreadline... 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 config.h
config.status: executing depfiles commands
?

make编译

pi@raspberrypi:~/tools/bluez-tools $ sudo make
make ?all-recursive
make[1]: Entering directory '/home/pi/tools/bluez-tools'
Making all in src
make[2]: Entering directory '/home/pi/tools/bluez-tools/src'
depbase=`echo lib/agent-helper.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/agent-helper.o -MD -MP -MF $depbase.Tpo -c -o lib/agent-helper.o lib/agent-helper.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/dbus-common.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/dbus-common.o -MD -MP -MF $depbase.Tpo -c -o lib/dbus-common.o lib/dbus-common.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/helpers.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/helpers.o -MD -MP -MF $depbase.Tpo -c -o lib/helpers.o lib/helpers.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/manager.o -MD -MP -MF $depbase.Tpo -c -o lib/manager.o lib/manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/obex_agent.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/obex_agent.o -MD -MP -MF $depbase.Tpo -c -o lib/obex_agent.o lib/obex_agent.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/properties.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/properties.o -MD -MP -MF $depbase.Tpo -c -o lib/properties.o lib/properties.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/sdp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/sdp.o -MD -MP -MF $depbase.Tpo -c -o lib/sdp.o lib/sdp.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/adapter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/adapter.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/adapter.o lib/bluez/adapter.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/agent_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/agent_manager.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/agent_manager.o lib/bluez/agent_manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/alert_agent.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/alert_agent.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/alert_agent.o lib/bluez/alert_agent.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/alert.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/alert.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/alert.o lib/bluez/alert.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/cycling_speed.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/cycling_speed.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/cycling_speed.o lib/bluez/cycling_speed.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/cycling_speed_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/cycling_speed_manager.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/cycling_speed_manager.o lib/bluez/cycling_speed_manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/device.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/device.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/device.o lib/bluez/device.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/health_channel.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/health_channel.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/health_channel.o lib/bluez/health_channel.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/health_device.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/health_device.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/health_device.o lib/bluez/health_device.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/health_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/health_manager.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/health_manager.o lib/bluez/health_manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/heart_rate.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/heart_rate.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/heart_rate.o lib/bluez/heart_rate.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/heart_rate_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/heart_rate_manager.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/heart_rate_manager.o lib/bluez/heart_rate_manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/media.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/media.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/media.o lib/bluez/media.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/media_control.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/media_control.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/media_control.o lib/bluez/media_control.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/media_player.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/media_player.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/media_player.o lib/bluez/media_player.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/network.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/network.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/network.o lib/bluez/network.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/network_server.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/network_server.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/network_server.o lib/bluez/network_server.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_agent_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_agent_manager.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_agent_manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_client.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_client.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_client.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_file_transfer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_file_transfer.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_file_transfer.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_message_access.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_message_access.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message_access.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_message.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_message.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_message.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_object_push.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_object_push.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_object_push.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_phonebook_access.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_phonebook_access.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_phonebook_access.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_session.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_session.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_session.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_synchronization.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_synchronization.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_synchronization.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/obex/obex_transfer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/obex/obex_transfer.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/obex/obex_transfer.o lib/bluez/obex/obex_transfer.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/profile_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/profile_manager.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/profile_manager.o lib/bluez/profile_manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/proximity_monitor.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/proximity_monitor.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/proximity_monitor.o lib/bluez/proximity_monitor.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/proximity_reporter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/proximity_reporter.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/proximity_reporter.o lib/bluez/proximity_reporter.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/sim_access.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/sim_access.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/sim_access.o lib/bluez/sim_access.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/thermometer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/thermometer.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/thermometer.o lib/bluez/thermometer.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo lib/bluez/thermometer_manager.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT lib/bluez/thermometer_manager.o -MD -MP -MF $depbase.Tpo -c -o lib/bluez/thermometer_manager.o lib/bluez/thermometer_manager.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo bt-adapter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT bt-adapter.o -MD -MP -MF $depbase.Tpo -c -o bt-adapter.o bt-adapter.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc ?-O2 ? -o bt-adapter lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-adapter.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
depbase=`echo bt-agent.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT bt-agent.o -MD -MP -MF $depbase.Tpo -c -o bt-agent.o bt-agent.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc ?-O2 ? -o bt-agent lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-agent.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
depbase=`echo bt-device.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT bt-device.o -MD -MP -MF $depbase.Tpo -c -o bt-device.o bt-device.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc ?-O2 ? -o bt-device lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-device.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
depbase=`echo bt-network.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT bt-network.o -MD -MP -MF $depbase.Tpo -c -o bt-network.o bt-network.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc ?-O2 ? -o bt-network lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-network.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
depbase=`echo bt-obex.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I.. ?-I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uuid -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include ? -O2 -MT bt-obex.o -MD -MP -MF $depbase.Tpo -c -o bt-obex.o bt-obex.c &&\
mv -f $depbase.Tpo $depbase.Po
gcc ?-O2 ? -o bt-obex lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-obex.o -lglib-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lreadline
make[2]: Leaving directory '/home/pi/tools/bluez-tools/src'
make[2]: Entering directory '/home/pi/tools/bluez-tools'
make[2]: Leaving directory '/home/pi/tools/bluez-tools'
make[1]: Leaving directory '/home/pi/tools/bluez-tools'

pi@raspberrypi:~/tools/bluez-tools $ sudo make install
make ?install-recursive
make[1]: Entering directory '/home/pi/tools/bluez-tools'
Making install in src
make[2]: Entering directory '/home/pi/tools/bluez-tools/src'
make[3]: Entering directory '/home/pi/tools/bluez-tools/src'
?/usr/bin/mkdir -p '/usr/local/bin'
? /usr/bin/install -c bt-adapter bt-agent bt-device bt-network bt-obex '/usr/local/bin'
?/usr/bin/mkdir -p '/usr/local/share/man/man1'
?/usr/bin/install -c -m 644 bt-adapter.1 bt-agent.1 bt-device.1 bt-network.1 bt-obex.1 '/usr/local/share/man/man1'
make[3]: Leaving directory '/home/pi/tools/bluez-tools/src'
make[2]: Leaving directory '/home/pi/tools/bluez-tools/src'
make[2]: Entering directory '/home/pi/tools/bluez-tools'
make[3]: Entering directory '/home/pi/tools/bluez-tools'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/pi/tools/bluez-tools'
make[2]: Leaving directory '/home/pi/tools/bluez-tools'
make[1]: Leaving directory '/home/pi/tools/bluez-tools'

以上编译步骤,主要安装一些必要的工具

接下来开始使用编译好的工具

查找蓝牙配对地址

pi@raspberrypi:~/tools/bluez-tools $ sudo bt-adapter -d

Searching...
[53:F0:51:36:A8:F9]
? Name: (null)
? Alias: 53-F0-51-36-A8-F9
? Address: 53:F0:51:36:A8:F9
? Icon: (null)
? Class: 0x0
? LegacyPairing: 0
? Paired: 0
? RSSI: -87

[84:1B:38:AF:9B:8A]
? Name: BOC-7259
? Alias: BOC-7259
? Address: 84:1B:38:AF:9B:8A
? Icon: (null)
? Class: 0x0
? LegacyPairing: 0
? Paired: 0
? RSSI: -88

找到你的蓝牙配对地址,并进行连接

接收文件出错

pi@raspberrypi:~/tools/bluez-tools $ sudo bt-obex -s
Couldn't connect to DBus session bus: Error spawning command line “dbus-launch --autolaunch=bf6d271ef2c9433598e2ec865f145abf --binary-syntax --close-stderr”: Child process exited with code 1

切换root用户试下

root@raspberrypi:~# bt-obex -s
bt-obex: obex service is not found
Did you forget to run obexd?

发现新的错误

于是安装obexd

root@raspberrypi:~# sudo apt-get install bluez-obexd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
? libao-common libao4 libbluetooth3 libcec4 libfstrcmp0 libgdata-common libgdata22 libgoa-1.0-0b libgoa-1.0-common
? libimobiledevice6 libiso9660-11 liblzo2-2 libmicrohttpd12 liboauth0 libplist3 libpulse-mainloop-glib0 libshairplay0
? libtinyxml2.6.2v5 libusbmuxd4 python-bluez
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
? libical3
The following NEW packages will be installed:
? bluez-obexd libical3
0 upgraded, 2 newly installed, 0 to remove and 208 not upgraded.
Need to get 407 kB of archives.
After this operation, 1,543 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main armhf libical3 armhf 3.0.4-3 [227 kB]
Get:2 http://archive.raspberrypi.org/debian buster/main armhf bluez-obexd armhf 5.50-1.2~deb10u2+rpt1 [181 kB]
Fetched 407 kB in 2s (227 kB/s)
Selecting previously unselected package libical3:armhf.
(Reading database ... 167984 files and directories currently installed.)
Preparing to unpack .../libical3_3.0.4-3_armhf.deb ...
Unpacking libical3:armhf (3.0.4-3) ...
Selecting previously unselected package bluez-obexd.
Preparing to unpack .../bluez-obexd_5.50-1.2~deb10u2+rpt1_armhf.deb ...
Unpacking bluez-obexd (5.50-1.2~deb10u2+rpt1) ...
Setting up libical3:armhf (3.0.4-3) ...
Setting up bluez-obexd (5.50-1.2~deb10u2+rpt1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
?

执行命令

root@raspberrypi:~# /usr/lib/bluetooth/obexd -a -d -n &
[1] 9302
root@raspberrypi:~# obexd[9302]: OBEX daemon 5.50
obexd[9302]: obexd/src/main.c:main() Entering main loop
obexd[9302]: obexd/src/manager.c:manager_init()
obexd[9302]: obexd/src/plugin.c:plugin_init() Loading builtin plugins
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e1c4 mimetype x-obex/folder-listing registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e200 mimetype x-obex/capability registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e23c mimetype x-obex/folder-listing registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e188 mimetype (null) registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin filesystem loaded
obexd[9302]: obexd/src/transport.c:obex_transport_driver_register() driver 0x7e284 transport bluetooth registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin bluetooth loaded
obexd[9302]: obexd/src/service.c:obex_service_driver_register() driver 0x7e2e4 service Nokia OBEX PC Suite Services registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e2a8 mimetype application/vnd.nokia-backup registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin pcsuite loaded
obexd[9302]: obexd/src/service.c:obex_service_driver_register() driver 0x7e338 service Object Push server registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin opp loaded
obexd[9302]: obexd/src/service.c:obex_service_driver_register() driver 0x7e38c service File Transfer server registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin ftp loaded
obexd[9302]: obexd/plugins/irmc.c:irmc_init()
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e428 mimetype (null) registered
obexd[9302]: obexd/src/service.c:obex_service_driver_register() driver 0x7e3e0 service IRMC Sync server registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin irmc loaded
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e4b8 mimetype x-bt/phonebook registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e4f4 mimetype x-bt/vcard-listing registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e530 mimetype x-bt/vcard registered
obexd[9302]: obexd/src/service.c:obex_service_driver_register() driver 0x7e470 service Phonebook Access server registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin pbap loaded
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e5b4 mimetype (null) registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e578 mimetype x-bt/message registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e734 mimetype x-obex/folder-listing registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e6f8 mimetype x-bt/MAP-msg-listing registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e6bc mimetype x-bt/MAP-NotificationRegistration registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e680 mimetype x-bt/messageStatus registered
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e644 mimetype x-bt/MAP-messageUpdate registered
obexd[9302]: obexd/src/service.c:obex_service_driver_register() driver 0x7e5f0 service Message Access server registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin mas loaded
obexd[9302]: obexd/src/mimetype.c:obex_mime_type_driver_register() driver 0x7e7b8 mimetype x-bt/MAP-event-report registered
obexd[9302]: obexd/src/service.c:obex_service_driver_register() driver 0x7e770 service Message Notification server registered
obexd[9302]: obexd/src/plugin.c:add_plugin() Plugin mns loaded
obexd[9302]: obexd/src/plugin.c:plugin_init() Loading plugins /usr/lib/arm-linux-gnueabihf/obex/plugins
obexd[9302]: obexd/client/bluetooth.c:bluetooth_init()
obexd[9302]: obexd/client/transport.c:obc_transport_register() transport 0x7e9c0 name Bluetooth registered
obexd[9302]: obexd/client/manager.c:client_manager_init() Module bluetooth loaded
obexd[9302]: obexd/client/opp.c:opp_init()
obexd[9302]: obexd/client/driver.c:obc_driver_register() driver 0x7ea44 service OPP registered
obexd[9302]: obexd/client/manager.c:client_manager_init() Module opp loaded
obexd[9302]: obexd/client/ftp.c:ftp_init()
obexd[9302]: obexd/client/driver.c:obc_driver_register() driver 0x7ea0c service FTP registered
obexd[9302]: obexd/client/driver.c:obc_driver_register() driver 0x7ea28 service PCSUITE registered
obexd[9302]: obexd/client/manager.c:client_manager_init() Module ftp loaded
obexd[9302]: obexd/client/pbap.c:pbap_init()
obexd[9302]: obexd/client/driver.c:obc_driver_register() driver 0x7e9f0 service PBAP registered
obexd[9302]: obexd/client/manager.c:client_manager_init() Module pbap loaded
obexd[9302]: obexd/client/sync.c:sync_init()
obexd[9302]: obexd/client/driver.c:obc_driver_register() driver 0x7e9d4 service SYNC registered
obexd[9302]: obexd/client/manager.c:client_manager_init() Module sync loaded
obexd[9302]: obexd/client/map.c:map_init()
obexd[9302]: obexd/client/driver.c:obc_driver_register() driver 0x7eae8 service MAP registered
obexd[9302]: obexd/client/manager.c:client_manager_init() Module map loaded
obexd[9302]: obexd/plugins/bluetooth.c:name_acquired() org.bluez appeared
obexd[9302]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001133_0000_1000_8000_00805f9b34fb registered
obexd[9302]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001132_0000_1000_8000_00805f9b34fb registered
obexd[9302]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/0000112f_0000_1000_8000_00805f9b34fb registered
obexd[9302]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001104_0000_1000_8000_00805f9b34fb registered
obexd[9302]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001106_0000_1000_8000_00805f9b34fb registered
obexd[9302]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00001105_0000_1000_8000_00805f9b34fb registered
obexd[9302]: obexd/plugins/bluetooth.c:register_profile_reply() Profile /org/bluez/obex/00005005_0000_1000_8000_0002ee000001 registered

root@raspberrypi:~#?export $(dbus-launch)

最后可以发送和接收了


?

?


?

  开发工具 最新文章
Postman接口测试之Mock快速入门
ASCII码空格替换查表_最全ASCII码对照表0-2
如何使用 ssh 建立 socks 代理
Typora配合PicGo阿里云图床配置
SoapUI、Jmeter、Postman三种接口测试工具的
github用相对路径显示图片_GitHub 中 readm
Windows编译g2o及其g2o viewer
解决jupyter notebook无法连接/ jupyter连接
Git恢复到之前版本
VScode常用快捷键
上一篇文章      下一篇文章      查看所有文章
加:2022-05-25 11:41:27  更:2022-05-25 11:42:00 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/26 0:37:42-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码