Building hector_gazebo on Windows fail

asked 2021-02-26 02:13:59 -0600

djangbahevans gravatar image

I am trying to build the hector_gazebo package on Windows by cloning the repo [https://github.com/tu-darmstadt-ros-p...] into my <workspace_dir>/src directory and running catkin_make. But the build fails with the following errors</workspace_dir>

[12/12] Linking CXX shared library C:\catkin_ws\devel\bin\gazebo_ros_thermal_depth_camera.dll
FAILED: C:/catkin_ws/devel/bin/gazebo_ros_thermal_depth_camera.dll C:/catkin_ws/devel/lib/gazebo_ros_thermal_depth_camera.lib
cmd.exe /C "cmd.exe /C "C:\opt\ros\noetic\x64\Lib\site-packages\cmake\data\bin\cmake.exe -E __create_def C:\catkin_ws\build\hector_gazebo\hector_gazebo_thermal_camera\CMakeFiles\gazebo_ros_thermal_depth_camera.dir\.\exports.def C:\catkin_ws\build\hector_gazebo\hector_gazebo_thermal_camera\CMakeFiles\gazebo_ros_thermal_depth_camera.dir\.\exports.def.objs && cd C:\catkin_ws\build" && C:\opt\ros\noetic\x64\Lib\site-packages\cmake\data\bin\cmake.exe -E vs_link_dll --intdir=hector_gazebo\hector_gazebo_thermal_camera\CMakeFiles\gazebo_ros_thermal_depth_camera.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100183~1.0\x64\mt.exe --manifests  -- C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\gazebo_ros_thermal_depth_camera.rsp  /out:C:\catkin_ws\devel\bin\gazebo_ros_thermal_depth_camera.dll /implib:C:\catkin_ws\devel\lib\gazebo_ros_thermal_depth_camera.lib /pdb:C:\catkin_ws\devel\bin\gazebo_ros_thermal_depth_camera.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL  /DEF:hector_gazebo\hector_gazebo_thermal_camera\CMakeFiles\gazebo_ros_thermal_depth_camera.dir\.\exports.def  && cd ."
LINK Pass 1: command "C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1428~1.293\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\gazebo_ros_thermal_depth_camera.rsp /out:C:\catkin_ws\devel\bin\gazebo_ros_thermal_depth_camera.dll /implib:C:\catkin_ws\devel\lib\gazebo_ros_thermal_depth_camera.lib /pdb:C:\catkin_ws\devel\bin\gazebo_ros_thermal_depth_camera.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL /DEF:hector_gazebo\hector_gazebo_thermal_camera\CMakeFiles\gazebo_ros_thermal_depth_camera.dir\.\exports.def /MANIFEST /MANIFESTFILE:hector_gazebo\hector_gazebo_thermal_camera\CMakeFiles\gazebo_ros_thermal_depth_camera.dir/intermediate.manifest hector_gazebo\hector_gazebo_thermal_camera\CMakeFiles\gazebo_ros_thermal_depth_camera.dir/manifest.res" failed (exit code 1120) with the following output:
   Creating library C:\catkin_ws\devel\lib\gazebo_ros_thermal_depth_camera.lib and object C:\catkin_ws\devel\lib\gazebo_ros_thermal_depth_camera.exp
gazebo_ros_thermal_depth_camera_plugin.cpp.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl gazebo::CameraPlugin::~CameraPlugin(void)" (??1CameraPlugin@gazebo@@UEAA@XZ) referenced in function "public: virtual void * __cdecl gazebo::CameraPlugin::`vector deleting destructor'(unsigned int)" (??_ECameraPlugin@gazebo@@UEAAPEAXI@Z)
gazebo_ros_thermal_depth_camera_plugin.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl gazebo::CameraPlugin::Load(class std::shared_ptr<class gazebo::sensors::Sensor>,class std::shared_ptr<class sdf::Element>)" (?Load@CameraPlugin@gazebo@@UEAAXV?$shared_ptr@VSensor@sensors@gazebo@@@std@@V?$shared_ptr@VElement@sdf@@@4@@Z)
gazebo_ros_thermal_depth_camera_plugin.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl gazebo::CameraPlugin::OnNewFrame(unsigned char const *,unsigned int,unsigned int,unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?OnNewFrame@CameraPlugin@gazebo@@UEAAXPEBEIIIAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
C:\catkin_ws\devel\bin\gazebo_ros_thermal_depth_camera.dll : fatal error LNK1120: 3 unresolved externals
ninja: build stopped: subcommand failed.
Invoking "ninja -j12 -l12" failed

This is not the full catkin_make output, and has been truncated for brevity.

edit retag flag offensive close merge delete