Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stephan:emsdk stephanschulz$ source ./emsdk_env.sh
Adding directories to PATH:
PATH += /Users/stephanschulz/emsdk
PATH += /Users/stephanschulz/emsdk/clang/e1.38.9_64bit
PATH += /Users/stephanschulz/emsdk/node/8.9.1_64bit/bin
PATH += /Users/stephanschulz/emsdk/emscripten/1.38.9
Setting environment variables:
EMSDK = /Users/stephanschulz/emsdk
EM_CONFIG = /Users/stephanschulz/.emscripten
LLVM_ROOT = /Users/stephanschulz/emsdk/clang/e1.38.9_64bit
EMSCRIPTEN_NATIVE_OPTIMIZER = /Users/stephanschulz/emsdk/clang/e1.38.9_64bit/optimizer
BINARYEN_ROOT = /Users/stephanschulz/emsdk/clang/e1.38.9_64bit/binaryen
EMSDK_NODE = /Users/stephanschulz/emsdk/node/8.9.1_64bit/bin/node
EMSCRIPTEN = /Users/stephanschulz/emsdk/emscripten/1.38.9
Stephan:emsdk stephanschulz$ cd /Applications/of_v20191201_osx_release/examples/gui/guiExample
Stephan:guiExample stephanschulz$ emmake make
Compiling OF library for Release
Done!
Compiling guiExample for Release
Linking bin/guiExample.html for emscripten
/Users/stephanschulz/emsdk/emscripten/1.38.9/em++ -o bin/guiExample.html -O3 -s TOTAL_MEMORY=134217728 --memory-init-file 1 obj/emscripten/Release/src/ofApp.o obj/emscripten/Release/src/main.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenSoundStream.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenVideoPlayer.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenSoundPlayer.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenVideoGrabber.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenURLFileLoader.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxAppEmscriptenWindow.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxBaseGui.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxColorPicker.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxSliderGroup.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxToggle.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxButton.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxGuiGroup.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxInputField.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxLabel.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxPanel.o /Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxSlider.o /Applications/of_v20191201_osx_release/libs/openFrameworksCompiled/lib/emscripten/libopenFrameworks.bc -Wl,--as-needed -Wl,--gc-sections --preload-file bin/data@data --emrun --js-library /Applications/of_v20191201_osx_release/addons/ofxEmscripten/libs/html5video/lib/emscripten/library_html5video.js --js-library /Applications/of_v20191201_osx_release/addons/ofxEmscripten/libs/html5audio/lib/emscripten/library_html5audio.js --shell-file /Applications/of_v20191201_osx_release/libs/openFrameworksCompiled/project/emscripten/template.html /Applications/of_v20191201_osx_release/libs/FreeImage/lib/emscripten/libfreeimage.a /Applications/of_v20191201_osx_release/libs/boost/lib/emscripten/libboost_system.a /Applications/of_v20191201_osx_release/libs/boost/lib/emscripten/libboost_filesystem.a /Applications/of_v20191201_osx_release/libs/freetype/lib/emscripten/libfreetype.bc /Applications/of_v20191201_osx_release/libs/pugixml/lib/emscripten/libpugixml.bc /Applications/of_v20191201_osx_release/libs/tess2/lib/emscripten/libtess2.a /Applications/of_v20191201_osx_release/libs/uriparser/lib/emscripten/liburiparser.a
WARNING:root:obj/emscripten/Release/src/ofApp.o is not valid LLVM bitcode
WARNING:root:obj/emscripten/Release/src/main.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenSoundStream.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenVideoPlayer.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenSoundPlayer.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenVideoGrabber.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxEmscriptenURLFileLoader.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxEmscripten/src/ofxAppEmscriptenWindow.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxBaseGui.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxColorPicker.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxSliderGroup.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxToggle.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxButton.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxGuiGroup.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxInputField.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxLabel.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxPanel.o is not valid LLVM bitcode
WARNING:root:/Applications/of_v20191201_osx_release/addons/obj/emscripten/Release/ofxGui/src/ofxSlider.o is not valid LLVM bitcode
warning: unresolved symbol: _ZN24ofxEmscriptenSoundStreamC1Ev
warning: unresolved symbol: _ZN24ofxEmscriptenSoundStreamD1Ev
warning: unresolved symbol: _ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE5rfindEcm
warning: unresolved symbol: _ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7compareEmmPKcm
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEmc
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEmc
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7replaceEmmPKcm
warning: unresolved symbol: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_mmRKS4_
warning: unresolved symbol: _ZNSt3__213basic_ostreamIcNS_11char_traitsIcEEE5writeEPKcl
warning: unresolved symbol: _Znam
warning: unresolved symbol: _ZnamRKSt9nothrow_t
warning: unresolved symbol: _Znwm
warning: unresolved symbol: _ZnwmRKSt9nothrow_t
compiling done
to launch the application on the default browser, run:
emrun bin/guiExample.html
some browsers, like safari, don't support webgl
emrun has automatically found the following browsers in the default install locations on the system:
- firefox: Mozilla Firefox 70.0.1
- chrome: Google Chrome 78.0.3904.108
- safari: Apple Safari 12.1.2
You can pass the --browser <id> option to launch with the given browser above.
Even if your browser was not detected, you can use --browser /path/to/browser/executable to launch with that browser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.