emscripten-ports / SDL2_net

Other
6 stars 4 forks source link

SDL_net does not show up as a port. #3

Open lukasschmit opened 7 years ago

lukasschmit commented 7 years ago

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:

WARNING:root:Assigning a non-existent settings attribute "USE_SDL_NET" WARNING:root: - did you mean one of USE_SDL_TTF, USE_SDL, USE_SDL_IMAGE? WARNING:root: - perhaps a typo in emcc's -s X=Y notation? WARNING:root: - (see src/settings.js for valid values)

Could this port be added officially somehow?

kripken commented 7 years ago

Probably you are on too old a version, and sdl-net was added later. Which version are you on?

lukasschmit commented 7 years ago

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?

kripken commented 7 years ago

Do emcc -v to see the version.

juj commented 7 years ago

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.