acxz / gazebo-arch

A collection of Arch Linux PKGBUILDS for the Gazebo Simulator
19 stars 11 forks source link

[gazebo] MaterialGenerator.hh:42:23: error: ‘uint32_t’ does not name a type #83

Closed petronny closed 11 months ago

petronny commented 1 year ago

Build command:

extra-x86_64-build -r /mnt -- -I depends/ignition-math-6-6.14.0-1-x86_64.pkg.tar.zst -I depends/sdformat-9-9.8.0-3-x86_64.pkg.tar.zst -I depends/ignition-tools-1-1.5.0-1-any.pkg.tar.zst -I depends/ignition-fuel_tools-4-4.9.0-2-x86_64.pkg.tar.zst -I depends/libccd-2.1-1-x86_64.pkg.tar.zst -I depends/ignition-utils-1-1.5.1-1-any.pkg.tar.zst -I depends/urdfdom-headers-1.1.0-1-any.pkg.tar.zst -I depends/ignition-cmake-2-2.17.0-1-any.pkg.tar.zst -I depends/console-bridge-1.0.2-1-x86_64.pkg.tar.zst -I depends/urdfdom-3.1.1-1-x86_64.pkg.tar.zst -I depends/ignition-common-3-3.16.0-1-x86_64.pkg.tar.zst -I depends/ignition-transport-8-8.4.0-3-x86_64.pkg.tar.zst -I depends/ignition-msgs-5-5.11.0-6-x86_64.pkg.tar.zst -I depends/ogre-1.9-1.9.1-10-x86_64.pkg.tar.zst -- --nocheck --noprogressbar

Error:

[ 54%] Building CXX object gazebo/rendering/CMakeFiles/gazebo_rendering.dir/deferred_shading/DeferredLight.cc.o
[ 54%] Building CXX object gazebo/physics/CMakeFiles/gazebo_physics.dir/Road.cc.o
[ 54%] Building CXX object gazebo/rendering/CMakeFiles/gazebo_rendering.dir/deferred_shading/GBufferMaterialGenerator.cc.o
In file included from /build/gazebo/src/gazebo-classic-gazebo11_11.13.0/gazebo/rendering/deferred_shading/GBufferMaterialGenerator.hh:20,
                 from /build/gazebo/src/gazebo-classic-gazebo11_11.13.0/gazebo/rendering/deferred_shading/GBufferMaterialGenerator.cc:27:
/build/gazebo/src/gazebo-classic-gazebo11_11.13.0/gazebo/rendering/deferred_shading/MaterialGenerator.hh:42:23: error: ‘uint32_t’ does not name a type
   42 |       public: typedef uint32_t Perm;
      |                       ^~~~~~~~
/build/gazebo/src/gazebo-classic-gazebo11_11.13.0/gazebo/rendering/deferred_shading/MaterialGenerator.hh:26:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
   25 | #include "gazebo/util/system.hh"

https://github.com/arch4edu/cactus/actions/runs/6315323603/job/17167775524

muellerbernd commented 1 year ago

I think this comes from VTK. I had a similar issues while using the extra package. Then I tried to build it locally and it failed with a similar error. Now I use a patched version of VTK that uses upstream patches. You can find my patched version here. I think VTK needs a rebuild.

petronny commented 1 year ago

The patch says Add #include <cstdint> to compile with gcc13. So maybe we can build with gcc 12 to avoid using the patched vtk?

petronny commented 1 year ago

Wait. vtk is never installed during the build. Please check the build log.

PS. AFAIK, the vtk package in [extra] is broken due to boost update. So arch4edu provides a rebuilt vtk with PKGBUILD unchanged.

acxz commented 11 months ago

After some gazebo updates look this error is resolved: https://github.com/arch4edu/cactus/actions/runs/7189621455, closing for now. Feel free to comment if this pops up again.