http://bugs.orocos.org/show_bug.cgi?id=822
Summary: Loading dependent packages fails in a ros environment
Product: Toolchain
Version: master
Platform: Other
OS/Version: Other
Status: NEW
Severity: major
Priority: P5
Component: OCL
AssignedTo: orocos-dev [..] ...
ReportedBy: ruben [dot] smits [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0
Created attachment 635
--> http://bugs.orocos.org/attachment.cgi?id=635
Fix for bug
Hi,
I'm on master and one of the changes wrt toolchain-2.2 is that components,
services, typekits and plugins get installed in the lib/orocos/TARGET
subdirectory. The ComponentLoader already takes this change into account for
importing ros-packages. But it forgot to so for the dependent packages. The
attachement contains a fix that resolves it.
[Bug 822] Loading dependent packages fails in a ros environment
http://bugs.orocos.org/show_bug.cgi?id=822
--- Comment #2 from Ruben Smits <ruben [dot] smits [..] ...> 2011-02-22 20:12:55 CET ---
Created attachment 638
--> http://bugs.orocos.org/attachment.cgi?id=638
follow-up patch fixing debug message
I have a follow-up patch that fixes the debug message when finding target
subdirectories for the dependencies.
--Ruben
[Bug 822] Loading dependent packages fails in a ros environment
http://bugs.orocos.org/show_bug.cgi?id=822
Peter Soetens <peter [..] ...> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |peter [..] ...
Resolution| |FIXED
--- Comment #1 from Peter Soetens <peter [..] ...> 2011-02-22 15:35:00 CET ---
Thanks for the fix. It's on master.
Peter
[Bug 822] Loading dependent packages fails in a ros environment
hi, i applied your patch and when compiling the ocl package with rosmake i got the next error:
---------------------------------------------------------------------------
$ rosmake
[ rosmake ] No package specified. Building ['ocl']
[ rosmake ] Packages requested are: ['ocl']
[ rosmake ] Logging to directory/home/mimoio/.ros/rosmake/rosmake_output-20110222-164829
[ rosmake ] Expanded args ['ocl'] to:
['ocl']
[ rosmake ] Checking rosdeps compliance for packages ocl. This may take a few seconds.
[ rosmake ] rosdep check passed all system dependencies in packages
[ rosmake ] Starting >>> tools/rospack
[ rosmake ] Finished <<< tools/rospack
[ rosmake ] Starting >>> 3rdparty/gtest
[ rosmake ] Finished <<< 3rdparty/gtest
[ rosmake ] Starting >>> core/genmsg_cpp
[ rosmake ] Finished <<< core/genmsg_cpp
[rosmake-0] Starting >>> rtt [ make ]
[rosmake-1] Starting >>> log4cpp [ make ]
[rosmake-0] Finished <<< rtt [PASS] [ 4.24 seconds ]
[rosmake-0] Starting >>> roslang [ make ]
[rosmake-0] Finished <<< roslang No Makefile in package roslang
[rosmake-0] Starting >>> roslib [ make ]
[rosmake-1] Finished <<< log4cpp [PASS] [ 1.30 seconds ]
[rosmake-1] Starting >>> ocl [ make ]
[rosmake-0] Finished <<< roslib [PASS] [ 3.61 seconds ]
[rosmake-0] Starting >>> xmlrpcpp [ make ]
[rosmake-0] Finished <<< xmlrpcpp [PASS] [ 1.24 seconds ]
[rosmake-0] Starting >>> rosconsole [ make ]
[rosmake-0] Finished <<< rosconsole [PASS] [ 2.20 seconds ]
[rosmake-0] Starting >>> roscpp [ make ]
[rosmake-0] Finished <<< roscpp [PASS] [ 4.41 seconds ]
[rosmake-0] Starting >>> rosout [ make ]
[rosmake-0] Finished <<< rosout [PASS] [ 1.34 seconds ]
[ rosmake ] Last 40 linesl: 628.6 sec ] [ 1 Active 10/11 Complete ]
{-------------------------------------------------------------------------------
make[3]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
[ 22%] Built target helloworld
make[3]: Entering directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
Scanning dependencies of target orocos-helloworld
make[3]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
make[3]: Entering directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
[ 25%] Building CXX object helloworld/CMakeFiles/orocos-helloworld.dir/HelloWorld.o
Linking CXX shared library ../../lib/orocos/liborocos-helloworld-gnulinux.so
make[3]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
[ 25%] Built target orocos-helloworld
make[3]: Entering directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
Scanning dependencies of target orocos-reporting
make[3]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
make[3]: Entering directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
[ 27%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/ConsoleReporting.o
[ 30%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/FileReporting.o
[ 33%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/ReportingComponent.o
[ 36%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/command.o
[ 38%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/datasender.o
[ 41%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/socket.o
[ 44%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/socketmarshaller.o
[ 47%] Building CXX object reporting/CMakeFiles/orocos-reporting.dir/TcpReporting.o
Linking CXX shared library ../../lib/orocos/liborocos-reporting-gnulinux.so
make[3]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
[ 47%] Built target orocos-reporting
make[3]: Entering directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
Scanning dependencies of target orocos-deployment
make[3]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
make[3]: Entering directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
[ 50%] Building CXX object deployment/CMakeFiles/orocos-deployment.dir/DeploymentComponent.o
[ 52%] Building CXX object deployment/CMakeFiles/orocos-deployment.dir/ComponentLoader.o
/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/deployment/ComponentLoader.cpp: In member function ‘bool OCL::ComponentLoader::import(const std::string&, const std::string&)’:
/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/deployment/ComponentLoader.cpp:232: error: ‘rospath_target’ was not declared in this scope
make[3]: *** [deployment/CMakeFiles/orocos-deployment.dir/ComponentLoader.o] Error 1
make[3]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
make[2]: *** [deployment/CMakeFiles/orocos-deployment.dir/all] Error 2
make[2]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/mimoio/ros/kul-ros-pkg/stacks/orocos_toolchain_ros/orocos_toolchain_ros/ocl/build'
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package ocl written to:
[ rosmake ] /home/mimoio/.ros/rosmake/rosmake_output-20110222-164829/ocl/build_output.log
[rosmake-1] Finished <<< ocl [FAIL] [ 628.66 seconds ]
[ rosmake ] Halting due to failure in package ocl.
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Built 11 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/mimoio/.ros/rosmake/rosmake_output-20110222-164829
-----------------------------------------------------
seems like cannot find rospath_target, do you have any idea what it might be?
Thanks in advance!
Josep