[CMake] cmake cross compile raspberry pi - cannot find target library

rmcarlsson rmcarlsson at gmail.com
Mon Mar 16 15:32:42 EDT 2015


I am working on Raspberry pi B+. I am using the normal Raspbian, Debian
Wheezy. I have installed owcapi lib on the Raspberry pi (sudo apt-get
install libow-dev). I have read the rootfs bnack to the host machine, Ubuntu
14.04 LTS using rsync. These files are stored under /opt/pi/rootfs.

Now my problem is that when a try to cross compile on my host machine for
raspberry pi I get a link error stating that a libary, owcapi, can not be
found. This library is located on the raspberry pi and in the
/opt/pi/rootfs:



The link error have the following signature:



It is clear that gcc is not provided with any -L flag with valid path
(preferably to /opt/pi/rootfs/usr/lib/arm-linux-gnueabihf ). 

I have read http://www.cmake.org/Wiki/CMake_Cross_Compiling, but I can find
the root cause of my problem.

Anyone know how to solve this?

Please find my CMakeLists.txt and toolchain file included



Tooolchain file:



Any help is appreciated

/ Mikael




--
View this message in context: http://cmake.3232098.n2.nabble.com/cmake-cross-compile-raspberry-pi-cannot-find-target-library-tp7590041.html
Sent from the CMake mailing list archive at Nabble.com.


More information about the CMake mailing list