ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

lboltzmann's profile - activity

2013-10-11 07:45:03 -0500 received badge  Famous Question (source)
2013-10-11 07:29:01 -0500 received badge  Famous Question (source)
2013-08-15 09:06:18 -0500 received badge  Famous Question (source)
2013-08-06 09:16:58 -0500 received badge  Notable Question (source)
2013-08-05 23:37:56 -0500 received badge  Popular Question (source)
2013-08-05 08:21:43 -0500 received badge  Notable Question (source)
2013-08-05 06:33:30 -0500 received badge  Student (source)
2013-08-05 06:13:32 -0500 asked a question What to do after cross-compiling source with catkin?

Hi all,

I've completed a cross-compilation of the ROS source using catkin. Everything seems to be good to go, but now I'm confused about the next step. I have a build, devel and install directory as a result of the build process. Does the install directory contents go on the target? It appears that the bash and python scripts are set to target the same directory that the catkiin workspace was using for the build process. I'm just not positive of the next step.

The basic question is "what is the next step to move the cross-compilation to the target system?"

Is there documentation or a tutorial that covers this?

Thanks,

Marcus

2013-08-02 05:55:59 -0500 commented answer Catkin rosconsole cross-compilation make error

I'm cross-compiling groovy source. I followed the source installation instructions for ROS-comm on the wiki. I can build fine if I don't cross as it looks in my system path for the lib and the x86 versions are there. Thanks.

2013-08-01 03:48:28 -0500 commented answer Catkin rosconsole cross-compilation make error

echo returns a blank. My CMakeLists.txt file for rosconsole is quite a bit different then that version (Groovy catkin source version). There isn't a find_package(PkgConfig). It uses find_package(Log4cxx QUIET) and if it does find the library it looks in the system path only using find_library(LOG4CXX_LIBRARIES log4cxx).

2013-07-31 09:01:16 -0500 received badge  Popular Question (source)
2013-07-31 04:09:23 -0500 commented answer Catkin rosconsole cross-compilation make error

I'll look into this. I'm just learning about CMake so I'm not sure of the best way to interact with it. Thanks for your suggestion.

2013-07-30 07:12:14 -0500 received badge  Notable Question (source)
2013-07-30 05:19:18 -0500 answered a question Catkin rosconsole cross-compilation make error

I was able to get this to work by editing the CMakeLists.txt file and setting the LOG4CXX_INCLUDE_DIRS variable directly. I then verified the same thing works in my rostoolchain file. It was a case of the path being .../include instead of the .../include/log4cxx I had been using.

Now I'm seeing the same error during the build of roscpp. The CMakeLists.txt for roscpp doesn't appear to reference the log4cxx directories or libraries, but I still see the same console.h error referring to logger.h.

Is there a better place to set the include dependency? And if roscpp has a dependency on log4cxx why doesn't it reference the LOG4CXX variables?

Regards.

2013-07-30 04:38:13 -0500 asked a question Catkin rosconsole cross-compilation make error

Hi all,

I'm still working towards a cross-compilation of the packages in ros-comm for a Zynq ARM target running Angstrom Linux. I have now run into an issue during the catkin build process with rosconsole.

I'm getting an error while compiling rosconsole.cpp

./src/rosconsole/include/ros/console.h:55 fatal error: log4cxx/logger.h: No such file or directory error

I've set the path to the log4cxx include files directly in my rostoolchain file in the CMAKE_INCLUDE_PATH variable. I've also tried setting LOG4CXX_INCLUDE_DIRS. When set in the LOG4CXX_INCLUDE_DIRS variable the directory appears in the flags.make as a -I flag in the CXX_FLAGS.

Any thoughts on what I need to set to fix this?

Thanks,

Marcus

2013-07-29 05:20:06 -0500 received badge  Popular Question (source)
2013-07-26 06:23:20 -0500 received badge  Scholar (source)
2013-07-26 06:23:18 -0500 commented answer Catkin cross-compilation of ros-groovy for Zynq ARM target

I copied tinyxml.h and tinystr.h into the rospack src directory for the time being and it finds them. Now on to all the non-matching functions errors. Fun.

2013-07-26 06:03:16 -0500 commented answer Catkin cross-compilation of ros-groovy for Zynq ARM target

William, Thanks for the response. I've cross-compiled both python and tinyxml and python is now found. I still have the following error. /home/adminuser/ros_catkin_ws/src/rospack/src/rospack.cpp:30: fatal error: tinyxml.h: No such file or directory I have tinyxml.h in the following directory /home/adminuser/ros_catkin_ws/rost_ext_deps/include/tinyxml. The CMAKE_INCLUDE_PATH is set to /home/adminuser/ros_catkin_ws/rost_ext_deps/include Any thoughts on why it can't find tinyxml.h? Thanks again. Marcus

2013-07-26 05:08:47 -0500 commented question ld searches in wrong folder for libraries when cross-compiling

Did you ever get answer to your question? I'm in a similar situation.

2013-07-24 08:32:28 -0500 received badge  Editor (source)
2013-07-24 06:41:56 -0500 asked a question Catkin cross-compilation of ros-groovy for Zynq ARM target

I'm attempting to cross-compile ROS src to a Zynq based ARM system running a version of Angstrom Linux. I've download src (groovy-ros-comm) based on the install from source instructions and created a catkin workspace. I've set up my rostoolchain.cmake file (embedded below) and successfully cross-compiled boost, apr, apr-util and log4cxx.

set(CMAKE_C_COMPILER /home/adminuser/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-gcc)

set(CMAKE_CXX_COMPILER /home/adminuser/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++)

set(CMAKE_FIND_ROOT_PATH /home/adminuser/CodeSourcery/Sourcery_G++_Lite)

set(CMAKE_LIBRARY_PATH /home/adminuser/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/usr/lib /home/adminuser/boost-1_50/gcc-4.4-arm /home/adminuser/ros_catkin_ws/ros_ext_deps/lib)

set(CMAKE_INCLUDE_PATH /home/adminuser/boost-1_50/includes usr/include /home/adminuser/ros_catkin_ws/ros_ext_deps/include)

set(BOOST_LIBRARYDIR /home/adminuser/boost-1_50/gcc-4.4-arm/)

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
set(BOOST_ROOT /home/adminuser/boost-1_50)
set(BOOST_INCLUDEDIR /home/adminuser/boost-1_50/includes)
set(Boost_REALPATH TRUE)
set(Boost_ADDITIONAL_VERSIONS "1.50" "1.50.0")
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_STATIC_RUNTIME OFF)
set(Boost_COMPILER "-gcc44")
set(Boost_INCLUDE_DIR /home/adminuser/boost-1_50/includes)
set(Boost_LIBRARY_DIRS /home/adminuser/boost-1_50/gcc-4.4-arm/)

I'm running into problems with the compilation when it comes to rospack as follows.

-- Boost version: 1.50.0
-- Found the following Boost libraries:
--   filesystem
--   program_options
--   system
-- Found PythonLibs: /usr/lib/libpython2.7.so 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/adminuser/ros_catkin_ws/build_isolated/rospack
==> make -j1 -l1 in '/home/adminuser/ros_catkin_ws/build_isolated/rospack'
Scanning dependencies of target rospack
[ 16%] Building CXX object CMakeFiles/rospack.dir/src/rospack.cpp.o
cc1plus: warning: include location "/usr/include/python2.7" is unsafe for cross-compilation
/home/adminuser/ros_catkin_ws/src/rospack/src/rospack.cpp:30: fatal error: tinyxml.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/rospack.dir/src/rospack.cpp.o] Error 1
make[1]: *** [CMakeFiles/rospack.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
  File "./src/catkin/bin/../python/catkin/builder.py", line 717, in build_workspace_isolated
    number=index + 1, of=len(ordered_packages)
  File "./src/catkin/bin/../python/catkin/builder.py", line 497, in build_package
    install, force_cmake, quiet, last_env, cmake_args, make_args + catkin_make_args
  File "./src/catkin/bin/../python/catkin/builder.py", line 353, in build_catkin_package
    run_command(make_cmd, build_dir, quiet)
  File "./src/catkin/bin/../python/catkin/builder.py", line 198, in run_command
    raise subprocess.CalledProcessError(proc.returncode, ' '.join(cmd))
CalledProcessError: Command '/home/adminuser/ros_catkin_ws/install_isolated/env.sh make -j1 -l1' returned non-zero exit status 2
<== Failed to process package 'rospack': 
  Command '/home/adminuser/ros_catkin_ws/install_isolated/env.sh make -j1 -l1' returned non-zero exit status 2
Reproduce this error by running:
==> /home/adminuser/ros_catkin_ws/install_isolated/env.sh make -j1 -l1**

Do I also need a ARM python library to link against?

I have read that tinyxml was included with the rospack src, but don't see it and the build process complains it can't find it. Do I need to download its src separately?

If the eventual goal is to compile something like the beginner_tutorials to my target do I need rospack? From rospack depends it appears even the simple ... (more)