ROS_ARM_CROSSCOMPILE

 

 

https://github.com/mktk1117/ROS_ARM_CROSSCOMPILE

 mktk1117 Modified rostoolchain.cmake

Latest commit 430a694 on 24 Jan 2018

Permalink

TypeNameLatest commit messageCommit time
 Failed to load latest commit information.
configMade directories2 years ago
ros_indigoModified rostoolchain.cmake2 years ago
scriptsAdd turbojpeg building script2 years ago
.gitignoreFirst trial2 years ago
README.mdUpdate README.md2 years ago
arm-toolchain.cmakeFirst trial2 years ago

README.md

ROS_ARM_CROSSCOMPILE

ROS indigo cross compile for ARM architecture

Install build dependencies

First. you have to install build dependencies. Start with cloning this repositiory.

git clone https://github.com/mktk1117/ROS_ARM_CROSSCOMPILE.git
cd ROS_ARM_CROSSCOMPILE
source scripts/install_dependencies.sh

Cross compile dependencies

ROS depends on some libraries. You also have to cross compile these libraries. The script cross compiles for ARM architecture by using arm-linux-gnueabihf-gcc or g++.
It compiles

  • boost1.55
  • OpenCV2.4.9
  • bzip2-1.0.6.
  • lz4
  • console_bridge
  • Poco1.8.0.1
  • python 2.7
  • tinyXML

The script file build_dependencies.sh will cross compile above libraries into ROS_ARM_CROSSCOMPILE/arm-linux.

cd /your workspace/ROS_ARM_CROSSCOMPILE
source scripts/build_dependencies.sh

Cross Compile ROS

cd ros_indigo
catkin init
catkin config --merge-devel # this is important, otherwise you may get weird linking errors
catkin config --merge-install
catkin config --install
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release -DCROSS_ROOT=/your ws/ROS_ARM_CROSSCOMPILE -DCMAKE_TOOLCHAIN_FILE=/your ws/ROS_ARM_CROSSCOMPILE/ros_indigo/rostoolchain.cmake
rosinstall_generator ros_comm common_msgs sensor_msgs image_transport vision_opencv tf --rosdistro indigo --deps --wet-only --tar > ros-indigo-wet.rosinstall
wstool init -j8 src ros-indigo-wet.rosinstall
cd src
git clone https://github.com/catkin/catkin_simple.git
git clone https://github.com/mktk1117/glog_catkin.git
cd glog_catkin
git checkout arm-crosscompile
git pull
cd ../../
touch src/geometry2/tf2/test/CATKIN_IGNORE  # to avoid error
touch src/vision_opencv/image_geometry/test/CATKIN_IGNORE
touch src/geometry/tf/test/CATKIN_IGNORE
touch src/ros_comm/message_filters/test/CATKIN_IGNORE
catkin build

Latest commit 430a694 on 24 Jan 2018

Permalink

TypeNameLatest commit messageCommit time
 Failed to load latest commit information.
configMade directories2 years ago
ros_indigoModified rostoolchain.cmake2 years ago
scriptsAdd turbojpeg building script2 years ago
.gitignoreFirst trial2 years ago
README.mdUpdate README.md2 years ago
arm-toolchain.cmakeFirst trial2 years ago

README.md

ROS_ARM_CROSSCOMPILE

ROS indigo cross compile for ARM architecture

Install build dependencies

First. you have to install build dependencies. Start with cloning this repositiory.

git clone https://github.com/mktk1117/ROS_ARM_CROSSCOMPILE.git
cd ROS_ARM_CROSSCOMPILE
source scripts/install_dependencies.sh

Cross compile dependencies

ROS depends on some libraries. You also have to cross compile these libraries. The script cross compiles for ARM architecture by using arm-linux-gnueabihf-gcc or g++.
It compiles

  • boost1.55
  • OpenCV2.4.9
  • bzip2-1.0.6.
  • lz4
  • console_bridge
  • Poco1.8.0.1
  • python 2.7
  • tinyXML

The script file build_dependencies.sh will cross compile above libraries into ROS_ARM_CROSSCOMPILE/arm-linux.

cd /your workspace/ROS_ARM_CROSSCOMPILE
source scripts/build_dependencies.sh

Cross Compile ROS

cd ros_indigo
catkin init
catkin config --merge-devel # this is important, otherwise you may get weird linking errors
catkin config --merge-install
catkin config --install
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release -DCROSS_ROOT=/your ws/ROS_ARM_CROSSCOMPILE -DCMAKE_TOOLCHAIN_FILE=/your ws/ROS_ARM_CROSSCOMPILE/ros_indigo/rostoolchain.cmake
rosinstall_generator ros_comm common_msgs sensor_msgs image_transport vision_opencv tf --rosdistro indigo --deps --wet-only --tar > ros-indigo-wet.rosinstall
wstool init -j8 src ros-indigo-wet.rosinstall
cd src
git clone https://github.com/catkin/catkin_simple.git
git clone https://github.com/mktk1117/glog_catkin.git
cd glog_catkin
git checkout arm-crosscompile
git pull
cd ../../
touch src/geometry2/tf2/test/CATKIN_IGNORE  # to avoid error
touch src/vision_opencv/image_geometry/test/CATKIN_IGNORE
touch src/geometry/tf/test/CATKIN_IGNORE
touch src/ros_comm/message_filters/test/CATKIN_IGNORE
catkin build
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值