New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emscripten make issue #7904
Comments
I just tested as well, seems okay, hmmm lets verify your setup: Env setup:
And are you running a command like this in the project directory:
|
output should be like this:
|
emm,wired ,still not working,i'm sure i'm setting up everything this is the lastest step liquid@liquiddeMacBook-Pro graphicsExample % cd /Users/liquid/Desktop/emsdk Compiling graphicsExample for Release any ideas? btw,thank you so much for looking into it |
It should work with: #7909 |
great,thank you so much @Jonathhhan |
I still have problems with using pugixml, something like xmlExample, svgExample, pugiXmlExample. I tried to delete --gc-sections from config.emscripten.default.mk, and then I got this error: error: expected top-level entity I tried to change pugixml.bc to pugixml.o, but it didn't work. emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.56 (cf90417346b78455089e64eb909d71d091ecc055) |
I downloaded the pugixml library and created a new .bc file with this command: |
@azuremous it should be solved here: openframeworks/apothecary#367
Was it not working or just showing the warning? |
@Jonathhhan |
@azuremous alright, added that to the PR #7909 |
setting up the latest the emsdk and env according to the page https://openframeworks.cc/setup/emscripten/
the xcode version which is 15.2(15c500b)
the nightly build version and 0.12.0 both with this error
clang++: error: unknown argument: '--gc-sections'
em++: error: '/Users/liquid/Desktop/emsdk/upstream/bin/clang++ -target wasm32-unknown-emscripten -fignore-exceptions -fvisibility=default -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --sysroot=/Users/liquid/Desktop/emsdk/upstream/emscripten/cache/sysroot -DEMSCRIPTEN -isystem /Users/liquid/Desktop/emsdk/upstream/emscripten/cache/sysroot/include/freetype2 -Xclang -iwithsysroot/include/fakesdl -Xclang -iwithsysroot/include/compat -O3 -Wl --gc-sections /Users/liquid/Desktop/of_v20240228_osx_release/libs/openFrameworksCompiled/lib/emscripten/libopenFrameworks.bc -c -o /var/folders/63/p36n6bnn21lc5x59z00d7nqw0000gn/T/emscripten_temp_5ucj2s0_/libopenFrameworks_0.o' failed (returned 1)
make[1]: *** [bin/em/graphicsExample/index.html] Error 1
make: *** [Release] Error 2
emmake: error: 'make' failed (returned 2)
The text was updated successfully, but these errors were encountered: