Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cross Compile OpenCV 2.4.4

I'm facing a problem tryin to cross compile OpenCV for Arm.

I'm following this guide

http://docs.opencv.org/doc/tutorials/introduction/crosscompilation/arm_crosscompile_with_cmake.html

And everything is explained in a well manner but it's not complete.

I'm on Ubuntu 12.04 and can cross compile only a basic opencv package because cmake and therefore make cannot find several libraries (gtk, ffmpeg and others).

That guide says that there are optional libraries that should be installed but it doesn't say how.

How can I install missing dependencies in a way that can be seen by cmake? I have to use the multiarch support provided by Ubuntu? Or have I to prepare a rootfs (with Ubuntu core for arm or debootsrap) and ovverride CMAKE_FIND_ROOT_PATH?

I tried several ways but for each one I cannot find the libraries or I cannot link them for some reason.