Skip to content

Emscripten addons not linking #8273

@ofTheo

Description

@ofTheo

Building with emscripten latest on macOS with current nightly.
Running emmake make Release I see a bunch of errors relating to metalangle.

  • 1 Metal Angle Errors
In file included from In file included from ../../../libs/metalangle/include/third_party/jsoncpp/source/include/json/features.h../../../libs/metalangle/include/third_party/jsoncpp/source/include/json/forwards.h::10:
In file included from 10../../../libs/metalangle/include/third_party/jsoncpp/source/include/json/forwards.h:
:In file included from 10../../../libs/metalangle/include/third_party/jsoncpp/source/include/json/config.h:
:In file included from 10../../../libs/metalangle/include/third_party/jsoncpp/source/include/json/config.h:
:In file included from 10/Users/theo/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/istream:
:In file included from 163/Users/theo/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/istream:
:In file included from 163/Users/theo/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__fwd/istream.h:
:In file included from 13/Users/theo/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__fwd/istream.h:
:13:
/Users/theo/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__fwd/string.h:/Users/theo/emsdk/upstream/emscripten/cache/sysroot/include/c++/v1/__fwd/string.h22:22::11::  error: error: templates must have C++ linkagetemplates must have C++ linkage

Removing the metalangle folder from libs/ fixed it.

  • 2 ASSERTIONS warning - not critical
    -s ASSERTIONS=2
    These flags need to be commented out.

Once the metalangle issue is addressed Emscripten builds and runs again!!
Yay. Huge thanks to @danoli3 @Jonathhhan and anyone else who contributed to getting it working. Huge to have it back!

Image

Metadata

Metadata

Assignees

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