> cmake ../ -DWEBP_BUILD_WEBP_JS=ON
-- The C compiler identification is AppleClang 17.0.0.17000013
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
wasm2js does not support SIMD, disabling webp.js generation.
-- Performing Test HAVE_BUILTIN_BSWAP16
-- Performing Test HAVE_BUILTIN_BSWAP16 - Success
-- Performing Test HAVE_BUILTIN_BSWAP32
-- Performing Test HAVE_BUILTIN_BSWAP32 - Success
-- Performing Test HAVE_BUILTIN_BSWAP64
-- Performing Test HAVE_BUILTIN_BSWAP64 - Success
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework
-- Performing Test HAVE_MATH_LIBRARY
-- Performing Test HAVE_MATH_LIBRARY - Success
-- Looking for include file GLUT/glut.h
-- Looking for include file GLUT/glut.h - found
-- Looking for include file GL/glut.h
-- Looking for include file GL/glut.h - not found
-- Looking for include file OpenGL/glut.h
-- Looking for include file OpenGL/glut.h - not found
-- Looking for include file shlwapi.h
-- Looking for include file shlwapi.h - not found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file wincodec.h
-- Looking for include file wincodec.h - not found
-- Looking for include file windows.h
-- Looking for include file windows.h - not found
-- Performing Test WEBP_HAVE_FLAG_AVX2
-- Performing Test WEBP_HAVE_FLAG_AVX2 - Failed
-- Performing Test WEBP_HAVE_FLAG_AVX2
-- Performing Test WEBP_HAVE_FLAG_AVX2 - Failed
-- Performing Test HAS_COMPILE_FLAG
-- Performing Test HAS_COMPILE_FLAG - Failed
-- Performing Test WEBP_HAVE_FLAG_SSE41
-- Performing Test WEBP_HAVE_FLAG_SSE41 - Failed
-- Performing Test WEBP_HAVE_FLAG_SSE41
-- Performing Test WEBP_HAVE_FLAG_SSE41 - Failed
-- Performing Test HAS_COMPILE_FLAG
-- Performing Test HAS_COMPILE_FLAG - Failed
-- Performing Test WEBP_HAVE_FLAG_SSE2
-- Performing Test WEBP_HAVE_FLAG_SSE2 - Failed
-- Performing Test WEBP_HAVE_FLAG_SSE2
-- Performing Test WEBP_HAVE_FLAG_SSE2 - Failed
-- Performing Test HAS_COMPILE_FLAG
-- Performing Test HAS_COMPILE_FLAG - Failed
-- Performing Test WEBP_HAVE_FLAG_MIPS32
-- Performing Test WEBP_HAVE_FLAG_MIPS32 - Failed
-- Performing Test WEBP_HAVE_FLAG_MIPS32
-- Performing Test WEBP_HAVE_FLAG_MIPS32 - Failed
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2 - Failed
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2
-- Performing Test WEBP_HAVE_FLAG_MIPS_DSP_R2 - Failed
-- Performing Test HAS_COMPILE_FLAG
-- Performing Test HAS_COMPILE_FLAG - Failed
-- Performing Test WEBP_HAVE_FLAG_NEON
-- Performing Test WEBP_HAVE_FLAG_NEON - Success
-- Performing Test WEBP_HAVE_FLAG_MSA
-- Performing Test WEBP_HAVE_FLAG_MSA - Failed
-- Performing Test WEBP_HAVE_FLAG_MSA
-- Performing Test WEBP_HAVE_FLAG_MSA - Failed
-- Performing Test HAS_COMPILE_FLAG
-- Performing Test HAS_COMPILE_FLAG - Failed
-- Configuring done (6.0s)
-- Generating done (0.1s)
-- Build files have been written to: libwebp-1.6.0-rc1/build
> make
[...]
[100%] Building C object CMakeFiles/webp_wasm.dir/extras/webp_to_sdl.c.o
clang: error: no such file or directory: 'SDL2::SDL2'
make[2]: *** [CMakeFiles/webp_wasm.dir/extras/webp_to_sdl.c.o] Error 1
make[1]: *** [CMakeFiles/webp_wasm.dir/all] Error 2
make: *** [all] Error 2
--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss...@webmproject.org .
To view this discussion visit https://groups.google.com/a/webmproject.org/d/msgid/webp-discuss/2653c18f-e070-4e3f-97d8-50b1d8236f6fn%40webmproject.org .
This CMake command is not supported: you need to use it with emcmake, cf https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/webp_js/
To view this discussion visit https://groups.google.com/a/webmproject.org/d/msgid/webp-discuss/b0ba0f2f-fc29-4609-a81e-602ece4ee351n%40webmproject.org .
On Fri, Jul 4, 2025 at 7:01 PM 'Vincent Rabaud' via WebP Discussion < webp-d...@webmproject.org > wrote:This CMake command is not supported: you need to use it with emcmake, cf https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/webp_js/Since 4.0.9 I've also needed to set `-DSDL2_DIR=$EMSDK/upstream/emscripten/tools/ports/sdl2` to have `emcmake cmake ...` pass. That's done in the nightly build on Linux: https://build.webmproject.org/jenkins/job/libwebp__compile_webp_js/ . I'll check mac behavior to be sure.
On Fri, Jul 4, 2025 at 7:01 PM 'Vincent Rabaud' via WebP Discussion < webp-d...@webmproject.org > wrote:This CMake command is not supported: you need to use it with emcmake, cf https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/webp_js/Since 4.0.9 I've also needed to set `-DSDL2_DIR=$EMSDK/upstream/emscripten/tools/ports/sdl2` to have `emcmake cmake ...` pass. That's done in the nightly build on Linux: https://build.webmproject.org/jenkins/job/libwebp__compile_webp_js/ . I'll check mac behavior to be sure.With 4.0.10 `emcmake cmake .. -DWEBP_BUILD_WEBP_JS=1 -DSDL2_DIR=$EMSDK/upstream/emscripten/tools/ports/sdl2` and `emmake make` work on Linux and Mac.I don't know if we can detect emcmake to have the configuration fail.
On Fri, Jul 4, 2025 at 7:01 PM 'Vincent Rabaud' via WebP Discussion < webp-d...@webmproject.org > wrote:This CMake command is not supported: you need to use it with emcmake, cf https://chromium.googlesource.com/webm/libwebp/+/refs/heads/main/webp_js/Since 4.0.9 I've also needed to set `-DSDL2_DIR=$EMSDK/upstream/emscripten/tools/ports/sdl2` to have `emcmake cmake ...` pass. That's done in the nightly build on Linux: https://build.webmproject.org/jenkins/job/libwebp__compile_webp_js/ . I'll check mac behavior to be sure.With 4.0.10 `emcmake cmake .. -DWEBP_BUILD_WEBP_JS=1 -DSDL2_DIR=$EMSDK/upstream/emscripten/tools/ports/sdl2` and `emmake make` work on Linux and Mac.I don't know if we can detect emcmake to have the configuration fail.We already use EMSCRIPTEN_VERSION in a check, so we can add a warning for that being empty.
Hi,
Source and binary archives are available [1].
Everyone is encouraged to update. This release will be finalized in the next
week if there aren't any regressions.