大疆社区

标题: OSDK编译LIBUSB NOTFOUND [打印本页]

作者: dji-flighter    时间: 2022-12-1
标题: OSDK编译LIBUSB NOTFOUND
编译osdk的示例程序,cmake出现报错,
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/ubuntu/Onboard-SDK-master/osdk-core/LIBUSB_1_INCLUDE_DIR
   used as include directory in directory /home/ubuntu/Onboard-SDK-master/osdk-core
LIBUSB_1_INCLUDE_DIR
找不到LIBUSB_1_INCLUDE_DIR,源文件下面也没有这个目录,有人知道怎么回事吗?


作者: dji-flighter    时间: 2022-12-1
OSDK Linux demo中会使用到依赖库libusb用于USB数据传输,需要先安装libusb再编译。
参考安装指令:
sudo apt-get install libusb-1.0-0-dev
作者: 游侠某    时间: 2022-12-1
楼主这个回答显得特别的专业,体现出楼主的细致与专业




欢迎光临 大疆社区 (https://bbs.dji.com/) Powered by Discuz! X3.2