jamriska / ebsynth

Fast Example-based Image Synthesis and Style Transfer
https://ebsynth.com
1.5k stars 194 forks source link

Can't compile cuda version for linux #10

Open Botoni opened 4 years ago

Botoni commented 4 years ago

Getting a lot of src/ebsynth_cuda_texarray2.h:76:55: error: invalid conversion from ‘const int*’ to ‘int’ [-fpermissive] errors when trying to compile with the build-linux-cpu+cuda.sh script. I'm missing any requeriment?

OndrejTexler commented 4 years ago

I remember having maybe a similar issue (but I do not recall what the problem was). Anyway, you can try my fork of the repo. https://github.com/OndrejTexler/ebsynth I did some changes in build scripts and code - maybe it will work for you :-)

shipbrook commented 4 years ago

I had to add -Xcompiler="-fpermissive" into the build script (cpu+cuda) for it to compile without those errors.