[ros-users] Building gencpp from source

Ankur Sinha sanjay.ankur at gmail.com
Mon Mar 18 03:19:25 UTC 2013


Hi folks,

I got catkin to build using the cmake commands William was kind enough
to tell me about. The same workflow worked for genmsg, which is also
built. However, when I try to build gencpp, it fails to find genmsg:

> + /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 indeed tried to set the gemsg_DIR variable, but it didn't 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):
>   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
> 

The genmsg package that I built does have the required cmake config file:


> [ankur at dhcppc1  ros-repo]$ rpm -qpl ros-genmsg-groovy-0.4.18-1.fc18.noarch.rpm | egrep cmake
> /usr/share/genmsg/cmake
> /usr/share/genmsg/cmake/genmsg-extras.cmake
> /usr/share/genmsg/cmake/genmsgConfig-version.cmake
> /usr/share/genmsg/cmake/genmsgConfig.cmake
> /usr/share/genmsg/cmake/pkg-genmsg.cmake.em
> /usr/share/genmsg/cmake/pkg-genmsg.context.in
> /usr/share/genmsg/cmake/pkg-msg-paths.cmake.in
> [ankur at dhcppc1  ros-repo]$

Would anyone have any hints on what's going on here? Am I missing
something?

I've asked the same question here on the forum[1], but not received any
replies yet.

[1] http://answers.ros.org/question/58355/building-gencpp-from-source/
-- 
Thanks, 
Warm regards,
Ankur: "FranciscoD"

Please only print if necessary. 

Looking to contribute to Fedora? Look here: https://fedoraproject.org/wiki/Fedora_Join_SIG

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20130318/fd0a1498/attachment-0001.asc>


More information about the ros-users mailing list