Closed skhaz closed 9 months ago
emsdk doesn't include prebuilt versions of SDL2. As far as I know it never has.
The SDL2 library will be built and installed the first time you run emcc with -sUSE_SDL=2
. Alternatively you can build it explictly using embuilder build sdl2
.
In other words, when you fist install emsdk (either 3.1.44 or 3.1.48) the upstream/emscripten/cache/sysroot/include/SDL2
is not expected to exist.
I reported this issue in the Conan repository, thinking it was some release that broke. I tried downgrading Conan and the SDL library and encountered the same error listed below, so I decided to downgrade the
emsdk
to version 3.1.44 and was able to confirm that the new versions of emsdk have some kind of regression that does not include SDL2.emsdk working version with Conan:
3.1.44
emdk version not working:
3.1.48