The GLUT support in Emscripten is only partial, and the API is not fully supported. You can see the supported bits at https://github.com/kripken/emscripten/blob/incoming/src/library_glut.js . That is the reason that you are getting the unresolved symbols about glut. For the rest, those look like code missing from your compilation. You can use http://demangler.com to demangle those names back to C++ symbol names in order to figure out what functions they are, and then trace them back to your source code to investigate which code is missing from your build.
2015-06-15 10:36 GMT+03:00 Trần Tuấn Phương <[email protected]>: > Hello, > > I'm a newbie on emscripten. I try to run this program on this source code: > https://github.com/phuong3030/lg > > This main program use the DelFEM library on /DelFEM folder. > - I tried to change the makefile on /DelFEM from g++ to em++ and change > the libdfm.a to libdfm.bc. > - Then i run this command on main directory: em++ --bind -s > LEGACY_GL_EMULATION=1 -s USE_SDL=2 -lglut -lGL -lGLU -ldfm > -I./DelFEM/include ./DelFEM/lib/libdfm.bc main.cpp > analysis2d_cloth_static.cpp contact_target_mesh.cpp contact_target_adf.cpp > cloth_handler.cpp designer2d_cloth.cpp emat_quad_bend.cpp eqn_quad_bend.cpp > eqn_glue.cpp eqn_contact3d.cpp emat_glue.cpp emat_cst.cpp emat_cst.cpp -o > main.js > > The terminal showed me some warnings: > warning: unresolved symbol: glutBitmapCharacter > warning: unresolved symbol: _Z11InterpFieldjjjjRN3Fem5Field11CFieldWorldE > warning: unresolved symbol: _ZNK3Fem5Field8CElemAry15MakeElemSurElemERKjPi > warning: unresolved symbol: > _ZN3Msh14CMesher2D_Edit32FitMeshToCad_Slider_UsingPrecompERKN3Cad9CCadObj2DERjd > warning: unresolved symbol: glutSetWindow > > Can anyone explain to me understand what is going on? Thank you a lot! > > -- > 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/d/optout. > -- 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/d/optout.
