构建问题:找不到所需的包
Building problem: A required package was not found
我尝试在 ros kinetic 上安装到 s300 库(cob_sick_s300),但我一直卡在 cmake 步骤上。
这里是完整的日志,你有什么想法吗?
-- Found the following Boost libraries:
-- filesystem
-- thread
-- system
-- chrono
-- date_time
-- atomic
-- Checking for module 'libvlc'
-- No package 'libvlc' found
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
cob_driver/cob_mimic/CMakeLists.txt:7 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/home/tarik/s300_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/tarik/s300_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
试试下面的代码。
sudo apt-get install libvlccore-dev
sudo apt-get install libvlc-dev
没错,这应该会为您提供所需的 vlc 库。
如果还是找不到,那么很有可能是你在.bashrc 或PKG_CONFIG_PATH 环境设置中做了某事。
按照此 link 在 Linking against libVLC 部分
下安装正确的路径
我尝试在 ros kinetic 上安装到 s300 库(cob_sick_s300),但我一直卡在 cmake 步骤上。
这里是完整的日志,你有什么想法吗?
-- Found the following Boost libraries:
-- filesystem
-- thread
-- system
-- chrono
-- date_time
-- atomic
-- Checking for module 'libvlc'
-- No package 'libvlc' found
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
cob_driver/cob_mimic/CMakeLists.txt:7 (pkg_check_modules)
-- Configuring incomplete, errors occurred!
See also "/home/tarik/s300_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/tarik/s300_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
试试下面的代码。
sudo apt-get install libvlccore-dev
sudo apt-get install libvlc-dev
没错,这应该会为您提供所需的 vlc 库。
如果还是找不到,那么很有可能是你在.bashrc 或PKG_CONFIG_PATH 环境设置中做了某事。
按照此 link 在 Linking against libVLC 部分
下安装正确的路径