GLM is a template-based header-only library that should build out of the box, there's no linking required. If it has some flags that enable SIMD, then those should be disabled. I recently read a success story building GLM at least, so I think that should be good to go.
2014-02-22 20:19 GMT+02:00 Sasha Fonseca <[email protected]>: > And what about glm? > > > On Saturday, February 22, 2014 5:56:53 PM UTC, jj wrote: > >> Give a look here: https://github.com/kripken/emscripten/tree/ >> master/system/include/GL >> >> Emscripten comes with GL/freeglut_std.h and GL/glut.h. I'm not that well >> versed with the minute differences of these, but perhaps one of these >> headers will do the same job for you? >> >> >> 2014-02-22 19:34 GMT+02:00 Sasha Fonseca <[email protected]>: >> >> >>> >>> >>> >>> >>> >>> >>> >>> >>> *[sashaFedora@localhost emscripten]$ ./em++ Teste/tutorial04.cpp -lGL >>> -lGLU -lGLEW -lglut -o main.htmlWARNING root: emcc: cannot find library >>> "GL"WARNING root: emcc: cannot find library "GLU" WARNING root: emcc: >>> cannot find library "GLEW"WARNING root: emcc: cannot find library >>> "glut"Teste/tutorial04.cpp:4:10: fatal error: 'GL/freeglut.h' file not >>> found#include <GL/freeglut.h> ^1 error generated.ERROR root: >>> compiler frontend failed to generate LLVM bitcode, halting* >>> >>> and: >>> >>> >>> >>> >>> >>> >>> >>> *[sashaFedora@localhost emscripten]$ ./em++ Teste/tutorial04.cpp -o >>> main.htmlTeste/tutorial04.cpp:4:10: fatal error: 'GL/freeglut.h' file not >>> found #include <GL/freeglut.h> ^1 error generated.ERROR root: >>> compiler frontend failed to generate LLVM bitcode, halting* >>> >>> >>> >>> On Saturday, February 22, 2014 5:29:18 PM UTC, jj wrote: >>> >>>> 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. >>> >> >> -- > 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.
