google / brunsli

Practical JPEG Repacker
MIT License
730 stars 51 forks source link

Compiler is not EMSCRIPTEN #127

Open jiapei100 opened 1 year ago

jiapei100 commented 1 year ago

Hi, I‘m using Ubuntu 22.04. and I put my emsdk under folder /opt/emsdk. However, I got the following ERROR message. Compiler is not EMSRIPOM

 -- Compiler is not EMSCRIPTEN
 CMake Deprecation Warning at build/_deps/brotli-src/CMakeLists.txt:5 (cmake_minimum_required):
   Compatibility with CMake < 2.8.12 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value or use a ...<max> suffix to tell
   CMake that the project does not need compatibility with older versions.

 Build type is 'Release'
 -- Compiler is not EMSCRIPTEN
 Configuring done (0.4s)

Can anybody give me a hand? Thank you ..

eustas commented 1 year ago

-- Compiler is not EMSCRIPTEN is not an error, it is info-message: https://github.com/google/brunsli/blob/master/CMakeLists.txt#L19

It appears twice, because both brunsli and brotli check that.

Try using emcmake / emconfigure / toolchain instead of plain cmake if you want to compile WASM library.