Ask Your Question

Angeloc's profile - activity

2013-04-03 15:19:45 -0600 commented question Cross Compile OpenCV 2.4.4

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?

2013-04-03 11:15:33 -0600 asked a question 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.

2013-02-05 04:03:18 -0600 answered a question Setting CFLAGS and CXXFLAGS for OpenCV 2.4.3

Opencv is based on CMake, so if you want to change compiler flags, you should edit the CMakeLists.txt file, setting the EXTRA_C_FLAGS property this way:

set(EXTRA_C_FLAGS "-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp")
2013-02-05 03:59:12 -0600 received badge  Editor (source)
2013-02-05 03:52:43 -0600 asked a question Compilation flags for hard float on ARM

I'm tring to recompile opencv with full floating point support on ARM. Right now I modified the CMakeLists.txt setting this option:

set(EXTRA_C_FLAGS "-mfloat-abi=hard -mfpu=vfpv3")

I'm recompiling the Ubuntu 12.04 (armhf) package for Opencv (2.3.1), the compilation runs smoothly and produces correct debs to install.

I'm recompiling also my own software linking with the recopiled libraries.

The software runs, but it produces a completely broken capture. The software should run on a Beaglebone.

Anybody knows the corrects flags to recompile Opencv with hard float support?