ROS in Arch linux
I'm trying to install ROS in Arch - and I was able to get https://aur4.archlinux.org/packages/ros-indigo-desktop-full/ installed.
After that I used the following in my bashrc and run rosenv
before running ros commands:
rosenv2 () {
source /opt/ros/indigo/setup.bash
export PYTHONPATH=/opt/ros/indigo/lib/python2.7/site-packages:$PYTHONPATH
export ROS_PACKAGE_PATH=/opt/OGRE-1.8/lib/pkgconfig:/opt/ros/indigo/lib/pkgconfig:$ROS_PACKAGE_PATH
export LD_LIBRARY_PATH=/opt/OGRE-1.8/lib:$LD_LIBRARY_PATH
export CMAKE_MODULE_PATH=/opt/OGRE-1.8/lib/OGRE:$CMAKE_MODULE_PATH
# Useful aliases
alias catkin_make="catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python2 -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so"
# If you use Gazebo:
#source /usr/share/gazebo/setup.sh
}
When I do catkin_make
in one of my workspaces - I get the following error:
CMake Error at /usr/lib64/cmake/gazebo/gazebo-config.cmake:46 (find_package):
By not providing "FindOGRE.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OGRE", but
CMake did not find one.
Could not find a package configuration file provided by "OGRE" with any of
the following names:
OGREConfig.cmake
ogre-config.cmake
Add the installation prefix of "OGRE" to CMAKE_PREFIX_PATH or set
"OGRE_DIR" to a directory containing one of the above files. If "OGRE"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
gazebo_ros_pkgs/gazebo_ros/CMakeLists.txt:26 (find_package)
-- Configuring incomplete, errors occurred!
I've installed https://aur4.archlinux.org/packages/ogre-1.8/ also (as suggested on the wiki page in ROS+Arch)
Any help on how to fix this ?
Asked by AbdealiJK on 2015-08-10 14:45:13 UTC
Answers
You should no longer need Ogre 1.8. It was required a while ago when RViz and Gazebo were not compatible with Ogre 1.9, but this is no longer the case. Which Wiki are you referring to? No such thing is written in the ROS wiki. If you also used Ogre 1.8 when compiling desktop_full, try to reinstall the packages that require Ogre directly or indirectly, then try again.
Asked by bchr on 2015-08-27 01:30:32 UTC
Comments
You have
source /usr/share/gazebo/setup.sh
commented out in your rosenv2() function. The gazebo-config.cmake script might need something from the gazebo setup.sh....Asked by hauptmech on 2015-12-01 17:05:48 UTC