hierarchy troubles

Dear all,
I want to collect some components into a directory and compile all in
one bite.

So I made some like this:

CMakeLists.txt
|
|-> components
|-> component1
| |-> CmakeLists.txt
|-> components2
|-> CMakeLists.txt

where on the top-level CMakeFile I put something like:

+++++++++++++++CMakeLists.txt++++++++++++++++++++++++++++
make_minimum_required(VERSION 2.6.3)
project(Stem)
set ( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/modules/ )

#Ros and Orocos modules
set (ROS_ROOT $ENV{ROS_ROOT} )
if (ROS_ROOT)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()
rosbuild_find_ros_package( rtt )
set( RTT_HINTS HINTS ${rtt_PACKAGE_PATH}/install )
endif()

find_package(OROCOS-RTT REQUIRED ${RTT_HINTS})
include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake)

add_subdirectory(components/component1/)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

and into the directory component1:

++++++++++++++CMakeLists.txt++++++++++++++++++++++++++++++

orocos_component(component1 src/component1-component.hpp
src/component1-component.cpp)
orocos_install_headers( src/component1-component.hpp )
orocos_generate_package()
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Ok, now It compile with:

../build# cmake ../ && make

It's ok but, when I launch the .cpf script of component1, in specific
case "atiNetFt":

fboriero@marvin:~/workspace/stem/deployment/xml$ deployer-gnulinux -s
atiNetFt.cpf
[rospack] couldn't find package [atiNetFt]
0.085 [ ERROR ][DeploymentComponent::import] No such package or
directory found in search path: atiNetFt. Search path is:
0.085
[ ERROR ][DeploymentComponent::import] /home/fboriero/workspace/orocos_toolchain_ros/ocl/lib/orocos:.
0.085
[ ERROR ][DeploymentComponent::import] /home/fboriero/workspace/orocos_toolchain_ros/ocl/lib/orocos/atiNetFt
0.085
[ ERROR ][DeploymentComponent::import] /home/fboriero/workspace/orocos_toolchain_ros/ocl/lib/orocos/gnulinux/atiNetFt
0.085 [ ERROR ][DeploymentComponent::import] ./atiNetFt
0.085 [ ERROR ][DeploymentComponent::import] ./gnulinux/atiNetFt
0.085 [ ERROR ][DeploymentComponent::import] Package also not found in
ROS_PACKAGE_PATH paths.
0.086 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
Orocos Component 'AtiNetFt': unknown component type.
0.086 [ Warning][DeploymentComponent::loadComponents] Could not
configure 'AtiNetFt': No such peer.
0.086 [ ERROR ][Logger] Failed to load a component: aborting
kick-start.
Switched to : Deployer

what's wrong?
Many thanks....

hierarchy troubles

On Tuesday 02 August 2011 17:37:27 Fabrizio wrote:
> Dear all,
> I want to collect some components into a directory and compile all in
> one bite.
>
> So I made some like this:
>
> CMakeLists.txt
>
> |-> components
> |
> |-> component1
> |
> | |-> CmakeLists.txt
> |
> |-> components2
> |
> |-> CMakeLists.txt
>
> where on the top-level CMakeFile I put something like:
>
> +++++++++++++++CMakeLists.txt++++++++++++++++++++++++++++
> make_minimum_required(VERSION 2.6.3)
> project(Stem)
> set ( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/modules/ )
>
> #Ros and Orocos modules
> set (ROS_ROOT $ENV{ROS_ROOT} )
> if (ROS_ROOT)
> include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
> rosbuild_init()
> rosbuild_find_ros_package( rtt )
> set( RTT_HINTS HINTS ${rtt_PACKAGE_PATH}/install )
> endif()
>
> find_package(OROCOS-RTT REQUIRED ${RTT_HINTS})
> include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake)
>
> add_subdirectory(components/component1/)
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> and into the directory component1:
>
> ++++++++++++++CMakeLists.txt++++++++++++++++++++++++++++++
>
> orocos_component(component1 src/component1-component.hpp
> src/component1-component.cpp)
> orocos_install_headers( src/component1-component.hpp )
> orocos_generate_package()
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Ok, now It compile with:
>
> ../build# cmake ../ && make
>
> It's ok but, when I launch the .cpf script of component1, in specific
> case "atiNetFt":
>
> fboriero@marvin:~/workspace/stem/deployment/xml$ deployer-gnulinux -s
> atiNetFt.cpf
> [rospack] couldn't find package [atiNetFt]
> 0.085 [ ERROR ][DeploymentComponent::import] No such package or
> directory found in search path: atiNetFt. Search path is:
> 0.085
> [ ERROR ][DeploymentComponent::import]
> /home/fboriero/workspace/orocos_toolchain_ros/ocl/lib/orocos:. 0.085
> [ ERROR ][DeploymentComponent::import]
> /home/fboriero/workspace/orocos_toolchain_ros/ocl/lib/orocos/atiNetFt
> 0.085
> [ ERROR ][DeploymentComponent::import]
> /home/fboriero/workspace/orocos_toolchain_ros/ocl/lib/orocos/gnulinux/atiN
> etFt 0.085 [ ERROR ][DeploymentComponent::import] ./atiNetFt
> 0.085 [ ERROR ][DeploymentComponent::import] ./gnulinux/atiNetFt
> 0.085 [ ERROR ][DeploymentComponent::import] Package also not found in
> ROS_PACKAGE_PATH paths.
> 0.086 [ ERROR ][DeploymentComponent::loadComponent] Unable to create
> Orocos Component 'AtiNetFt': unknown component type.
> 0.086 [ Warning][DeploymentComponent::loadComponents] Could not
> configure 'AtiNetFt': No such peer.
> 0.086 [ ERROR ][Logger] Failed to load a component: aborting
> kick-start.
> Switched to : Deployer
>
> what's wrong?
> Many thanks....

If you're not using ROS, you need to do 'make install'.

Peter