Building gencpp from source
I'm trying to build gencpp from source on a Fedora 18 system. I think I have the prerequisites already built: catkin and genmsg; however, during the build, cmake fails to find the genmsg cmake files. Here's the error:
+ /usr/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON ..
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /builddir/build/BUILD/gencpp-0.4.12/build/devel
-- Using CMAKE_PREFIX_PATH:
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found PY_em: /usr/lib/python2.7/site-packages/em.pyc
-- Found gtest: gtests will be built
-- Using CATKIN_TEST_RESULTS_DIR: /builddir/build/BUILD/gencpp-0.4.12/build/test_results
-- catkin 0.5.64
CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
Could not find a package configuration file provided by "genmsg" with any
of the following names:
genmsgConfig.cmake
genmsg-config.cmake
Add the installation prefix of "genmsg" to CMAKE_PREFIX_PATH or set
"genmsg_DIR" to a directory containing one of the above files. If "genmsg"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:3 (find_package)
-- Configuring incomplete, errors occurred!
error: Bad exit status from /var/tmp/rpm-tmp.tRuPTe (%build)
Bad exit status from /var/tmp/rpm-tmp.tRuPTe (%build)
I've tried to define the genmsg_DIR variable as suggested in the error too, but it doesn't seem to make a difference:
+ /usr/bin/cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON .. -Dgenmsg_DIR=/builddir/build/BUILDROOT/ros-gencpp-groovy-0.4.12-1.fc18.x86_64//usr/share/genmsg/cmake
-- The C compiler identification is GNU 4.7.2
-- The CXX compiler identification is GNU 4.7.2
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using CATKIN_DEVEL_PREFIX: /builddir/build/BUILD/gencpp-0.4.12/build/devel
-- Using CMAKE_PREFIX_PATH:
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found PY_em: /usr/lib/python2.7/site-packages/em.pyc
-- Found gtest: gtests will be built
-- Using CATKIN_TEST_RESULTS_DIR: /builddir/build/BUILD/gencpp-0.4.12/build/test_results
-- catkin 0.5.64
CMake Error at /usr/share/catkin/cmake/catkinConfig.cmake:72 (find_package ...