Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML + Emscripten ?  (Read 4362 times)

0 Members and 1 Guest are viewing this topic.

SpectreNectar

  • Newbie
  • *
  • Posts: 39
    • View Profile
SFML + Emscripten ?
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: SFML + Emscripten ?
« Reply #1 on: October 04, 2015, 05:12:29 pm »
SFML doesn't support Emscripten or rather Emscripten doesn't support SFML. It can be done, 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

SpectreNectar

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: SFML + Emscripten ?
« Reply #2 on: October 04, 2015, 05:14:57 pm »
Alright, thank you.
I'll figure out something else then...

CytraL

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • GitHub
Re: SFML + Emscripten ?
« Reply #3 on: November 18, 2015, 02:38:36 pm »
Can be pretty awesome support it :B
dev@redneboa.es | WordPress | GitHub | YouTube