*[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] <javascript:>>
> :
>
>> 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] <javascript:>.
>> 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.