SDL2 not found in 4.0.9

13 views
Skip to first unread message

キャロウ マーク

unread,
May 22, 2025, 8:55:50 AMMay 22
to emscripten-discuss Sam Clegg via
My build using the Docker image was working fine with 4.0.7. After update to 4.0.9 it has broken. I am getting errors during CMake config:

CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindSDL2.cmake:206 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  tests/loadtests/CMakeLists.txt:35 (find_package)
I tried changing `-s USE_SDL=2` to `--use-port=sdl2` but the problem still happens. I see nothing in the changelog to indicate any change regarding use of the SDL2 port.

Anyone know what changed and how to workaround it?

Regards

    -Mark
signature.asc

Sam Clegg

unread,
May 22, 2025, 11:20:17 AMMay 22
to emscripte...@googlegroups.com
Apologies, I should have mentioned this in the changelog.

The breakage was caused by https://github.com/emscripten-core/emscripten/pull/24306, and I've just uploaded a PR to update the changelog: https://github.com/emscripten-core/emscripten/pull/24395

Basically, with 4.0.9 and above you now need to install SDL2 and SDL3 somehow before cmake can detect their presence.   See the above PR s for more on this.

cheers,
sam

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/9E5C92E4-39DD-4072-8C50-434B2EC8BE0D%40callow.im.

キャロウ マーク

unread,
May 23, 2025, 8:31:18 AMMay 23
to emscripte...@googlegroups.com


On May 23, 2025, at 0:20, 'Sam Clegg' via emscripten-discuss <emscripte...@googlegroups.com> wrote:

Apologies, I should have mentioned this in the changelog.

The breakage was caused by https://github.com/emscripten-core/emscripten/pull/24306, and I've just uploaded a PR to update the changelog: https://github.com/emscripten-core/emscripten/pull/24395

Basically, with 4.0.9 and above you now need to install SDL2 and SDL3 somehow before cmake can detect their presence.   See the above PR s for more on this.



Thank you Sam for the information and for updating the changelog. I have got this part of the build working again. Another issue has surface about which I’ll start a new thread.

Regards

    -Mark

signature.asc
Reply all
Reply to author
Forward
0 new messages