HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
Task #774803
openEmscripten clients for web.
67%
Description
This is the megaticket for emscripten work. I've attached the first build of something that crashes on the home screen.
Files
Updated by Zoltán Žarkov over 6 years ago
- File emscripten.diff emscripten.diff added
Here's the patch of the changes I had to make.
Updated by Zoltán Žarkov over 6 years ago
Check out emscripten from head, apply this patch, and set PATH accordingly. Freeciv then builds:
emconfigure ./configure CFLAGS="-s USE_SDL=2 -s USE_SDL_TTF=2 -s USE_ICU=1 -s USE_SDL_IMAGE=2 -s USE_SDL_GFX=2 -s USE_ZLIB=1" LDFLAGS="-s USE_ZLIB=1 -s USE_SDL=2 -s USE_SDL_TTF=2 -s USE_ICU=1 -s USE_SDL_IMAGE=2 -s USE_SDL_GFX=2" --disable-fcdb --disable-server --disable-ipv6 --enable-client=sdl2 --disable-sdl-mixer --disable-fcmp && emmake make
Updated by Zoltán Žarkov over 6 years ago
After building, you need to add some flags to the emcc command that produces the final html output. cd client and:
/bin/sh ../libtool --tag=CC --preserve-dup-deps --mode=link emcc -Wno-tautological-compare -Wall -Wpointer-arith -Wcast-align -s USE_SDL=2 -s USE_SDL_TTF=2 -s USE_ICU=1 -s USE_SDL_IMAGE=2 -s USE_SDL_GFX=2 -s USE_ZLIB=1 -s USE_ZLIB=1 -s USE_SDL=2 -s USE_SDL_TTF=2 -s USE_ICU=1 -s USE_SDL_IMAGE=2 -s USE_SDL_GFX=2 -s SDL2_IMAGE_FORMATS='["png"]' -s ALLOW_MEMORY_GROWTH=1 --preload-file ../data@data -o freeciv-sdl2.html dummy.o libfcgui-sdl2.la ../common/libfreeciv.la -lm -lnls -pthread
emrun client/freeciv-sdl2.html will give you the friendly frozen home screen with a bunch of errors in the js console.
Updated by Zoltán Žarkov over 5 years ago
- Subject changed from Emscripten SDL2 client for web. to Emscripten clients for web.
This is now for Qt and SDL2 Emscripten.