编译BlueZ
来源:互联网 发布:龙之谷手游数据互通吗 编辑:程序博客网 时间:2024/05/16 04:22
网上能够找到很多关于BlueZ的文章,这里就不多介绍了。
我使用BlueZ是因为要播放音乐,并输出到蓝牙耳机。
我的环境是“Ubuntu 10.04”,因此匹配的BlueZ是4.60。
在BlueZ的README中,可以发现“
Compilation and installation
============================
In order to compile Bluetooth utilities you need following software packages:
- Linux Bluetooth protocol stack (BlueZ)
- GCC compiler
- D-Bus library
- GLib library
- USB library (optional)
- Lexical Analyzer (flex, lex)
- YACC (yacc, bison, byacc)
To configure run:
./configure --prefix=/usr --mandir=/usr/share/man /
--sysconfdir=/etc --localstatedir=/var --libexecdir=/lib
Configure automatically searches for all required components and packages.
To compile and install run:
make && make install
”
前面的D-Bus、GLib等都是依赖的库,需要提前安装好。
但是D-Bus、GLib一定要与Linux系统匹配,否则将导致系统启动不了(GLib不匹配),或系统运行不正常(D-Bus不匹配)。
在进行“configure”时,最好加上 “--enable-tools --enable-test --enable-debug”,这样就可以:
1.编译tool目录下的文件
2.编译test目录下的文件
3.文件编译后可以输出log
原则上就能够正常编译BlueZ了。
我使用BlueZ是因为要播放音乐,并输出到蓝牙耳机。
我的环境是“Ubuntu 10.04”,因此匹配的BlueZ是4.60。
在BlueZ的README中,可以发现“
Compilation and installation
============================
In order to compile Bluetooth utilities you need following software packages:
- Linux Bluetooth protocol stack (BlueZ)
- GCC compiler
- D-Bus library
- GLib library
- USB library (optional)
- Lexical Analyzer (flex, lex)
- YACC (yacc, bison, byacc)
To configure run:
./configure --prefix=/usr --mandir=/usr/share/man /
--sysconfdir=/etc --localstatedir=/var --libexecdir=/lib
Configure automatically searches for all required components and packages.
To compile and install run:
make && make install
”
前面的D-Bus、GLib等都是依赖的库,需要提前安装好。
但是D-Bus、GLib一定要与Linux系统匹配,否则将导致系统启动不了(GLib不匹配),或系统运行不正常(D-Bus不匹配)。
在进行“configure”时,最好加上 “--enable-tools --enable-test --enable-debug”,这样就可以:
1.编译tool目录下的文件
2.编译test目录下的文件
3.文件编译后可以输出log
原则上就能够正常编译BlueZ了。
- 编译BlueZ
- mini2440上编译bluez
- BlueZ的交叉编译
- 交叉编译bluez-4.95
- linux bluez编译
- openwrt 编译bluez-4.101
- BlueZ交叉编译
- bluez utils交叉编译通过
- bluez utils交叉编译通过
- openwrt单独编译bluez软件包
- openwrt编译bluez工具gatttool
- Bluez交叉编译-bluez4.101
- Bluez
- 基于bluez程序编译时注意事项
- 基于bluez程序编译时注意事项
- ubuntu10.04下编译通过bluez-4.88
- 关于Ubuntu 10.04下编译BlueZ错误
- Bluez交叉编译移植到arm linux
- 有用的东西。。。 哈哈
- linux修改root密码
- English, you make me confused
- 系统架构设计师考试试题分类精解与题型练习
- Java读取文件内容的几种方式集合
- 编译BlueZ
- xml-rpc的实践
- 珍惜!·
- 如何使用CppUnit进行单元测试
- Android之基于HTTP协议的下载
- js获取网站根路径(站点及虚拟目录),获得网站的根目录或虚拟目录的根地址
- android开发中webview保存cookie问题的解决
- C# 泛型简介
- android中webview调用拨号盘