首页 > 解决方案 > 构建问题:找不到所需的包

问题描述

我尝试在 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

标签: githubkinectroslidar

解决方案


试试下面的代码。

sudo apt-get install libvlccore-dev
sudo apt-get install libvlc-dev

正确地说,这应该为您提供所需的 vlc 库。

如果仍然找不到,那么您很有可能在 .bashrc 或 PKG_CONFIG_PATH 环境设置中做了某事。

按照此链接在Linking against libVLC部分下安装正确的路径

https://wiki.videolan.org/LibVLC_Tutorial/


推荐阅读