Page 1 of 1

[fixed] Emscripten build does not work with ERROR_ON_UNDEFINED_SYMBOLS=1

Posted: Tue Feb 16, 2021 1:32 am
by altren

Code: Select all

error: undefined symbol: eglCreatePbufferSurface
Even though the code that uses this function is never called in real application it still exist in the .so.
Issue comes from this recent commit: https://github.com/OGRECave/ogre/commit ... aed01cc4f3
Added EGLWindow::create function use eglCreatePbufferSurface. Emscripten docs, telling that this function is not implemented: https://emscripten.org/docs/porting/mul ... extensions

Another place where eglCreatePbufferSurface is used in the EGLPBuffer, this class is also new for emscripten build.
Comes from this code

Code: Select all

    GLPBuffer* EGLSupport::createPBuffer( PixelComponentType format, size_t width, size_t height )
    {
        return new EGLPBuffer(this, format, width, height);
    }

Re: Emscripten build does not work with ERROR_ON_UNDEFINED_SYMBOLS=1

Posted: Mon Feb 22, 2021 7:01 pm
by paroj