ROS PCL 配置 报错 undefined reference to
程序员文章站
2022-03-15 22:31:53
...
PCL错误代码
错误提示如下
undefined reference to `pcl::console::print(pcl::console::VERBOSITY_LEVEL, char const*, ...)'
这种错误一般是CMakeLists文件没有编写好。
解决办法
确保PCL库所有设置已经完整配置
我只需要在CMakeLists中添加
target_link_libraries(dev_detect
${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_LIBRARIES}
)
完整的PCL配置为
# pcl
find_package( PCL REQUIRED)
include_directories( ${PCL_INCLUDE_DIRS} )
link_directories(${PCL_LIBRARY_DIRS})
target_link_libraries(dev_detect
${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_LIBRARIES}
)
推荐阅读
-
配置c3p0-config.xml数据库连接池,jdbcurl配置项报错Type The reference to entity "useUnicode" must end with the ';' delimiter.
-
Android NDK 报错:undefined reference to ‘main‘(invalid character)解决办法
-
"undefined reference to `WinMain' collect2.exe" C++ / vscode报错记录
-
Android studio opencv报错undefined reference to 'cv::imwrite(cv::String const&, c
-
解决ROS编译安装Opencv项目出现undefined Reference to....问题
-
arm-none-eabi-gcc 报错 undefined reference to `_exit'解决方案
-
g++链接gcc编译的库报错“undefined reference to xxx”
-
配置c3p0-config.xml数据库连接池,jdbcurl配置项报错Type The reference to entity "useUnicode" must end with the ';' delimiter.
-
g++链接gcc编译的库报错“undefined reference to xxx”
-
那些报错之 error: undefined reference to ‘ ‘ ...