Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in the World.cc of sdformat12-12.6.0 #1361

Closed
bchoineubility opened this issue Jan 30, 2024 · 1 comment
Closed

Compile error in the World.cc of sdformat12-12.6.0 #1361

bchoineubility opened this issue Jan 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bchoineubility
Copy link

Hi I tried to build sdformat12-12.6.0 with ignition-math6-6.8 as specified in the cmake file. but, it occurred compile error as following.

I think SufaceType is enum and your code convert it to reference of string in this line. so, error occurred.

Can you please look into this issue?

Environment

  • OS Version: Ubuntu-20.04
  • Source or binary build? 12.6.0 1ee5f07

Description

  • Expected behavior: Should build successfully
  • Actual behavior:
| /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/sdformat12/12.6.0-r0/git/src/World.cc: In member function 'sdf::v12::ElementPtr sdf::v12::World::ToElement(const sdf::v12::OutputConfig&) const':
| /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/sdformat12/12.6.0-r0/git/src/World.cc:893:55: error: cannot convert 'ignition::math::v6::SphericalCoordinates::SurfaceType' to 'const string&' {aka 'const std::__cxx11::basic_string<char>&'}
|   893 |           this->dataPtr->sphericalCoordinates->Surface()));
|       |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

Steps to reproduce

Output

@bchoineubility bchoineubility added the bug Something isn't working label Jan 30, 2024
@azeey azeey changed the title Compile error in the World.cc of sdformat6-6.8.0 Compile error in the World.cc of sdformat12-12.6.0 Jan 30, 2024
@azeey
Copy link
Collaborator

azeey commented Feb 28, 2024

The conversion was added in gazebosim/gz-math#235 and was released in ign-math6 6.9.0. So you'll need that version to compile.

The version in the SDFormat CMakeLists should have been 6.9, but it's not something we can fix now. Sdformat has since been updated and now requires ign-math6 6.13.0 or newer.

@azeey azeey closed this as completed Feb 28, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants