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] Gazebo fails to compile with graphviz 10 #94

Open
prximenes opened this issue Feb 21, 2024 · 3 comments · May be fixed by #97
Open

[gazebo] Gazebo fails to compile with graphviz 10 #94

prximenes opened this issue Feb 21, 2024 · 3 comments · May be fixed by #97

Comments

@prximenes
Copy link

prximenes commented Feb 21, 2024

/home/pedro/applications/gazebo/src/gazebo-classic-gazebo11_11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp: In member function ‘QGVNode* QGVSubGraph::addNode(const QString&)’:
/home/pedro/applications/gazebo/src/gazebo-classic-gazebo11_11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp:47:53: error: ‘TRUE’ was not declared in this scope
   47 |     Agnode_t *node = agnode(_sgraph->graph(), NULL, TRUE);
      |                                                     ^~~~
/home/pedro/applications/gazebo/src/gazebo-classic-gazebo11_11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp: In member function ‘QGVSubGraph* QGVSubGraph::addSubGraph(const QString&, bool)’:
/home/pedro/applications/gazebo/src/gazebo-classic-gazebo11_11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp:69:56: error: ‘TRUE’ was not declared in this scope
   69 |             ("cluster_" + _name).toLocal8Bit().data(), TRUE);
      |                                                        ^~~~
/home/pedro/applications/gazebo/src/gazebo-classic-gazebo11_11.14.0/gazebo/gui/qgv/QGVSubGraph.cpp:72:71: error: ‘TRUE’ was not declared in this scope
   72 |    sgraph = agsubg(_sgraph->graph(), _name.toLocal8Bit().data(), TRUE);
      |                                                                  ^~~~

make[2]: *** [gazebo/gui/CMakeFiles/gazebo_gui.dir/build.make:1852: gazebo/gui/CMakeFiles/gazebo_gui.dir/qgv/QGVSubGraph.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3818: gazebo/gui/CMakeFiles/gazebo_gui.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().

Hello, I'm getting this error when installing gazebo via yay, paru, or using makepkg -si

I'm using Arch Linux with kernel 6.6.17-1-lts

@prximenes
Copy link
Author

prximenes commented Feb 21, 2024

Hello,

I've found a workaround for this error. The issue is related to the version of Graphviz being used. The version of graphviz in pacman is version 10, but gazebo is compatible with version 9. Below are the detailed steps I followed to resolve the issue:

I started by removing the version of graphviz that was currently installed on my system. I did this by executing the following command in the terminal:

sudo pacman -Rns graphviz

Then, I cloned the graphviz version 9 package repository from Arch Linux's GitLab. For this, I used the following command:

git clone https://gitlab.archlinux.org/archlinux/packaging/packages/graphviz.git

Inside the cloned repository directory, I checked out to the specific 9.0.0-1 version of graphviz by executing:

git checkout eabf65842071603878f55c7e5d7bedfdf8144658

With the correct version of the graphviz source code in the directory, I proceeded with compilation and installation using makepkg with the command:

makepkg -si

After successfully installing the correct version of graphviz, I attempted to install Gazebo again through the AUR using makepkg -si command. This time, the installation process completed without the previous compilation errors.

@prximenes prximenes changed the title [gazebo] Gazebo fails to compile [gazebo] Gazebo fails to compile with graphviz 10 Feb 21, 2024
@traversaro
Copy link

See gazebosim/gazebo-classic#3373 .

2001herne added a commit to 2001herne/gazebo-arch that referenced this issue Mar 5, 2024
2001herne added a commit to 2001herne/gazebo-arch that referenced this issue Mar 5, 2024
@petronny
Copy link

Also getting this error. Please update the PKGBUILD to include this patch.
Full build log:
https://github.com/arch4edu/cactus/actions/runs/8475957989/job/23241002816

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 a pull request may close this issue.

3 participants