I ran the following scripts with no errors but the example fails with ‘Error: imported global env:__ZNSt3__14cerrE must be a number’. I have tried running other examples and they have failed with the same errors.
The console shows the following errors:
Executing open -a Safari http://localhost:6931/3DPrimitivesExample.html
Error: imported global env:__ZNSt3__14cerrE must be a number
failed to asynchronously prepare wasm: Error: imported global env:__ZNSt3__14cerrE must be a number
Error: imported global env:__ZNSt3__14cerrE must be a number
Here’s the steps I followed:
curl -LO https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz && tar xvf emsdk-portable.tar.gz
cd emsdk-portable
./emsdk update
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
git clone --depth=1 https://github.com/openFrameworks/openFrameworks.git
cd openFrameworks
scripts/emscripten/./download_libs.sh
cd examples/3d/3DPrimitivesExample
cp ../../../scripts/templates/emscripten/Makefile .
emmake make
emrun bin/3DPrimitivesExample.html
Is anyone able to reproduce this?
I should also mention that I get the following warnings when compiling:
warning: unresolved symbol: _ZN15ofURLFileLoaderC1Ev
warning: unresolved symbol: _ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5rfindEcj
warning: unresolved symbol: _ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEjjPKcj
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5eraseEjj
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcj
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEjc
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEjc
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7replaceEjjPKcj
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEj
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEjjjjjj
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_jjRKS4_
warning: unresolved symbol: _ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE5writeEPKci
warning: unresolved symbol: _Znaj
warning: unresolved symbol: _ZnajRKSt9nothrow_t
warning: unresolved symbol: _Znwj
warning: unresolved symbol: _ZnwjRKSt9nothrow_t
warning: Output contains some very large functions (4442 lines in __ZN6LibRaw15parse_makernoteEii), consider building source files with -Os or -Oz, and/or trying OUTLINING_LIMIT to break them up (see settings.js; note that the parameter there affects AST nodes, while we measure lines here, so the two may not match up)