Add the Linaro toolchain bin directory to your PATH environment variable: export PATH="/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/bin:$PATH"
or whichever directory you have extracted the Linaro HF tarball to. -Derek On Mon, Feb 11, 2013 at 4:04 PM, Fernan <fhlede...@gmail.com> wrote: > Derek Rollend <derek.rollend@...> writes: > > > > > > > Fernan, > > I'm using CMake 2.8.0. I have not tried to compile OpenCV with FFMPEG > support > yet, although I will be trying to do this soon. I have only successfully > compiled OpenCV 2.2 using the Linaro hard float compiler. Here is my > toolchain.cmake file: > > > > > > set( CMAKE_SYSTEM_NAME Linux ) > > set( CMAKE_SYSTEM_PROCESSOR arm ) > > set( CMAKE_C_COMPILER arm-linux-gnueabihf-gcc ) > > set( CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++ ) > > set( CMAKE_CXX_FLAGS_RELEASE "-L > >/opt/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/ > >arm-linux-gnueabihf/lib -O3 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard > >-ftree-vectorize -ftree-vectorizer-verbose=3 -funroll-loops" ) > > set( CMAKE_CXX_FLAGS_DEBUG "-L /opt/gcc-linaro-arm-linux-gnueabihf- > >4.7-2013.01-20130125_linux/arm-linux-gnueabihf/lib > >-O3 -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=hard -ftree-vectorize > >-ftree-vectorizer-verbose=3 -funroll-loops" ) > > > > Thank you very much Derek, > some questions arises reading your response, e.g. How Cmake knows the PATH > of > arm-linux-gnueabihf-g++? > > But now I will try to cross-compile again using your toolchain.cmake. > > > > _______________________________________________ > linaro-toolchain mailing list > linaro-toolchain@lists.linaro.org > http://lists.linaro.org/mailman/listinfo/linaro-toolchain >
_______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain