Skip to content

Emscripten build error #8

@rdroe

Description

@rdroe

Thanks for the great tutorials. I've run through a couple with success.
However, walking through your Emscripten, I get a build error:

[ 80%] Building CXX object /home/davo/sites/OpenSceneGraph/build/Emscripten/src/osgAnimation/CMakeFiles/osgAnimation.dir/StackedTransform.cpp.o
[ 80%] Building CXX object /home/davo/sites/OpenSceneGraph/build/Emscripten/src/osgUI/CMakeFiles/osgUI.dir/Validator.cpp.o
[ 81%] Linking CXX executable sample-ems.html
shared:ERROR: emcc: cannot find library "nul" (`-s ERROR_ON_MISSING_LIBRARIES=0` to disable this error)
make[2]: *** [CMakeFiles/sample-ems.dir/build.make:100: sample-ems.html] Error 1
make[1]: *** [CMakeFiles/Makefile2:81: CMakeFiles/sample-ems.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 81%] Building CXX object /home/davo/sites/OpenSceneGraph/build/Emscripten/src/osgManipulator/CMakeFiles/osgManipulator.dir/Translate2DDragger.cpp.o
[ 81%] Building CXX object /home/davo/sites/OpenSceneGraph/build/Emscripten/src/osgAnimation/CMakeFiles/osgAnimation.dir/StackedTranslateElement.cpp.o
[ 81%] Building CXX object /home/davo/sites/OpenSceneGraph/build/Emscripten/src/osgWrappers/serializers/osgSim/CMakeFiles/osgdb_serializers_osgsim.dir/DirectionalSector.cpp.o
...
[ 91%] Linking CXX static library ../../../lib/libosgdb_ive.a
[ 91%] Built target osgdb_ive
make: *** [Makefile:130: all] Error 2

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 was

Set the following tools as active:
   releases-fastcomp-7b4b328af02eafbc857b8ca1e3d9b12dddc56ef7-64bit
   node-8.9.1-64bit

Thanks again! The tutorials were really helpful for other systems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions