Cross Compile OpenCV 2.4.4 [closed]

asked 2013-04-03 11:15:33 -0600

Angeloc gravatar image

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

I'm following this guide

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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-07 18:37:08.001277


Did you try to install it via Terminal or by using Synaptic Manager?

Daniil Osokin gravatar imageDaniil Osokin ( 2013-04-03 12:25:34 -0600 )edit

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?

Angeloc gravatar imageAngeloc ( 2013-04-03 15:19:45 -0600 )edit

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).

Alexander Smorkalov gravatar imageAlexander Smorkalov ( 2013-04-10 01:28:04 -0600 )edit

@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

MrE gravatar imageMrE ( 2016-09-27 13:59:18 -0600 )edit