-
Notifications
You must be signed in to change notification settings - Fork 38
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 build error #8
Emscripten build error #8
Comments
Emscripten got updates since the time of the guide publication. Unfortunately, rarely do developers care about stability, so they change the behavior of software sigh. To fix the issue, try to update openscenegraph-cross-platform-guide-application/web/CMakeLists.txt by replacing the following line:
with:
Please, let me know if it works for you: I'll update the guide's code. |
Thanks! This time tomorrow at latest, I'll let you know. |
The suggestion seems to have gotten me past that error. The next, I'm guessing, is something similar. Compiler suggests "ERROR_ON_UNDEFINED_SYMBOLS=0". I'm getting familiar with CMake, but not exactly sure where to put this. I believe the issue is documented here where one of Emscripten's major ported libraries encountered it: https://git.sprintf.io/emscripten-ports/emscripten/commit/feb5be841fb973f1ac8e29d853e22e04d1cdab26 Any suggestions welcome; putting it in the CMakeLists.txt in the /web project did not apparently work. I am retrying in a new build directory. Part of the actual error message:
|
@rdroe, try to use
Let me know if it works |
@kornerr |
Glad to hear that! Could you please then rename USE_SDL2 into something like FLAGS in that PR? That would help us keep that variable "flexible". |
I meet the same probelm. but it doesn't work; There is the error. |
That definitely worked for Emscripten compilation (I was running on osx and linux). Also, make sure you're following the g++ project's instructions very closely. The error message looks unrelated to my problem. If you reach the error I described, see https://github.com/OGStudio/openscenegraph-cross-platform-guide-application/pull/1/files; I'd do something like this, but not in the Emscripten project; rather the same file but in whichever project you're compiling. @kornerr, I made the update you last requested: https://github.com/OGStudio/openscenegraph-cross-platform-guide-application/pull/1/files seems to work. |
@rdroe, thanks, I'll merge the changes when I have time. Not sure if it's going to be soon enough, though. |
@kornerr no rush for me, thanks |
is this project currently succesfully compilable? i have also tried to make it work and i am facing the same error using the latest emscripten version on ubuntu 18.04. I have tried to use the precompiled static libaries from here: https://github.com/MozillaReality/OpenSceneGraph/releases/tag/OpenSceneGraph-3.7.0-wasm+mozilla-gltf |
in order to make it work i added the followings in CMakeLists.txt (openscenegraph-cross-platform-guide-application/web), then executed the cmake command, then removed the -lnul inside the generated file inside sample-ems/CMakeFiles/sample-ems.dir/linklibs.rsp, then executed make command |
So, it now works for you, right? |
Yes, i am able to build and run the application. But my aim is to make it work within Qt for Webassembly |
I'm having a similar issue compiling on MacOS 10.15.5 I get a weird |
Thanks for the great tutorials. I've run through a couple with success.
However, walking through your Emscripten, I get a build error:
I followed the instructions exactly.
This is on Ubuntu 19.04 but same on OSX Mojave.
When I had entered
emsdk activate latest
, some of the output wasThanks again! The tutorials were really helpful for other systems.
The text was updated successfully, but these errors were encountered: