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

Gazebo fails to compile against graphviz 10.0 #3372

Closed
scpeters opened this issue Feb 21, 2024 · 3 comments · Fixed by #3373
Closed

Gazebo fails to compile against graphviz 10.0 #3372

scpeters opened this issue Feb 21, 2024 · 3 comments · Fixed by #3373
Labels
bug Something isn't working

Comments

@scpeters
Copy link
Member

scpeters commented Feb 21, 2024

Environment

  • OS Version: macOS
  • Source or binary build? source build of 11.14.0

Build Status https://build.osrfoundation.org/job/gazebo-install-one_liner-homebrew-amd64/3068/

Description

  • Expected behavior: it should compile successfully with graphviz
  • Actual behavior: it fails to compile

Steps to reproduce

  1. brew install gazebo11

Output

The log in that CI job linked above does not include the relevant error, but I found the following when reproducing locally:

/tmp/gazebo11-20240220-52120-92epuq/gazebo-11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp:47:53: error: use of undeclared identifier 'TRUE'
    Agnode_t *node = agnode(_sgraph->graph(), NULL, TRUE);
                                                    ^
/tmp/gazebo11-20240220-52120-92epuq/gazebo-11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp:53:39: error: use of undeclared identifier 'TRUE'
    agsubnode(_sgraph->graph(), node, TRUE);
                                      ^
/tmp/gazebo11-20240220-52120-92epuq/gazebo-11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp:69:56: error: use of undeclared identifier 'TRUE'
            ("cluster_" + _name).toLocal8Bit().data(), TRUE);
                                                       ^
/tmp/gazebo11-20240220-52120-92epuq/gazebo-11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp:72:71: error: use of undeclared identifier 'TRUE'
        sgraph = agsubg(_sgraph->graph(), _name.toLocal8Bit().data(), TRUE);
                                                                      ^
make[2]: *** [gazebo/gui/CMakeFiles/gazebo_gui.dir/qgv/QGVSubGraph.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....

Attempting to reproduce here:

I am testing a patch (660ae15) to fix this.

@scpeters scpeters added the bug Something isn't working label Feb 21, 2024
@scpeters
Copy link
Member Author

fix in #3373

@traversaro
Copy link
Collaborator

I confess that is nice for me when a new dependency first hit homebrew, so I get the fix for free when the same dependency gets updated on conda-forge. : )

@scpeters
Copy link
Member Author

I confess that is nice for me when a new dependency first hit homebrew, so I get the fix for free when the same dependency gets updated on conda-forge. : )

happy to be of service :)

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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants