-
Notifications
You must be signed in to change notification settings - Fork 439
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
Update vcpkg packages to include EmscriptenApplication on Emscripten #607
Comments
I'm intentionally not using the full SDL2 port in Emscripten, because it's significantly larger and none of those extra features are used. Which means, if Vcpkg enables the full SDL2 on Emscripten, Currently I have no plans to support the full SDL2 on Emscripten due to the useless extra baggage that it drags in. The go-to application to use there is EmscriptenApplication instead, unfortunately it doesn't seem to be included in the feature list yet. You could try to add the following youself to "emscriptenapplication": {
"description": "EmscriptenApplication library"
}, The Vcpkg package is maintained by the community, not by me personally, and the Emscripten support is rather fresh IIRC so a lot of things may be broken there. So this is unfortunately all I can offer right now. Hope it helps at least a bit :) |
I had to patch the port to remove the sdl2application from default features and then add emscriptenapplication. It doesnt look like vcpkg has support for platform specific so I just updated a build script on my end to only include emscriptenapplication when I am building emscripten. It builds so far. Thanks! |
Hi!
I am trying to build magnum for Emscripten via vcpkg via: vcpkg install --head corrade magnum[debugtools,gl,primitives,scenegraph,shaders,shaderconverter,shadertools]
It seems for Emscripten, Magnum uses a separate path that uses SDL_SetVideo, but Vcpkg resolves to SDL2 which means SDL_SetVideo is unavailable. I see in the non Emscripten path, SDL_CreateWindow is used instead which looks like the correct API for SDL2.
In the portfile for magnum, it seems like vcpkg actually applies a bunch of patches to make SDL match SDL2?
See https://github.com/microsoft/vcpkg/blob/master/ports/magnum/002-sdl-includes.patch
See https://github.com/microsoft/vcpkg/blob/master/ports/magnum/005-fix-find-sdl2.patch
The logs are:
The text was updated successfully, but these errors were encountered: