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" )
where the Linaro hard float toolchain tarball was extracted to my /opt directory. The verbose flag will tell you when the compiler was able to vectorize a loop, or why it couldn't. I need to test some of the newer feature extraction algorithms in more recent versions of OpenCV, so I'll try and update you when/if I successfully compile a newer version of OpenCV with FFMPEG support.
Good luck.
-Derek
On Mon, Feb 11, 2013 at 3:07 PM, Fernan fhledesma@gmail.com wrote:
Derek Rollend <derek.rollend@...> writes:
Hello, I am currently trying to determine how much I can optimize OpenCV using
the
ARM's VFP and the Linaro nano image. I have downloaded the arm-linux-gnueabihf-gcc & arm-linux-gnueabihf-g++ compilers, successfully cross-compiled OpenCV using those compilers (with -O3 -mfloat-abi=hard -ftree-vectorize -funroll-loops), and compiled an example OpenCV program
with
the arm-linux-gnueabihf-g++ compiler (with the same flags).
Hello Derek, I'm trying to cross compile OpenCV (2.4.0) for ARM. I'm using Linaro toolchain and CMake (http://processors.wiki.ti.com/index.php/Building_OpenCV_for_ARM_Cortex-A8), but I get the following error: .../ffmpeg_codecs.hpp:78:36:fatal error: libavformat/avformat.h: No such file or directory compilation terminated. I have installed libavformat-dev and configured CMake again, but I get the same error. Which version of CMake you are using? How you write de toolchain.cmake? How do you set the (-O3 -mfloat-abi=hard -ftree-vectorize -funroll-loops) C/CXX flags? I'm using CMake2.8.7. Thanks in advance.
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain