Open lukasschmit opened 7 years ago
Probably you are on too old a version, and sdl-net was added later. Which version are you on?
I had downloaded the "Portable Emscripten SDK for Linux and OS X" from the website. Just built it from the cloned source and it has SDL_net now though. How old is the portable linux/osx SDK on the website?
Do emcc -v
to see the version.
Depending on which version of emsdk you are running, there is a recent bug that unfortunately prevents emsdk from updating itself when running emsdk update
. If you find that emsdk update
exits immediately without printing out anything to the console, then try downloading the portable sdk zip again.
Also after emsdk update
, try running emsdk update-tags
once as well and then emsdk list
to see the available SDKs. Running emsdk install latest
should be installing the 1.37.13 tag.
According to https://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#emscripten-ports SDL_net should be included by default with emscripten, however running
emcc --show-portsdoes
does not list SDL_net.When I use the option:
-s USE_SDL_NET=2
I get the warning:Could this port be added officially somehow?