gazebosim / gazebosim/gz-rendering
Ubuntu 22 gz-rendering8 compilation failed due to include errors with gz/common/Animation.hh and gz/common/Material.hh
- Dominant language
- C++
- Stars
- 81
- Forks
- 90
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 10
Description
## Environment
* OS Version: Ubuntu 22
* Source or binary build?
Source, with gz-rendering8 branch at c62f6e91940b30af6f2dcc7accafb828131e2050
```
In file included from /home/ryan/Dev/ros2_ws/src/gz-rendering/src/MoveToHelper.cc:18:
/home/ryan/Dev/ros2_ws/src/gz-rendering/include/gz/rendering/MoveToHelper.hh:22:10: fatal error: gz/common/Animation.hh: No such file or directory
22 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /home/ryan/Dev/ros2_ws/src/gz-rendering/src/Scene.cc:18:
/home/ryan/Dev/ros2_ws/src/gz-rendering/include/gz/rendering/Scene.hh:24:10: fatal error: gz/common/Material.hh: No such file or directory
24 | #include
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```
## Description
* Expected behavior: Successful compilation.
* Actual behavior: Include errors with no warnings at configure time of missing packages
## Steps to reproduce
1. Get Ubuntu 22 OS with ROS humble installed through binaries
1. Install gazebo garden and gazebo harmonic through binaries
1. Create a workspace and follow [all steps to build harmonic from source](https://gazebosim.org/docs/harmonic/install_ubuntu_src#install-dependencies)
1. Modify to only install the required packages with `--no-install-recommends --no-install-suggests` to minimize system bloat:
```bash
sudo apt-get install --no-install-recommends --no-install-suggests $(sort -u $(find . -iname 'packages-'`lsb_release -cs`'.apt' -o -iname 'packages.apt' | grep -v '/\.git/') | sed '/gz\|sdf/d' | tr '\n' ' ')
```
## Output
Here is the full build log generated with the following command:
```bash
colcon build --packages-up-to gz-cmake3 gz-sim8 --mixin debug --event-handlers=console_cohesion+ > build_log.txt
```
[build_log.txt](https://github.com/gazebosim/gz-rendering/files/13998638/build_log.txt)
Here is the list of all installed apt pacakges and versions on my machine generated with the following command:
```bash
apt list --installed > installed_packages.txt
```
[installed_packages.txt](https://github.com/gazebosim/gz-rendering/files/13998647/installed_packages.txt)
## Related
Similar to https://github.com/gazebosim/gz-common/pull/573#pullrequestreview-1834704650, it could be expecting optional packages to exist and not warning or skipping.
Contributor guide
Assessment
This issue has not been assessed yet.