emscripten-core / emsdk

Emscripten SDK
http://emscripten.org
Other
2.93k stars 665 forks source link

emsdk construct_env removes path to MinGW #966

Open kareemkermad opened 2 years ago

kareemkermad commented 2 years ago

I'm unable to build the OpenCascade wasm libraries using their wasm_build.bat script. The error I'm getting is:

CMake was unable to find a build program corresponding to "MinGW Makefiles"

OpenCascade's wasm_build.bat script runs emsdk_env.bat, which sets the PATH for the session. This removes the entry for MinGW from the PATH because MinGW is installed inside the emsdk directory. CMake is then unable to find mingw32-make.

sbc100 commented 2 years ago

The problem is that we want to be able to tell which components of the path are managed by emsdk and which are not. Can you think of another way to determine this? Perhaps it would be possible to install these extra tools outside of the emsdk directory?