ccmakeemscriptenemmake

emmake and emconfigure command not found (osx)


I'm trying to use CMake with Emscripten. I followed this official tutorial, cloned the repo with:

git clone https://github.com/emscripten-core/emsdk.git

I did:

./emsdk install latest
./emsdk activate latest

and in general, emcc seems to be working. Now I moved on to this tutorial and it tells me to use:

./emconfigure ./configure
./emmake make

Unfortuantely, it doesn't seem like emconfigure or emmake are anywhere on my PATH. I also cannot find them in emsdk repo that I cloned earlier. Did I miss something obvious?


Solution

  • You forgot the last step in the Installation Instructions tutorial you linked (bolded below):

    # Fetch the latest version of the emsdk (not needed the first time you clone)
    git pull
    
    # Download and install the latest SDK tools.
    ./emsdk install latest
    
    # Make the "latest" SDK "active" for the current user. (writes .emscripten file)
    ./emsdk activate latest
    
    # Activate PATH and other environment variables in the current terminal
    source ./emsdk_env.sh
    

    This should allow emconfigure and emmake to be recognized in the current Terminal session.