mips 编译bluez
时间: 2024-06-16 12:07:10 浏览: 182
linux平台的bluze编译
以下是两种mips编译Bluez的例子:
1. 编译termcap[^1]
```bash
tar zxvf termcap-1.3.1.tar.gz
cd termcap-1.3.1/
vim run.sh
```
在run.sh文件中添加以下内容:
```bash
#!/bin/bash
blue=/home/user/bluetooth/bluetooth-build
export blue
./configure \
--prefix=$blue \
--host=mips-linux-gnu \
CC="mips-linux-gnu-gcc" \
CFLAGS="-march=mips32r2 -muclibc -I$blue/include -I../dbus-1.12.20 -L$blue/lib -L../dbus-1.12.20" \
LDFLAGS=" -march=mips32r2 -muclibc"
chmod +x run.sh
./run.sh
make
make install
```
2. 编译bluez
```bash
tar xvf bluez-5.0.tar.xz
cd bluez-5.0/
vim run.sh
```
在run.sh文件中添加以下内容:
```bash
#!/bin/bash
blue=/home/user/bluetooth/bluetooth-build
export blue
./configure \
--prefix=$blue \
--host=mips-linux-gnu \
CC="mips-linux-gnu-gcc" \
CFLAGS="-march=mips32r2 -muclibc -I$blue/include -I../dbus-1.12.20 -I$blue/src -muclibc " \
LIBS="$blue/lib/libtermcap.a" \
--disable-udev \
--disable-test
chmod +x run.sh
./run.sh
make
make install
```
阅读全文