Closed kallaballa closed 3 years ago
Are you sure you are using GL4ES for the GL library? On my emscripten port, I use full path of libGL.a to link, to be sure (look at the Makfile of StuntCarRacer here: https://github.com/ptitSeb/stuntcarremake/blob/master/Makefile for example).
to be sure i extracted libGL.a and tried to link all the object files together. same result.
em++ -o src/gl-117.js *.o -s ERROR_ON_UNDEFINED_SYMBOLS=1 -s FULL_ES2=1 -s INITIAL_MEMORY=419430400 -s TOTAL_STACK=52428800 -s WASM=1 -O3 -g0 --use-preload-plugins --preload-file ../usr -s USE_SDL=2 -s USE_SDL_NET=2 -s USE_SDL_MIXER=2
same result.
I'll try the absolute path aswell.
Ok, I have pushed a small change to gl4es that might help that issue. Please update gl4es and try again.
Fixed. What a response time! thx!
Is there a channel where we could discuss compiling your pandora port of gl-117 to emscripten? i have similar problems. Or should I just open another issue?
I'm present on IRC (pandora & pyra channel) and on Discord (PILab and TwisterOS Amrbian server). Also on Matrix (PILab server or Box86 server from Fosdem).
I'm very close to my first complete wasm-build of gl-117 with the help of gl4es but linking fails because somehow it can't find "glCallList":
Strange thing is, it is definitely present in gl4es.