I'd like to cross compile from my AMD64 desktop to ARM7 for Beagleboard Black. So I started with this to get the cross compilers installed:
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
I also created a cmake toolchain file:
set (CMAKE_SYSTEM_NAME Linux)
set (CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
set (CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++)
When I run cmake, I see it does find the right compiler. But how do I deal with libraries that I need to link in? For example, boost? I assume I need the arm versions of those libraries on my x86/amd64 desktop for the compile and link to work.
Here is an example of the error messages I see when I try to run cmake:
cmake -DCMAKE_TOOLCHAIN_FILE=Arm_Toolchain ..
CMake Error at /usr/share/cmake-3.0/Modules/FindBoost.cmake:1199 (message):
Unable to find the requested Boost libraries.
Boost version: 1.55.0
Boost include path: /usr/include
Could not find the following static Boost libraries:
boost_log_setup
boost_log
boost_date_time
boost_filesystem
boost_program_options
boost_regex
boost_system
boost_thread
boost_chrono