liuhaochuan79 / node_recast

recast navigation for node.js addon
MIT License
5 stars 5 forks source link

Build on Linux -gl issue? #1

Open antonmills opened 8 years ago

antonmills commented 8 years ago

Hi there, Extremely keen to give this library a go in my AWS project but seems to be failing under build in Linux, any thoughts?

`In file included from ../recastnavigation/RecastDemo/Source/Sample.cpp:20:0: ../usr/include/math.h:359:0: note: this is the location of the previous definition define MPI 3.14159265358979323846 /* pi /
^ In file included from ../recastnavigation/RecastDemo/Source/Sample.cpp:32:0: ../SDL/SDLopengl.h:54:73: fatal error: GL/gl.h: No such file or directory include <GL/gl.h> / Header File For The OpenGL Library */ ^

compilation terminated.
make: *\ [Release/obj.target/addon/recastnavigation/RecastDemo/Source/Sample.o] Error 1 make: Leaving directory /home/ec2-user/nodemongo-intodim/node_modules/node_recast/build'

Seems to me that theres an issue with the RecastDemo requiring the GL system (which it doesn't have in Node). Any way to decouple this?

logixworx commented 7 years ago

I got the same error.