Hi Ankur, 

Please be patient and don't double post questions. The guidelines for asking questions is posted at http://www.ros.org/wiki/Support  answers.ros.org is the best place to ask these sort of questions. 

Tully


On Sun, Mar 17, 2013 at 8:19 PM, Ankur Sinha <sanjay.ankur@gmail.com> wrote:
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@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@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/

_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users