openframeworks / openframeworks/openFrameworks

emscripten emrun missing functions

Open
#6,126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

After going through all the build instructions below with the latest, I am unable to run any example or project, i have tried several combinations and used emcc --clear-cache and emmake make clean throughout rebuilds with no success.

./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

I have even added
cp ../../../scripts/templates/emscripten/config.make .
which did not help either

this is the result is always along the lines of:
$ emrun --browser chrome bin/3DPrimitivesExample.html

Executing /Applications/Google Chrome.app/Contents/MacOS/Google Chrome --incognito --enable-nacl --enable-pnacl --disable-restore-session-state --enable-webgl --no-default-browser-check --no-first-run --allow-file-access-from-files http://localhost:6931/3DPrimitivesExample.html
Created new window in existing browser session.
missing function: _Znwj
-1
-1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the emscripten template Makefile and config.make used to build examples/3d/3DPrimitivesExample, then reproduce the emrun --browser chrome command and its missing _Znwj output. Done means the example builds and runs without the reported missing-function error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.