github - 构建问题:找不到所需的包
问题描述
我尝试在 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 环境设置中做了某事。
按照此链接在Linking against libVLC部分下安装正确的路径
推荐阅读
- sql - PostgreSQL 排序,数字最后
- python - 在不同对象中散景多个实时流图/位于其他类中的寄存器更新例程
- google-apps-script - 如何使用显示草稿并将电子邮件发送到容器绑定项目的库?
- arrays - 将元素从数组复制到另一个保留嵌入空间
- c# - 如何从 .NET 中的序列化响应消息中获取原始 XML 部分
- exe - 如何使用 OpenWatcom 链接器使 DOS .exe 重定位表更小?
- html - 在 SQL Server 中使用新值更新 XML 列的 HTML 数据
- haskell - Stream 数据类型的函子和可折叠实例
- javascript - 为什么 elementRef 的 nativeElement 未定义?
- javascript - JS/TS:二维字符串数组突然变得未定义时出错