OF and emscripten compile issue

Hey everybody,

I tried to compile openframework with emscripten but I got the following error. Did someone meet the same problem before?

../../../libs/openFrameworks/app/ofAppRunner.cpp:234:107: error: extraneous ')'
      before ';'
../../../libs/openFrameworks/app/ofAppRunner.cpp:234:102: warning: expression
      result unused [-Wunused-value]
1 warning and 1 error generated.
ERROR    root: compiler frontend failed to generate LLVM bitcode, halting
make[2]: *** [../../../libs/openFrameworksCompiled/lib/emscripten/obj/Release/libs/openFrameworks/app/ofAppRunner.o] Error 1
make[1]: *** [Release] Error 2
make: *** [Release] Error 2

Thank you for your feedback
best regards

there’s been some refactoring lately in the master branch and emscripten is not up to date yet. i’m waiting till this PR: https://github.com/openframeworks/openFrameworks/pull/3384 gets merged, since that will break it again anyway, and then will fix it

1 Like

Hey Arturo,

Thank you for your feedback and information!!!

Hi Arturo, will a document be created alongside some tests to show the emscripten building chain?

Will it go in 0.9?


yes there will be a setup guide as with all other platforms but instead of having a special download, the desktop download will work with emscripten too. any example should work with emscripten in principle