Hi Matej,
so, your Toolchain-RaspberryPi.cmake contains this, right?
# this one is important
SET(CMAKE_SYSTEM_NAME Linux)
#this one not so much
SET(CMAKE_SYSTEM_VERSION 1)
# specify the cross compiler
SET(CMAKE_C_COMPILER
/home/matej/RaspberryPi/toolchain/local/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER
/home/matej/RaspberryPi/toolchain/local/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH
/home/matej/RaspberryPi/toolchain/local/x-tools/arm-unknown-linux-gnueabi)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
My understanding is that with
CMAKE_FIND_ROOT_PATH set, and the
CMAKE_FIND_ROOT_PATH_MODE_{LIBRARIES,INCLUDE} set to "ONLY", cmake
will only look under that directory when searching for libraries
and includes, and it doesn't matter whether you've installed them
on your system.
I'm not quite sure what the right mechanism on Ubuntu is, but I'd
say you'll either have to
- set the ..._MODE_INCLUDE to BOTH, so that CMake can at
least find your headers in your host install, and then install
the arm library binaries to your
/home/matej/RaspberryPi/toolchain/local/x-tools/arm-unknown-linux-gnueabi,
or
- install both the headers and the arm binaries into your
/home/matej/RaspberryPi/toolchain/local/x-tools/arm-unknown-linux-gnueabi
Best regards,
Marcus
On 13.01.2016 17:44, Matej Kovacic wrote:
Hi,
I am trying to crosscompile GNUradio on Ubuntu 15.04 (64-bit). The full
procedure is in detail described here:
http://www.rtl-sdr.com/forum/viewtopic.php?f=7&t=516
However, when I run:
cmake
-DCMAKE_TOOLCHAIN_FILE=/home/matej/RaspberryPi/CMakeToolChain/Toolchain-RaspberryPi.cmake
..
... I got this error:
-- Could NOT find Boost
CMake Error at volk/CMakeLists.txt:98 (message):
VOLK Requires boost to build
-- Configuring incomplete, errors occurred!
See also
"/home/matej/RaspberryPi/gnuradio-3.7.9/build/CMakeFiles/CMakeOutput.log".
The point is, I have libboost-all-dev installed.
Any idea?
Regards,
Matej
|