之前在mtk8516平台的相关代码编译时遇到如下问题,需要安装gn ninja,日志如下,
VENDOR_LIBRARY = vendorlib_7.sh
| MTK_BT_CHIP_ID = mt7668
| MTK_BT_PROJECT = aud8516m3v5-emmc-64b
| not disable sys log:no
| start clean bluetooth vendor
| Bluetooth_Tool_Dir = /home/aispeech/aispeech_space/mtk8516/yocto_mt8516_git/build/../src/connectivity/bt_others/bluetooth_tool
| VENDOR_LIBRARY = vendorlib_7.sh
| MTK_BT_CHIP_ID = mt7668
| start clean vendor lib
| start clean boots
| start build bluetooth vendor
| start build vendor lib
| build_vendorlib_7.sh: line 44: gn: command not found
| build_vendorlib_7.sh: line 45: ninja: command not found
| vendor_lib compile fail!!
| vendor_lib compile fail!!
问题1,
| build_vendorlib_7.sh: line 45: ninja: command not found
1-1 解决方法, 对于ninja这个命令可以直接apt-get进行安装,
sudo apt-get install ninja-build
1-2 解决方法 对于解决方法 1-1安装的ninja-build的版本相对较低,我们还可以直接通过官网进行ninja命令的安装, https://ninja-build.org/
问题2,
| build_vendorlib_7.sh: line 44: gn: command not found
解决方法, 对于gn命令不能直接进行apt-get进行安装,而是需要通过google提供的官网进行下载, https://gn.googlesource.com/gn/
而我这里是直接下载Linux下的可执行程序,下载路径,gn下载链接
https://ninja-build.org/
|