conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
960 stars 1.77k forks source link

[question] How to use emsdk? #14209

Open Nekto89 opened 1 year ago

Nekto89 commented 1 year ago

I'm trying to use emsdk through profile but for some reason it doesn't work. What am I doing wrong?

It fails inside emsdk build because nodejs can't be found for some reason. Example is from Ubuntu inside WSL2 but I get the same result in Debian Bullseye inside docker.

conan install fmt/8.1.1@ -pr:b default -pr:h wasm_profile --build=missing
Configuration (profile_host):
[settings]
arch=wasm
build_type=Release
compiler=clang
compiler.libcxx=libc++
compiler.version=15
os=Emscripten
[options]
[build_requires]
*: emsdk/3.1.23
[env]

Configuration (profile_build):
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=17
compiler.libcxx=libstdc++11
compiler.version=9
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
...
emcc: warning: cannot check node version: [Errno 2] No such file or directory: 'node' [-Wversion-check]
...
SpaceIm commented 1 year ago

conan v2?

Nekto89 commented 1 year ago

conan v2?

I've tried with 1.53.0 and 1.54.0