The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Emscripten port...
slvn


Joined: 06 Oct 2012
Posts: 88
Great ! I have tried emscripten port and it worked immediately.
I have also compiled sdl mixer, image and ttf with a few dependencies
(jpeg, png, freetype, libz).

A few tips in the makefile would have been useful like :
- don't use the sdk from the linux distribution but get it from the
official website.
- use the option "--preload-file" to add assets to you app
- use the option "-Oz" to reduce the size of the ouput



On Wed, Dec 31, 2014 at 8:07 AM, Martin Gerhardy
wrote:
Quote:
i will try to add a loading bar to my examples. currently you have to wait
until they are loaded - which may take some time dependent on your
connection. the games are working for me in chrome and firefox on linux. it
just takes a few minutes until they are loaded. cavepacker is smaller (round
10mb) caveexpress is bigger (35mb) - so the first should be loaded faster.
the html5 links on http://www.caveproductions.org should now always be up to
date.

thanks for testing it and for the feedback. i will try to improve them.



Am 30.12.2014 um 23:06 schrieb Jonathan Greig:

Ryan,
Your test app works fine on my Android phone using Chrome and will run fine
on my linux laptop using Firefox but will not work at all using Chrome on my
laptop. It ends up with this output when it fails under Chrome:

Quote:
* Engine: Log file started Tue Dec 30 15:53:23 2014
* Engine: Build string: test_renderer, revision hg-411:37f26bc0e0cc, built
Dec 10 2014 15:21:26, by Clang 3.3.0
E Ini: Failed to open config file engine.ini
I Engine: Command line:
I Engine: argv[0]: ./this.program
I Renderer: Setting video mode to 800x600/windowed
I Renderer: SDL available renderers: opengles2 software
Could not create canvas: Web page was not allowed to create a WebGL
context.,Sad,{"antialias":true,"alpha":false,"depth":true,"stencil":true,"majorVersion":1,"minorVersion":0}
E Renderer: SDL error: SDL_CreateRenderer (Couldn't find matching render
driver)
E Renderer: Couldn't create renderer!
I Renderer: Shutting down...
I Renderer: Setting video mode to 800x600/fullscreen
I Renderer: SDL available renderers: opengles2 software
Could not create canvas: Web page was not allowed to create a WebGL
context.,Sad,{"antialias":true,"alpha":false,"depth":true,"stencil":true,"majorVersion":1,"minorVersion":0}
E Renderer: SDL error: SDL_CreateRenderer (Couldn't find matching render
driver)
E Renderer: Couldn't create renderer!
I Renderer: Shutting down...
* Engine: Log file ended Tue Dec 30 15:53:23 2014


My laptop has Nvidia Optimus technology in it so since the message mentioned
it couldn't create a renderer I thought that it might have something to do
with it using the Intel GPU or the Nvidia one. So I tried running `primusrun
chromium-browser
https://icculus.org/~icculus/emscripten/test_renderer/test_renderer.html`
but it still fails. Is this a problem that you or others have encountered?

I'm interested in Emscripten and have played around using it a bit myself
although I'm still not very familiar with many things. I've seen some really
neat stuff done with it but all of it seems to be demos rather than
something of actual use or production purposes. It is hard to deny that your
demo is very cool though Smile

Martin,
All of your links do not work no matter what I try Sad I noticed a bit of
activity on your GitHub repo when you initially posted the links and figured
you were still changing stuff but they are still not working. It always
results in a large gray box (probably the rendering window) with a
fullscreen button beneath and then below that is another gray box (which
appears to be a text box of some sort).

Cheers
Jonathan




On Sat, Dec 27, 2014 at 4:43 PM, samleo wrote:
Quote:

Cool news


________________________________

My project
http://sourceforge.net/projects/dangeroustux/

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




--
Sylvain Becker
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org