Hi Keita
for examples one can look at :
AN4629 Fast Image Processing with i.MX 6 Series
Building OpenCV on ubuntu hardfloat rootfs for i.MX6Q
http://imxcv.blogspot.ru/2014/02/building-opencv-24x-for-freescales-imx6.html
Below description for Cortex-A8 (FFT) example, however I think similar procedure
can be used with Cortex-A9 too.
Fast Fourier Transform (FFT) example (benchmark) benchFFT
can be downloaded from http://www.fftw.org/benchfft/
To compile the benchmark use scratchbox cross compilation tool.
Copy the file to your scratchbox build directory
cp benchfft-3.1.tar.gz /scratchbox/users/jeff/home/jeff/home/.
Extract the package to your build directory in scratchbox
> tar xvzf benchfft-3.1.tar.gz
>cd benchfft-3.1Configure the build for the ARM Cortex-A8 with VFPv3 and NEON co-processors
> ./configure --host=i386 --target=arm --disable-serer CXXFLAGS="-O3 -march=armv7-a -mtune=cortex-a8 -mcpu=cortex-a8 -mfloat-abi=softfp -mfpu=neon -ftree-vectorize -fomit-frame-pointer -ffast-math" CFLAGS="-O3 -march=armv7-a -mtune=cortex-a8 -mcpu=cortex-a8 -mfloat-abi=softfp -mfpu=neon -ftree-vectorize -fomit-frame-pointer -ffast-math" Now compile
>make
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------