Trouble to compile DPPDIV: error with the omp.h file

128 views
Skip to first unread message

Fabien Condamine

unread,
Jul 31, 2014, 11:47:50 AM7/31/14
to dppdiv...@googlegroups.com
Hi DPPDIV users,

I have troubles to compile/install the different files in the "src" folder.
I read the README file, and use the "make all" command as explained.

However, I got an error at some point, as follows:

g++ -c -o Model_likelihood-seq.o -DHAVE_CONFIG_H -O2 -fomit-frame-pointer -funroll-loops Model_likelihood.cpp

Model_likelihood.cpp:53:10: fatal error: 'omp.h' file not found

#include <omp.h>

         ^

1 error generated.

make: *** [Model_likelihood-seq.o] Error 1


So, I have searched for solutions on the web but I was unsuccessful. Is there someone that had this problem and solved it?
For your information, I have Mavericks 10.9.4 and Xcode 5.1.1, and I used the gcc compiler.

Thanks in advance for the help.

Cheers,

Fabien

Tracy Heath

unread,
Aug 1, 2014, 10:49:47 AM8/1/14
to dppdiv...@googlegroups.com
Hi Fabien,

It seems like your gcc install didn't include omp.h or it is in the wrong place. If you find it on your machine and copy it to the /usrs/include directory of your computer (this will require you to have admin permissions and use "sudo"), this should solve this problem. 

Also, if you're compiling on a Mac, I don't recommend using "compile all", I don't think the Mac compilers can compile the AVX versions. 

Cheers,
Tracy



--
You received this message because you are subscribed to the Google Groups "dppdiv-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dppdiv-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages