osrf / drcsim

Repository for the DRC project.
18 stars 7 forks source link

error when build drcsim in ubuntu16.04 ros-kinetic #500

Open osrf-migration opened 4 years ago

osrf-migration commented 4 years ago

Original report (archived issue) by Anonymous.


/usr/bin/ld:/home/stz/atlas_ws/src/drcsim/drcsim_model_resources/AtlasSimInterface_1.1.1/lib64/libAtlasSimInterface.so: file format not recognized; treating as linker script /usr/bin/ld:/home/stz/atlas_ws/src/drcsim/drcsim_model_resources/AtlasSimInterface_1.1.1/lib64/libAtlasSimInterface.so:1: syntax error [ 94%] Building CXX object drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/SandiaHandPlugin.dir/src/SandiaHandPlugin.cpp.o collect2: error: ld returned 1 exit status drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/AtlasPlugin.dir/build.make:253: recipe for target '/home/stz/atlas_ws/devel/lib/libAtlasPlugin.so' failed make[2]: [/home/stz/atlas_ws/devel/lib/libAtlasPlugin.so] Error 1 CMakeFiles/Makefile2:15358: recipe for target 'drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/AtlasPlugin.dir/all' failed make[1]: [drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/AtlasPlugin.dir/all] Error 2

osrf-migration commented 4 years ago

Original comment by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).


I see a syntax error report in the compilation log but can not see which is the real error which is reported probably in the log before these lines. Can you try to locate it and paste the error here?

osrf-migration commented 4 years ago

Original comment by tangzhong song (Bitbucket: tangzhong song).


/home/stz/atlas_ws/src/drcsim/drcsim_gazebo_ros_plugins/src/ContactModelPlugin.cpp: In member function ‘virtual void gazebo::ContactModelPlugin::Init()’:

/home/stz/atlas_ws/src/drcsim/drcsim_gazebo_ros_plugins/src/ContactModelPlugin.cpp:88:5: error: ‘replace_all’ is not a member of ‘boost’

‌ boost::replace_all(topicName, "::", "/");

‌ ^

/home/stz/atlas_ws/src/drcsim/drcsim_gazebo_ros_plugins/src/ContactModelPlugin.cpp:91:5: error: ‘replace_all’ is not a member of ‘boost’

‌ boost::replace_all(this->filterTopicName, "::", "/");

‌ ^

drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/ContactModelPlugin.dir/build.make:62: recipe for target 'drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/ContactModelPlugin.dir/src/ContactModelPlugin.cpp.o' failed

make[2]: *** [drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/ContactModelPlugin.dir/src/ContactModelPlugin.cpp.o] Error 1

CMakeFiles/Makefile2:15932: recipe for target 'drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/ContactModelPlugin.dir/all' failed

make[1]: *** [drcsim/drcsim_gazebo_ros_plugins/CMakeFiles/ContactModelPlugin.dir/all] Error 2

[ 95%] Linking CXX executable /home/stz/atlas_ws/devel/lib/drcsim_gazebo_ros_plugins/actionlib_server

[ 95%] Built target actionlib_server

Makefile:138: recipe for target 'all' failed

make: *** [all] Error 2

Invoking "make install -j4 -l4" failed