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. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake
