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

[ignition-common-3] Error while building #90

Open
piratecarrot opened this issue Feb 18, 2024 · 1 comment
Open

[ignition-common-3] Error while building #90

piratecarrot opened this issue Feb 18, 2024 · 1 comment

Comments

@piratecarrot
Copy link

/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.

sudo cp -R /usr/include/ignition/math6/gz/ /opt/ros/humble/include/ignition/math6

@piratecarrot
Copy link
Author

I should note that I am using yay AUR manager, if that wasn't immediatebly obvious.

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

No branches or pull requests

1 participant