link library in CMakelist.txt.

asked 2016-06-01 09:21:01 -0600

ZYS gravatar image

updated 2016-06-01 11:22:19 -0600

Thomas D gravatar image

I link library in CMakeList.txt shown below:

add_executable(mainLocal /home/gupta/catkin_ws_2/src/underwater_simulation/underwater_vehicle_dynamics /src/mainLocal.cpp)
target_link_libraries(mainLocal uwsim ${catkin_LIBRARIES} ${Boost_LIBRARIES} ${ARMADILLO_LIBRARIES} ${LINK_LIBRARIES} BulletDynamics)

BulletDynamics is the library I link. There is no compiling error. But when I run executable file in the terminal, there is error shown below:

Loading SimulatedDevices plugin: 'DredgeTool_Factory'
Loading SimulatedDevices plugin: 'ForceSensor_Factory'
Loading SimulatedDevices plugin: 'SimDev_Echo_Factory'
terminate called after throwing an instance of 'pluginlib::LibraryUnloadException'
  what():  According to the loaded plugin descriptions the class ForceSensor_Factory with base class type uwsim::SimulatedDeviceFactory does not exist. Declared types are  DredgeTool_Factory ForceSensor_Factory SimDev_Echo_Factory
Aborted (core dumped)

Any suggestion? Thanks so much.

edit retag flag offensive close merge delete

Comments

jarvisschultz gravatar image jarvisschultz  ( 2016-06-01 12:21:28 -0600 )edit