Quantcast
Channel: Gazebo: Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 7017

Failed to load plugin undefined symbol

$
0
0
Hi, I'm new at gazebo/ROS and wanted to write my own plugin after i tried the tutorial. but i get the following error: Error [Plugin.hh:156] Failed to load plugin /home/student/gazebo_plugin_tutorial/build/libTestPlugin.so: /home/student/gazebo_plugin_tutorial/build/libTestPlugin.so: undefined symbol: _ZN6gazebo10TestPlugin4InitEv This is my CMakelist. cmake_minimum_required(VERSION 2.8 FATAL_ERROR) find_package(Boost REQUIRED COMPONENTS system) include_directories(${Boost_INCLUDE_DIRS}) link_directories(${Boost_LIBRARY_DIRS}) include (FindPkgConfig) if (PKG_CONFIG_FOUND) pkg_check_modules(GAZEBO gazebo) endif() include_directories(${GAZEBO_INCLUDE_DIRS}) link_directories(${GAZEBO_LIBRARY_DIRS}) add_library(TestPlugin SHARED TestPlugin.cc) target_link_libraries( TestPlugin ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES} ${catkin_LIBRARIES} ) Thanks in advance for every answer

Viewing all articles
Browse latest Browse all 7017

Trending Articles