1. 安装失败内核不支持
问题:
由于我在Ubuntu20.04上进行安装,内核版本为5.13,而目前realsense最高仅支持到5.4,所以内核版本过高需要降低内核版本才能再次编译安装。
- 官方要求:https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md
- 查询自己的内核版本:
uname -a
解决:
- 降内核版本的教程如下:
https://baijiahao.baidu.com/s?id=1715367322983576815&wfr=spider&for=pc
2. Example中程序编译出错
问题:
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/hello-realsense.dir/build.make:84:hello-realsense] 错误 1
make[1]: *** [CMakeFiles/Makefile2:76:CMakeFiles/hello-realsense.dir/all] 错误 2
make: *** [Makefile:84:all] 错误 2
解决:
将CMakeLists.txt的内容中链接库改为指定的realsense2,如下
target_link_libraries(rs-hello-realsense realsense2)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)