Gumstix compilation/OpenMP includes not protected with ifdef _OPENMP (Bug #52)
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
Associated revisions
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