Hi,

I tried more one thing to check about the compilation error.

I have used opengl3 implementation instead of opengl2, and got this error:

error: undefined symbol: glBindSampler

warning: To disable errors for undefined symbols use `-s 
ERROR_ON_UNDEFINED_SYMBOLS=0`

Error: Aborting compilation due to previous errors

shared:ERROR: '/Users/paulo/Developer/emsdk/node/8.9.1_64bit/bin/node 
/Users/paulo/Developer/emsdk/emscripten/1.38.22/src/compiler.js 
/tmp/tmpXhwrNz.txt 
/Users/paulo/Developer/emsdk/emscripten/1.38.22/src/library_pthread_stub.js' 
failed (1)

.


On Thursday, January 17, 2019 at 3:41:00 PM UTC-2, Paulo Coutinho wrote:
>
> Hi,
>
> Im trying make an example of using imgui inside a sample of my tool ezored 
> (http://www.ezored.com) with emscripten.
>
> Im using emscripten 1.38.22, sdl2, opengl2 and this imgui example as 
> reference:
>
> https://github.com/ocornut/imgui/blob/master/examples/example_sdl_opengl2/main.cpp
>
> But i have some problems. 
>
>
>    1. What i really need for imgui and sdl2 and wasm? I put some TODOs 
>    because my project is working with that TODO lines, "SDL_GL_SetAttribute", 
>    "SDL_GL_SwapWindow", and other marked with TODO. If anyone can help me the 
>    main.cpp file is here:
>    
>    
> https://github.com/ezored/sample-wasm/blob/imgui/source/local/dependency-app/build/source/cpp/canvas/main.cpp
>    
>    Only need search for "TODO: WE NEED IT FOR WASM?".
>    
>    My working example without these specific opengl functions is here:
>    http://public.ezored.com/sample-wasm/    (CANVAS EXAMPLE)
>    
>    2. Based on my main.cpp file im getting compilation error:
>    
>    error: undefined symbol: glColorPointer
>    
>    warning: To disable errors for undefined symbols use `-s 
>    ERROR_ON_UNDEFINED_SYMBOLS=0`
>    
>    error: undefined symbol: glDisableClientState
>    
>    error: undefined symbol: glEnableClientState
>    
>    error: undefined symbol: glOrtho
>    
>    error: undefined symbol: glPolygonMode
>    
>    error: undefined symbol: glPopAttrib
>    
>    error: undefined symbol: glPopMatrix
>    
>    error: undefined symbol: glPushAttrib
>    
>    error: undefined symbol: glPushMatrix
>    
>    error: undefined symbol: glTexCoordPointer
>    
>    Error: Aborting compilation due to previous errors
>    
>    shared:ERROR: '/Users/paulo/Developer/emsdk/node/8.9.1_64bit/bin/node 
>    /Users/paulo/Developer/emsdk/emscripten/1.38.22/src/compiler.js 
>    /tmp/tmpBF_WjX.txt 
>    
> /Users/paulo/Developer/emsdk/emscripten/1.38.22/src/library_pthread_stub.js' 
>    failed (1)
>    
>
> Can anyone help me finish this example?
>
> 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/d/optout.

Reply via email to