Cross Compile OpenCV 2.4.4 [closed]
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.
Did you try to install it via Terminal or by using Synaptic Manager?
Installing armhf dependencies via terminal or using synaptic it's not simple matter. You should have a multiarch armhf setup up running to do that. This question is a matter of understanding the right way to crosscompile. Do you have crosscompiled OpenCV using armhf multiarch installing packages via terminal or synaptic, or are you speculating only about that?
CMake uses pkgtool to find 3rd party libs. You need to create valid *.pc file for 3rd party libs (you can pull them from device).
@Angeloc: did you ever figure this out? How did you find the *.pc files, and use them? where would they be on the device? Thanks