Skip to content

Compile mruby with emscripten (or: how to include compiler in cross build) #5453

@sasq64

Description

@sasq64

I am trying to build mruby for the web using emscripten, but I get two undefined symbols;

wasm-ld: error: CMakeFiles/toy.html.dir/src/toy.cpp.o: undefined symbol: mrb_load_string
wasm-ld: error: CMakeFiles/toy.html.dir/src/toy.cpp.o: undefined symbol: mrb_load_file

Emscripten works differently than normal c-compilers so errors like this are not too uncommon, but I just wonder;

Is there anything special about those two functions compared to other mrb-functions, since those are the only ones giving me trouble ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions