[OE-core] Building with OpenMP support in OE fails on #include <omp.h>
Mike Looijmans
mike.looijmans at topic.nl
Mon Mar 2 17:31:08 UTC 2015
On 02-03-15 16:45, Paul Eggleton wrote:
> Hi Mike,
>
> On Monday 02 March 2015 15:54:04 Mike Looijmans wrote:
>> Here's the problem, running in a devshell:
>>
>> # echo '#include <omp.h>' > /tmp/compileme.c
>> # $CC -c -fopenmp /tmp/compileme.c
>> /tmp/compileme.c:1:17: fatal error: omp.h: No such file or directory
>> #include <omp.h>
>> ^
>> compilation terminated.
>>
>>
>> The #pragma's and linking of OpenMP work just fine, it's just the inclusion
>> of omp.h that appears to fail.
>>
>> What I was actually trying to do is to activate OpenMP in OpenCV to get
>> decent performance on a multicore ARM system. But this is holding me back
>> now.
>>
>> Looking in the sysroots reveals that the include file is actually there:
>>
>> $ find tmp-glibc/sysroots/topic-miami-florida-med-xc7z030 -name omp.h
>> tmp-glibc/sysroots/topic-miami-florida-med-xc7z030/usr/lib/gcc/arm-oe-linux-
>> gnueabi/4.9.1/include/omp.h
>
> Funnily enough this is an issue I fixed a few weeks ago - here's the bug which
> contains a link to the fix:
>
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=7141
Ah okay, I'll upgrade to current master and retest.
If it works, I'll post the patch to make opencv build with openmp.
--
Mike Looijmans
More information about the Openembedded-core
mailing list