>Christophe Lyon <christophe.lyon@...> writes:

> 
> Regarding your problems with ffmpeg, I'm sorry that I don't know how
> cmake works, but after spending some time trying to understand why
> cross-building fails, here are my remarks:
> 
> - installing packages such as libavcodec-dev installs the version for
> your host, not for your ARM target

Hi Christophe,

thanks for replay.

ok I will take it into account.

> - therefore, you should add ffmpeg to OpenCV, maybe using the 3rdparty
> directory, but I don't know how it is supposed to be used

I too don't know. Then Cross compiling is not so simple like this:

http://processors.wiki.ti.com/index.php/Building_OpenCV_for_ARM_Cortex-A8 

> - on my system, I have noticed that cmake says 'Could NOT find JPEG),
> then "Media I/O: JPEG: libjpeg (ver 62)" and I can see that g++ is
> called with -I<path-to-OpenCV>/3rdparty/libjpeg, which is confusing

Same thing happens to me with FFMPEG

> - similarly, it looks like cmake is calling pkg-config which most
> probably queries the host, not the target FS
> - you have to make sure that the build process will find or build all
> the dependencies for ARM, which probably means it has to build ffmpeg
> - I don't know if all these are peculiarities of cmake or OpenCV, but
> it makes me wonder whether OpenCV is really supporting
> cross-compilation?
> - did you ask OpenCV community?

I could see OpenCV community recomend other ways to do what I want.

> 
> Sorry to ask more questions 
:)
> 
> Christophe.

Best regards.



_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to