mirror of https://github.com/opencv/opencv.git
parent
ffb9da14fb
commit
3ed99b7700
5 changed files with 43 additions and 33 deletions
@ -0,0 +1,20 @@ |
||||
set(CMAKE_SYSTEM_NAME Linux) |
||||
set(CMAKE_SYSTEM_VERSION 1) |
||||
set(CMAKE_SYSTEM_PROCESSOR arm) |
||||
|
||||
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc-4.6) |
||||
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++-4.6) |
||||
|
||||
#suppress compiller varning |
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-psabi" ) |
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-psabi" ) |
||||
|
||||
# can be any other plases |
||||
set(ARM_LINUX_SYSROOT /usr/arm-linux-gnueabihf CACHE PATH "ARM cross compilation system root") |
||||
|
||||
set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${ARM_LINUX_SYSROOT}) |
||||
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) |
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) |
||||
|
@ -1,8 +1,8 @@ |
||||
#!/bin/sh |
||||
cd `dirname $0`/.. |
||||
|
||||
mkdir -p build |
||||
cd build |
||||
mkdir -p build_hardfp |
||||
cd build_hardfp |
||||
|
||||
cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=../armlinux.toolchain.cmake $@ ../../.. |
||||
cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi-hardfp.toolchain.cmake $@ ../../.. |
||||
|
@ -0,0 +1,8 @@ |
||||
#!/bin/sh |
||||
cd `dirname $0`/.. |
||||
|
||||
mkdir -p build_softfp |
||||
cd build_softfp |
||||
|
||||
cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=../arm-gnueabi-softfp.toolchain.cmake $@ ../../.. |
||||
|
Loading…
Reference in new issue