Set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) Set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) # Have to set this one to BOTH, to allow CMake to find rospack Set(CMAKE_FIND_ROOT_PATH /opt/rpi) # change this accordingly Set(CMAKE_CXX_COMPILER /opt/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-g++) Set(CMAKE_C_COMPILER /opt/tools/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc) Here is the CMake tool that I'm using currently. I copy the PI_ROOT to /opt/rpi and I was modifying some symbolic links that was broken, and could sort some errors. I've tried EROS, CodeSourcery, Raspberry Tools and nothing works, always get libraries errors. I started reading about cross compiling in general and I think is what I need but the problem is, altough there are so much information about cross compiling for RPI there are not information up to date for cross compiling along with ROS. I'm using Kinetic for developing packages that works in RPI but when I try to compile on RPI, it freezes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |