正在上传图片(0/1)

OSDK编译LIBUSB NOTFOUND

 0
手机看帖 2 1185
编译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,源文件下面也没有这个目录,有人知道怎么回事吗?

评论
上传
你需要登录之后才能回帖    登录 | 注册
楼主   2022-12-1 3#
OSDK Linux demo中会使用到依赖库libusb用于USB数据传输,需要先安装libusb再编译。
参考安装指令:
sudo apt-get install libusb-1.0-0-dev
游侠某  DJI Air 3认证用户 2022-12-1 4#
楼主这个回答显得特别的专业,体现出楼主的细致与专业
取消 点赞 评论
分享至:
回复:
上传
取消 评论
快速回复 返回顶部 返回列表