ros-overlay
ros-overlay copied to clipboard
emerge sci-libs/gazebo fails: missing ignition/math includes (OrientedBox.hh)
It doeesn't matter if you have sci-libs/ignition-math from the overlay or gentoo main tree (which has a more recent 3.2 btw). A simple link fixes compilation. I think the (probably unusual) slotted installation in gentoo has to be treated specially.
ln -s /usr/include/ignition/math3/ignition/math /usr/include/ignition/math
Thanks for mentioning the fix. I could finally compile it
I wonder if an eselect module would be needed to set a sane default.
I don't use ignition-math separately from ROS, so I don't need it. I think fixing other things should get more priority.
I think there are two approaches here: either a) patch the gazebo releases to map to the correct directory (which is likely going to explode with ever release) or b) add a dosym
instruction for the ignition ebuild (though it probably won't get accepted upstream).
I'm facing the same problem, except that in my case OrientBox.hh is indeed missing! The correct location is searched for:
cd /var/tmp/portage/sci-electronics/gazebo-7.11.0/work/gazebo-7.11.0_build/plugi ns && /usr/bin/x86_64-pc-linux-gnu-g++ -DContainPlugin_EXPORTS -DHAVE_OPENGL -DL IBBULLET_VERSION=2.83 -DLIBBULLET_VERSION_GT_282 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_XML_LIB -I/var/tmp/portage/sci-electronics/gazebo-7.11.0/work/gazebo-7.11.0/test/gtest/include -I/var/tmp/portage/sci-electronics/gazebo-7.11.0/work/gazebo-7.11.0 -I/var/tmp/portage/sci-electronics/gazebo-7.11.0/work/gazebo-7.11.0_build -I/usr/include/libusb-1.0 -isystem /usr/include/ignition/math2 -I/usr/include/sdformat-4.2 -I/usr/include/OGRE/RTShaderSystem -I/usr/include/OGRE -I/usr/include/OGRE/Terrain -I/usr/include/OGRE/Paging -I/usr/include/OGRE/Overlay -isystem /usr/include/qt4 -isystem /usr/include/qt4/QtXmlPatterns -isystem /usr/include/qt4/QtGui -isystem /usr/include/qt4/QtXml -isystem /usr/include/qt4/QtCore -I/usr/include/uuid -march=native -mtune=generic -O2 -pipe -fPIC -std=c++11 -Wall -Wextra -Wno-long-long -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wno-unused-value -Wfloat-equal -Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -O2 -g -DNDEBUG -fPIC -fPIC -I/usr/include/uuid -o CMakeFiles/ContainPlugin.dir/ContainPlugin.cc.o -c /var/tmp/portage/sci-electronics/gazebo-7.11.0/work/gazebo-7.11.0/plugins/ContainPlugin.cc /var/tmp/portage/sci-electronics/gazebo-7.11.0/work/gazebo-7.11.0/plugins/ContainPlugin.cc:20:40: fatal error: ignition/math/OrientedBox.hh: No such file or directory #include <ignition/math/OrientedBox.hh>
However:
ls /usr/include/ignition/math2/ignition/math/OrientedBox.hh ls: cannot access '/usr/include/ignition/math2/ignition/math/OrientedBox.hh': No such file or directory
This is trying to emerge gazebo-7.11.0. I have tried ignition-math-2.5 and 2.6 (see #561). I'm getting this here with ignition-math-2.7.
Cheers, Fred