libretro / beetle-psx-libretro

Standalone port/fork of Mednafen PSX to the Libretro API.
GNU General Public License v2.0
311 stars 131 forks source link

Unable to compile with Emscripten (using Retroarch dist-cores.sh script) #874

Open fuugg opened 1 year ago

fuugg commented 1 year ago

Attempting to compile the psx-libretro the mednafen_psx_hw_libretro_emscripten.bc using the following command yields the below error. Command: emmake ./dist-cores.sh emscripten

Error: wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glGenVertexArrays wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glBindVertexArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glBlendFuncSeparate wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glUseProgram wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glActiveTexture wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glActiveTexture wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glDisableVertexAttribArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glBindFramebuffer wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glBindVertexArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glBindBuffer wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glDisableVertexAttribArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glEnableVertexAttribArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glVertexAttribPointer wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glDisableVertexAttribArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glEnableVertexAttribArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glVertexAttribPointer wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glDisableVertexAttribArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glEnableVertexAttribArray wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glVertexAttribPointer wasm-ld: error: libretro_emscripten.bc(glsm.o): undefined symbol: rglgen_glDisableVertexAttribArray wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors) emcc: error: '/opt/emsdk/upstream/bin/wasm-ld @/tmp/emscripten_2ee96d.rsp.utf-8' failed (returned 1) make: *** [Makefile.emscripten:126: mednafen_psx_hw_libretro.js] Error 1