CompEpigen / MeDeCom

Decomposition of heterogeneous DNA methylomes
22 stars 16 forks source link

install error MAC #26

Open irisjingliu opened 4 years ago

irisjingliu commented 4 years ago

HCLasso.cpp:47:10: fatal error: 'omp.h' file not found

include

     ^~~~~~~

1 error generated. make: *** [HCLasso.o] Error 1 ERROR: compilation failed for package ‘MeDeCom’

bravgaev commented 3 years ago

Hi, I know this issue is pretty old and you probably already fixed it. But for posterity, I was able to fix this error by enabling OpenMP on Mac with the following tutorial: https://mac.r-project.org/openmp/

lutsik commented 3 years ago

Hi, thanks a lot for this fix. Would it it be possible to open a pull request?

bravgaev commented 3 years ago

Hi Pavlo, I didn't change any code for this, so I don't think a pull request would be necessary. OpenMP support for compilers is disabled by default on Mac, which causes the above error. No changes to the code have to be made on your end but it might be handy to include it in the README that Mac users might have to enable this at their end to be able to compile the package.

lutsik commented 3 years ago

OK, thanks, understood. Then just a pull request to the README perhaps?