Skip to content

libvroomjs fails to build on linux #202

@sladiri

Description

@sladiri

I followed the guide to use ReactJS on Linux, http://reactjs.net/guides/mono.html
I checked out V8 tag/3.17.16.2 and built it.

Building libvroomjs failed, attached is the console output from the command
g++ jscontext.cpp jsengine.cpp managedref.cpp bridge.cpp jsscript.cpp -o libVroomJsNative.so -shared -L /home/sladjan/ReactJS/v8-3.17/out/native/lib.target/ -I /home/sladjan/ReactJS/v8-3.17/include/ -fPIC -Wl,--no-as-needed -L:/usr/local/lib/libv8.so.3.17.16.2 2> err.txt
The error:

jsengine.cpp:260:34: error: ‘memset’ was not declared in this scope
  memset(error, 0, sizeof(jserror));
                                  ^

I added #include <cstring> which allowed me to build libVroomJsNative.so.
err.txt

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