SFML community forums

Help => General => Topic started by: SpectreNectar on October 04, 2015, 05:06:41 pm

Title: SFML + Emscripten ?
Post by: SpectreNectar on October 04, 2015, 05:06:41 pm
I'm trying to get a game made in SFML inside a browser.

So I found Emscripten which I thought could do it easily. I was wrong. After setting it up and trying to compile I get this: "This UNIX operating system is not supported by SFML library" (config.hpp:92)

Apparently it wasn't meant to be easy. So is there anything I can do to achieve my goal? Maybe compile SFML myself and set the directive to one of the other Unix options? I could use a hint or two.
Title: Re: SFML + Emscripten ?
Post by: eXpl0it3r on October 04, 2015, 05:12:29 pm
SFML doesn't support Emscripten or rather Emscripten doesn't support SFML. It can be done (https://my-gate.net/pub/Synth-Guitar.html), but you'll have to rewrite SFML's OpenGL code to support OpenGL ES 2 and you'll have to compile all its dependencies properly and get it to fully link.

Long story short: Don't

There are many tools out there to write stuff for your browser, SFML currently just isn't one of them.
Title: Re: SFML + Emscripten ?
Post by: SpectreNectar on October 04, 2015, 05:14:57 pm
Alright, thank you.
I'll figure out something else then...
Title: Re: SFML + Emscripten ?
Post by: CytraL on November 18, 2015, 02:38:36 pm
Can be pretty awesome support it :B