Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL_net does not show up as a port. #3

Open
lukasschmit opened this issue Jun 1, 2017 · 4 comments
Open

SDL_net does not show up as a port. #3

lukasschmit opened this issue Jun 1, 2017 · 4 comments

Comments

@lukasschmit
Copy link

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
Copy link
Member

kripken commented Jun 1, 2017

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

@lukasschmit
Copy link
Author

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
Copy link
Member

kripken commented Jun 2, 2017

Do emcc -v to see the version.

@juj
Copy link

juj commented Jun 15, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants