# ROS 2 rviz_common compile error

I have a linking problem when compiling rviz_common that I can't figure out. Pretty sure it has something to do with my local configuration as it compiles under a clean Hyper-V Windows 11 with almost identical preliminary output. I have tried a lot of things already but am running out of ideas - probably because I am new to colcon.

Is there a way I can see exactly what libraries are being linked maybe?

Update: Reformatted and added some hints I have found:

I think it has something to do with yaml_cpp_vendor package being installed into the install/opt subdirectories, but I don't really know why this is happening or if it is correct. I do know that if I delete that directory I can get it to build with a manual make step, I think it then takes the yaml_cpp_vender package from the build subdirectory.

The problem with that theory is those install/opt directories exist in the clean install and seem to be correct. So that is maybe not related to the problem at all, even though the problem is clearly related to yaml_cpp since that is where the missing symbol comes from.

D:\ros\foxy>colcon build --merge-install --packages-select rviz_common --event-handlers console_direct+
Starting >>> rviz_common
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- Found ament_cmake: 0.9.10 (D:/ros/foxy/install/share/ament_cmake/cmake)
-- Using PYTHON_EXECUTABLE: C:/opt/ros/foxy/x64/python.exe
-- Found rviz_ogre_vendor: 8.2.6 (D:/ros/foxy/install/share/rviz_ogre_vendor/cmake)
-- Prepending to CMAKE_MODULE_PATH: 'D:/ros/foxy/install/share/rviz_ogre_vendor/cmake/../../../opt/rviz_ogre_vendor/CMake'
-- Setting OGRE_DIR to: 'D:/ros/foxy/install/share/rviz_ogre_vendor/cmake/../../../opt/rviz_ogre_vendor/CMake'
-- Found OGRE
--   static     : OFF
--   plugins    : Plugin_BSPSceneManager;Plugin_OctreeSceneManager;Plugin_PCZSceneManager;Plugin_ParticleFX;RenderSystem_GL;RenderSystem_GL3Plus;Codec_STBI;Codec_FreeImage
--   media      : D:/ros/foxy/install/opt/rviz_ogre_vendor/Media
-- OGRE_LIBRARY_DIRS: D:/ros/foxy/install/opt/rviz_ogre_vendor/lib
-- OGRE_PLUGINS: Plugin_BSPSceneManager;Plugin_OctreeSceneManager;Plugin_PCZSceneManager;Plugin_ParticleFX;RenderSystem_GL;RenderSystem_GL3Plus;Codec_STBI;Codec_FreeImage
-- OGRE_PLUGIN_DIR: D:/ros/foxy/install/opt/rviz_ogre_vendor/lib/OGRE
-- rviz_ogre_vendor::OgreOverlay for IMPORTED_LOCATION_RELEASE: D:/ros/foxy/install/opt/rviz_ogre_vendor/lib/OgreOverlay.lib
-- rviz_ogre_vendor::OgreOverlay for IMPORTED_LOCATION_DEBUG: _ogre_overlay_static_library_debug_abs-NOTFOUND
-- rviz_ogre_vendor::OgreMain for IMPORTED_LOCATION_RELEASE: D:/ros/foxy/install/opt/rviz_ogre_vendor/lib/OgreMain.lib
-- rviz_ogre_vendor::OgreMain for IMPORTED_LOCATION_DEBUG: _ogre_main_static_library_debug_abs-NOTFOUND
-- rviz_ogre_vendor::RenderSystem_GL for IMPORTED_LOCATION_RELEASE: D:/ros/foxy/install/opt/rviz_ogre_vendor/lib/OGRE/RenderSystem_GL.lib
-- rviz_ogre_vendor::RenderSystem_GL for IMPORTED_LOCATION_DEBUG: _render_system_gl_static_library_debug_abs-NOTFOUND
-- Found geometry_msgs: 2.0.5 (D:/ros/foxy/install/share/geometry_msgs/cmake)
-- Using all available rosidl_typesupport_c: rosidl_typesupport_fastrtps_c;rosidl_typesupport_introspection_c
-- Found rviz_assimp_vendor: 8.2.6 (D:/ros/foxy ...`