/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/events/src/MouseEvent.cc:18:10: fatal error: gz/math/Vector2.hh: No such file or directory
18 | #include <gz/math/Vector2.hh>
Files exist, but with a different folder structure under
/opt/ros/humble/include/ignition/math6/ignition/math/Vector2.hh
In system includes
/usr/include/ignition/math6/gz/math/Vector2.hh
CXX_INCLUDES in CMake gets set to
CXX_INCLUDES = -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/build/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/events/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/build/events/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/build/core/include -isystem /usr/include/uuid -isystem /opt/ros/humble/include/ignition/math6
I just copied the system copy to the /opt/ros/include and it worked.
Files exist, but with a different folder structure under
/opt/ros/humble/include/ignition/math6/ignition/math/Vector2.hh
In system includes/usr/include/ignition/math6/gz/math/Vector2.hh
CXX_INCLUDES in CMake gets set toCXX_INCLUDES = -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/build/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/events/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/build/events/include -I/home/xxxxx/.cache/yay/ignition-common-3/src/gz-common-ignition-common3_3.16.0/build/core/include -isystem /usr/include/uuid -isystem /opt/ros/humble/include/ignition/math6
I just copied the system copy to the /opt/ros/include and it worked.
sudo cp -R /usr/include/ignition/math6/gz/ /opt/ros/humble/include/ignition/math6