Error on CMAKE

Hi All,
I'm implementing my Sensable Phantom Omni 6DOF on Orocos.
My system is: Ubuntu LTS 10.04, Orocos installed and updated (today)
trough ROS packages repository.

I made the package with the orocos script but:
cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
[rosbuild] Building package SensPhantom
[rosbuild] Cached build flags older than manifests; calling rospack to
get flags
[rosbuild]
Including /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
[rosbuild]
Including /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
[rosbuild]
Including /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
Orocos-RTT found
in /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-rtt/orocos-rtt-gnulinux-libraries.cmake
-- Found orocos-rtt 2.3.1 for the gnulinux target. Available transports:
mqueue
[UseOrocos] Building package SensPhantom
CMake Error
at /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-rtt/UseOROCOS-RTT-helpers.cmake:84 (pkg_search_module):
Unknown CMake command "pkg_search_module".
Call Stack (most recent call first):
/opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-rtt/UseOROCOS-RTT.cmake:70 (orocos_use_package)
CMakeLists.txt:33 (include)

-- Configuring incomplete, errors occurred!

I tried to fix the problem but I can't find the error...
Thanks,

Fabrizio

Ruben Smits's picture

Error on CMAKE

On Monday 18 April 2011 16:22:14 Fabrizio Boriero wrote:
> Hi All,
> I'm implementing my Sensable Phantom Omni 6DOF on Orocos.
> My system is: Ubuntu LTS 10.04, Orocos installed and updated (today)
> trough ROS packages repository.
>
> I made the package with the orocos script but:
> cmake ../
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> [rosbuild] Building package SensPhantom
> [rosbuild] Cached build flags older than manifests; calling rospack to
> get flags
> [rosbuild]
> Including
> /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
> [rosbuild]
> Including
> /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
> [rosbuild]
> Including
> /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
> Orocos-RTT found
> in
> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/oroc
> os-rtt/orocos-rtt-gnulinux-libraries.cmake -- Found orocos-rtt 2.3.1 for the
> gnulinux target. Available transports: mqueue
> [UseOrocos] Building package SensPhantom
> CMake Error
> at
> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/oroc
> os-rtt/UseOROCOS-RTT-helpers.cmake:84 (pkg_search_module): Unknown CMake
> command "pkg_search_module".
> Call Stack (most recent call first):
>
> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/oroc
> os-rtt/UseOROCOS-RTT.cmake:70 (orocos_use_package) CMakeLists.txt:33
> (include)
>
> -- Configuring incomplete, errors occurred!
>
>
> I tried to fix the problem but I can't find the error...

Which version of cmake are you using?

> Thanks,
>
> Fabrizio

-- Ruben

Error on CMAKE

On 04/20/2011 09:19 AM, Ruben Smits wrote:
> On Monday 18 April 2011 16:22:14 Fabrizio Boriero wrote:
>> Hi All,
>> I'm implementing

>> ...
>> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/oroc
>> os-rtt/UseOROCOS-RTT-helpers.cmake:84 (pkg_search_module): Unknown CMake
>> command "pkg_search_module".
>> Call Stack (most recent call first):
>>
>> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/oroc
>> os-rtt/UseOROCOS-RTT.cmake:70 (orocos_use_package) CMakeLists.txt:33
>> (include)
>>
>> -- Configuring incomplete, errors occurred!
>>
>>
>> I tried to fix the problem but I can't find the error...
> Which version of cmake are you using?

cmake version 2.8.0
>> Thanks,
>>
>> Fabrizio
I found that the problem is when I add "ocl" requirement into
manifest.xml... Now I use the "orocos" scripting language instead of c++
client to run the library so I don't have problem anymore.

Regards,
Fabrizio

>> -- Ruben

Error on CMAKE

On Wednesday 20 April 2011 10:09:42 fabrizio.boriero wrote:
> On 04/20/2011 09:19 AM, Ruben Smits wrote:
> > On Monday 18 April 2011 16:22:14 Fabrizio Boriero wrote:
> >> Hi All,
> >> I'm implementing
> >>
> >> ...
> >> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/o
> >> roc os-rtt/UseOROCOS-RTT-helpers.cmake:84 (pkg_search_module): Unknown
> >> CMake command "pkg_search_module".
> >> Call Stack (most recent call first):
> >>
> >> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/o
> >> roc os-rtt/UseOROCOS-RTT.cmake:70 (orocos_use_package) CMakeLists.txt:33
> >> (include)
> >>
> >> -- Configuring incomplete, errors occurred!
> >>
> >>
> >> I tried to fix the problem but I can't find the error...
> >
> > Which version of cmake are you using?
>
> cmake version 2.8.0
>
> >> Thanks,
> >>
> >> Fabrizio
>
> I found that the problem is when I add "ocl" requirement into
> manifest.xml... Now I use the "orocos" scripting language instead of c++
> client to run the library so I don't have problem anymore.

This is really weird. Having the same setup as yours (toolchain_ros + cmake
2.8.0), creating a test and adding ocl as dependency in manifest leads to:

mkdir -p bin
cd build && cmake -Wdev -DCMAKE_TOOLCHAIN_FILE=`rospack find
rosbuild`/rostoolchain.cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
[rosbuild] Building package useorocos_test
[rosbuild] Cached build flags older than manifests; calling rospack to get flags
[rosbuild] Including
/opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
[rosbuild] Including
/opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
[rosbuild] Including
/opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
Orocos-RTT found in
/opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/orocos-
rtt/orocos-rtt-gnulinux-libraries.cmake
-- Found orocos-rtt 2.3.1 for the gnulinux target. Available transports:
mqueue
[UseOrocos] Building package useorocos_test
-- checking for one of the modules 'ocl;ocl-gnulinux'
-- found ocl-gnulinux, version 2.3.1
[UseOrocos] Linking all targets with libraries from package 'ocl'.
[UseOrocos] Building component useorocos_test in library useorocos_test-
gnulinux
[UseOrocos] Generating package version 1.0 (default version).
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/kaltan/src/git/euron/useorocos_test/build

Could you check with your previous setup if running 'make' in the package
directory makes a difference instead of calling cmake yourself ?

Peter

Error on CMAKE

On Wed, 2011-04-20 at 11:21 +0200, Peter Soetens wrote:
> On Wednesday 20 April 2011 10:09:42 fabrizio.boriero wrote:
> > On 04/20/2011 09:19 AM, Ruben Smits wrote:
> > > On Monday 18 April 2011 16:22:14 Fabrizio Boriero wrote:
> > >> Hi All,
> > >> I'm implementing
> > >>
> > >> ...
> > >> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/o
> > >> roc os-rtt/UseOROCOS-RTT-helpers.cmake:84 (pkg_search_module): Unknown
> > >> CMake command "pkg_search_module".
> > >> Call Stack (most recent call first):
> > >>
> > >> /opt/ros/diamondback/stacks/orocos_toolchain_ros/rtt/install/lib/cmake/o
> > >> roc os-rtt/UseOROCOS-RTT.cmake:70 (orocos_use_package) CMakeLists.txt:33
> > >> (include)
> > I found that the problem is when I add "ocl" requirement into
> > manifest.xml... Now I use the "orocos" scripting language instead of c++
> > client to run the library so I don't have problem anymore.
>
> This is really weird. Having the same setup as yours (toolchain_ros + cmake
> 2.8.0), creating a test and adding ocl as dependency in manifest leads to:
> ...
>
> Could you check with your previous setup if running 'make' in the package
> directory makes a difference instead of calling cmake yourself ?

No difference... same error.
Also with "rosmake"

> Peter
Fabrizio