Skip to content

Add symbol visibility macros to make*Palette public functions (backport #1492) - #1500

Merged
ahcorde merged 1 commit into
jazzyfrom
mergify/bp/jazzy/pr-1492
Jun 24, 2025
Merged

ahcorde merged 1 commit into
jazzyfrom
mergify/bp/jazzy/pr-1492

Conversation

@mergify

@mergify mergify Bot commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

Description

Add symbol visibility macros to make*Palette public functions. The functions are included in public headers and used in downstream projects (see https://github.com/OctoMap/octomap_rviz_plugins/blob/62ea089afc43801d70dd31dd51a1d35b916416a7/src/occupancy_map_display.cpp#L71C39-L71C57), so I think it make sense to expose them as public functions.

Is this user-facing behavior change?

Not on Linux or macOS. The only difference is that on Windows the make*Palette functions can actually be used.

Did you use Generative AI?

No.

Additional Information

Without this fix, downstream packages can fail on Windows with errors like:

MSBuild version 17.13.15+18b3035f6 for .NET Framework
MSBUILD : error MSB1009: Project file does not exist.
Switch: Release.vcxproj

D:\src\ros-jazzy\output\bld\rattler-build_ros-jazzy-octomap-rviz-plugins_1750498615\work\build>cmake --build . --config Release
MSBuild version 17.13.15+18b3035f6 for .NET Framework

  1>Checking Build System
  Automatic MOC for target octomap_rviz_plugins
  Building Custom Rule D:/src/ros-jazzy/output/bld/rattler-build_ros-jazzy-octomap-rviz-plugins_1750498615/work/ros-jazzy-octomap-rviz-plugins/src/work/CMakeLists.txt
  moc_occupancy_grid_display.cpp
  moc_occupancy_map_display.cpp
  D:/src/ros-jazzy/output/bld/rattler-build_ros-jazzy-octomap-rviz-plugins_1750498615/h_env/Library/opt/rviz_ogre_vendor/include/OGRE\OgreVector3.h is deprecated, migrate to Ogre.h
  Generating Code...
occupancy_map_display.obj : error LNK2019: unresolved external symbol "class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl rviz_default_plugins::displays::makeRawPalette(bool,int)" (
?makeRawPalette@displays@rviz_default_plugins@@YA?AV?$vector@EV?$allocator@E@std@@@std@@_NH@Z) referenced in function "public: virtual void __cdecl octomap_rviz_plugins::OccupancyMapDisplay::onInitialize(void
)" (?onInitialize@OccupancyMapDisplay@octomap_rviz_plugins@@UEAAXXZ) [D:\src\ros-jazzy\output\bld\rattler-build_ros-jazzy-octomap-rviz-plugins_1750498615\work\build\octomap_rviz_plugins.vcxproj]
occupancy_map_display.obj : error LNK2019: unresolved external symbol "class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl rviz_default_plugins::displays::makeMapPalette(bool,int)" (
?makeMapPalette@displays@rviz_default_plugins@@YA?AV?$vector@EV?$allocator@E@std@@@std@@_NH@Z) referenced in function "public: virtual void __cdecl octomap_rviz_plugins::OccupancyMapDisplay::onInitialize(void
)" (?onInitialize@OccupancyMapDisplay@octomap_rviz_plugins@@UEAAXXZ) [D:\src\ros-jazzy\output\bld\rattler-build_ros-jazzy-octomap-rviz-plugins_1750498615\work\build\octomap_rviz_plugins.vcxproj]
occupancy_map_display.obj : error LNK2019: unresolved external symbol "class std::vector<unsigned char,class std::allocator<unsigned char> > __cdecl rviz_default_plugins::displays::makeCostmapPalette(bool,int
)" (?makeCostmapPalette@displays@rviz_default_plugins@@YA?AV?$vector@EV?$allocator@E@std@@@std@@_NH@Z) referenced in function "public: virtual void __cdecl octomap_rviz_plugins::OccupancyMapDisplay::onInitial
ize(void)" (?onInitialize@OccupancyMapDisplay@octomap_rviz_plugins@@UEAAXXZ) [D:\src\ros-jazzy\output\bld\rattler-build_ros-jazzy-octomap-rviz-plugins_1750498615\work\build\octomap_rviz_plugins.vcxproj]
D:\src\ros-jazzy\output\bld\rattler-build_ros-jazzy-octomap-rviz-plugins_1750498615\work\build\Release\octomap_rviz_plugins.dll : fatal error LNK1120: 3 unresolved externals [D:\src\ros-jazzy\output\bld\rattl
er-build_ros-jazzy-octomap-rviz-plugins_1750498615\work\build\octomap_rviz_plugins.vcxproj]

This is an automatic backport of pull request #1492 done by [Mergify](https://mergify.com).

Signed-off-by: Silvio Traversaro <[email protected]>
(cherry picked from commit 007c6e9)
@ahcorde

ahcorde commented Jun 24, 2025

Copy link
Copy Markdown
Contributor

Pulls: #1500
Gist: https://gist.githubusercontent.com/ahcorde/c502798ed22be4bd7fc3cb22c8fab7bd/raw/c60d8bd32a62e5677755cfd033526153206c4711/ros2.repos
BUILD args: --packages-above-and-dependencies rviz_default_plugins
TEST args: --packages-above rviz_default_plugins
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/16294

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
ahcorde merged commit dd101b2 into jazzy Jun 24, 2025
@ahcorde
ahcorde deleted the mergify/bp/jazzy/pr-1492 branch June 24, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants