Gumstix compilation/OpenMP includes not protected with ifdef _OPENMP (Bug #52)


Added by Cedric Pradalier about 15 years ago. Updated almost 15 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Hi,

I'm compiling opencv (and ros) for the gumstix overo (openembedded), without openmp. In a lot of files, the #include <omp.h> is not protected with #ifdef _OPENMP. After adding the ifdef, opencv compiles properly.

Thanks


Makefile (1.7 kB) Cedric Pradalier, 2009-12-28 01:18 am

gumstix.patch (3.8 kB) Cedric Pradalier, 2009-12-28 01:18 am


Associated revisions

Revision 52a87312
Added by Roman Donchenko over 11 years ago

Merge pull request #52 from SpecLad:merge-2.4

History

Updated by Cedric Pradalier about 15 years ago

Replying to cedricpradalier:

Hi,

I'm compiling opencv (and ros) for the gumstix overo (openembedded), without openmp. In a lot of files, the #include <omp.h> is not protected with #ifdef _OPENMP. After adding the ifdef, opencv compiles properly.

Thanks

Just to be complete, here is the Makefile and patch I use for the gumstix. There is 3 main actions in this patch:
1- Add the ifdef _OPENMP
2- Deactivate the include ...highgui.gch, because it prevents cvcap_v4l from compiling (FD_ZERO fails)
3- Activate 3rd party compilation of png, jpg, ... and in this case, let the compile know that HAVE_PNG_H is true, but not HAVE_LIB_PNG_PNG_H

Updated by anonymous - almost 15 years ago

OpenMP is not used in OpenCV anymore, starting with 2.1.0. Thus, all the "#include <omp.h>" are deleted

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF