luanfujun / deep-painterly-harmonization

Code and data for paper "Deep Painterly Harmonization": https://arxiv.org/abs/1804.03189
6.07k stars 626 forks source link

Is this possible to run on mac os? #3

Open baptistebriel opened 6 years ago

baptistebriel commented 6 years ago

Hi! First of all, that's some amazing work here. I wanted to give it a try on Mac OS, but I get errors for some reasons after make clean && make.

screen shot 2018-04-13 at 11 38 12 am

I updated PREFIX and NVCC_PREFIX with the right paths, but I guess lua might not be correctly installed. If you have any ideas on how to run this on a Mac environment, I'd be really interested about trying this out! Thanks a lot!

luanfujun commented 6 years ago

Could you try running "sudo updatedb && locate lua.h" and check if there is this file in the computer?

Also, it might need to run under a smaller resolution due to memory size.

Thanks!

baptistebriel commented 6 years ago

Thanks for the quick reply!

Instead of using updatedb I did sudo /usr/libexec/locate.updatedb (taken from here). Here's the result of locate lua.h

screen shot 2018-04-13 at 2 22 57 pm

Now when I run make clean && make, I get this error from clang:

screen shot 2018-04-13 at 2 21 01 pm

So I tried to fix it using this article, but now I get this new error:

screen shot 2018-04-13 at 2 43 52 pm
luanfujun commented 6 years ago

Hi! Could you try installing gcc (instead of using clang): brew install gcc --without-multilib --without-fortran?

baptistebriel commented 6 years ago

Hi! There is something I'm probably missing here, but how do you force using gcc instead of clang? I'm still getting the error and I'm a bit lost on this. :)

luanfujun commented 6 years ago

Maybe something like this? https://apple.stackexchange.com/questions/99077/how-to-set-gcc-4-8-as-default-gcc-compiler

Honestly I haven’t tested my code on Mac yet... sorry for causing your trouble:-/

Args commented 5 years ago

So Has anyone run it successfully on Mac OS?