cnlohr / noeuclid

Non-euclidean GPU Raytraced Game
BSD 3-Clause "New" or "Revised" License
644 stars 48 forks source link

Fixed compiling errors on OSX #36

Closed carlosccb closed 8 years ago

carlosccb commented 8 years ago

I tried to compile on OSX 10.10 with all required libraries and tcc installed (all with homebrew) and linked in /usr/local/include and there were linking errors and header files not found.

I changed the flags (-lGLEW -lGLU -lGL) to frameworks (-framework GLUT -framework OpenGL -framework Cocoa) to fix GLU and the directories for tcc and sfml (-I/usr/local/include/ -L /usr/local/lib/).

Also, I have not tried to compile on any GNU/Linux distro, but I think it should work as I only changed what's inside the conditional.

phiresky commented 8 years ago

Thanks!

It's still working on Linux, I'm assuming it also works on OSX.