Advertisement

Install IntelRealSense on SUSE None of the required 'libusb-1.0' found

阅读量:

step 1:

从github 上把 master 分支的代码down下来

https://github.com/IntelRealSense/librealsense

安装指导(ubuntu系统上)

https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md

安装cmake 3.8版本以上

localhost:/usr/g/ctuser/expressmode/ai/IntelRealSense/librealsense/build # cmake --version
cmake version 3.10.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

cmake安装文档

<>

解决安装完不起作用的文档:

https://www.cnblogs.com/weiqinglan/p/5681539.html


mkdir bulid

cd bulid

cmake ..

解决

None of the required 'libusb-1.0' found


-- Info: REALSENSE_VERSION_STRING=2.13.0
-- Checking for one of the modules 'libusb-1.0'
CMake Error at /usr/g/ctuser/expressmode/tools/cmake/share/cmake-3.10/Modules/FindPkgConfig.cmake:645 (message):
None of the required 'libusb-1.0' found
Call Stack (most recent call first):
CMakeLists.txt:630 (pkg_search_module)

CMake Error at CMakeLists.txt:636 (message):
Failed to find libusb-1.0

-- Configuring incomplete, errors occurred!
See also "/usr/g/ctuser/expressmode/ai/IntelRealSense/librealsense/build/CMakeFiles/CMakeOutput.log".

这个问题折磨了我一整天

用指令:

pkg-config --libs libusb-1.0

Package libusb-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb-1.0' found

echo $PKG_CONFIG_PATH

/usr/share/pkgconfig:/usr/lib/pkgconfig

把 .pc 文件copy到 pkgconfig 的 环境路径下就可以了

cat /usr/lib/pkgconfig/libusb-1.0.pc
prefix=/usr/local
exec_prefix={prefix} libdir={exec_prefix}/lib
includedir=${prefix}/include

Name: libusb-1.0
Description: C API for USB device access from Linux, Mac OS X, Windows, OpenBSD/NetBSD and Solaris userspace
Version: 1.0.22
Libs: -L{libdir} -lusb-1.0 Libs.private: -pthread Cflags: -I{includedir}/libusb-1.0


全部评论 (0)

还没有任何评论哟~