Build any gazebo version?
Hey, kind of a follow up from the discussion in https://github.com/ros/ros-overlay/issues/722 but on its own post.
I've been trying to emerge any version of Gazebo, and I can't manage any.
(Ignoring the amount of hacks I needed to do to get ruby to stop complaining, most probably cause of app-text/ronn being a dependency of Gazebo to build docs, which I ended just adding to package.provided).
I thought I was close with Gazebo 7.11.0, after... downgrading Ogre to 1.9.0-r1 (cause I didn't want to apply the massive amount of patches @allenh1 did for 9.4.1). And after applying these two patches I needed to make:
0001-Fix-codec-flag-name-for-latest-ffmpeg.patch 0001-Fix-scoped_ptr-was-not-declared-in-this-scope.patch
But then I got blocked by (83% in the compilation process):
/home/user/gentoo/var/tmp/portage/sci-electronics/gazebo-7.11.0/work/gazebo-7.11.0/plugins/ContainPlugin.cc:20:10: fatal error: ignition/math/OrientedBox.hh: No such file or directory
#include <ignition/math/OrientedBox.hh>
Which comes from ignition-math, well math2, effectively not having that file. math3 has it. But nowhere in the package there is a reference of math3... so I don't know what is going on.
Then I also tried Gazebo 9.4.1 but as I stated in the other thread:
Blocks on sci-libs/ignition-math-6.0.0 with:
>>> Configuring source in /home/user/gentoo/var/tmp/portage/sci-libs/ignition-math-6.0.0/work/ignition-math6_6.0.0~pre4 ...
/home/user/gentoo/var/tmp/portage/sci-libs/ignition-math-6.0.0/temp/environment: line 2736: /home/user/gentoo/var/tmp/portage/sci-libs/ignition-math-6.0.0/work/ignition-math6_6.0.0~pre4/cmake/HostCFlags.cmake: No such file or directory
sed: can't read cmake/DefaultCFlags.cmake: No such file or directory
* ERROR: sci-libs/ignition-math-6.0.0::ros-overlay failed (configure phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 124: Called src_configure
* environment, line 2737: Called die
* The specific snippet of code:
* sed -i -e "s/LINK_FLAGS_RELWITHDEBINFO \" \"/LINK_FLAGS_RELWITHDEBINFO \" ${LDFLAGS} \"/" cmake/DefaultCFlags.cmake || die;
Which effectively is trying to patch a file that does not exist. I tried removing that custom bit of the ebuild (thinking it maybe is not necessary anymore), but no luck:
CMake Error at CMakeLists.txt:12 (find_package):
By not providing "Findignition-cmake2.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"ignition-cmake2", but CMake did not find one.
Could not find a package configuration file provided by "ignition-cmake2"
(requested version 2.0.0) with any of the following names:
ignition-cmake2Config.cmake
ignition-cmake2-config.cmake
Add the installation prefix of "ignition-cmake2" to CMAKE_PREFIX_PATH or
set "ignition-cmake2_DIR" to a directory containing one of the above files.
If "ignition-cmake2" provides a separate development package or SDK, be
sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/home/user/gentoo/var/tmp/portage/sci-libs/ignition-math-6.0.0/work/ignition-math-6.0.0_build/CMakeFiles/CMakeOutput.log".
* ERROR: sci-libs/ignition-math-6.0.0::ros-overlay failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 124: Called src_configure
* environment, line 2735: Called cmake-utils_src_configure
* environment, line 816: Called die
* The specific snippet of code:
* "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
So... yeah. I really want to add to my CI ros-kinetic/desktop_full and call it a day, but... I'm not finding how.
Anybody found a solution to that? Hitting the same ignition-math problem...
Anybody found a solution to that? Hitting the same ignition-math problem...
@flabrosse I haven't had the time to look into it. I'll try to find some time in the near future.
I just got ros-melodic working. I posted the missing ebuilds in issues. I had to hack the catkin ebuild as well but I think that's fixed now.