Cross Compile for Axis camera.
Hello. I'm trying to build OpenCV for an Axis camera (embedded app). I've copied arm-gnueabi.toolchain.cmake and edit several lines:
set(CMAKE_C_COMPILER /usr/local/mipsisa32r2el/r12/mipsisa32r2el-axis-linux-gnu/bin/gcc) set(CMAKE_CXX_COMPILER /usr/local/mipsisa32r2el/r12/mipsisa32r2el-axis-linux-gnu/bin/g++) set(ARM_LINUX_SYSROOT /usr/local/arm/r11 CACHE PATH "ARM cross compilation system root")
when I try run cmake
cmake . -DCMAKE_TOOLCHAIN_FILE=/home/alibaba/axis/toolchain.cmake
It uses /usr/bin/cc