In Emscripten you can just skip the command lines for GL, GLEW, and GLUT - those are supported in the core, and they will be automatically linked in when you use them. I'm not sure about the status of GLU - it could be that it's not supported. If you just drop the -l directives, do you get further? What are the issues you are seeing? Note that Emscripten does not support desktop GL fully, it has a partial emulation path, and also GLEW and GLUT are partial implementations, so they might need some support work for unusual use cases.
2014-02-22 19:24 GMT+02:00 Sasha Fonseca <[email protected]>: > Hey, > > I'm trying to build a small OpenGL program, which uses GLEW and FreeGLUT. > I can compile this program just fine using the following gcc command: > > > > *gcc <program>.cpp -o <program> -lGL -lGLEW -lGLU -lglut*but I cannot > build this with ./emcc. I know I must link these lbiraries somehow, but I > can't figure it out. A little help would be great! > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
