Closed omatrot closed 6 years ago
The first problem is a node-gyp related problem.
I modified ~/.node-gyp/7.10.1/include/node/common.gypi' in line 367 to set YES
instead of NO
'GCC_ENABLE_CPP_RTTI': 'YES', # -fno-rtti
The second problem was solved by creating an environment variable:
export CPLUS_INCLUDE_PATH=$(/usr/libexec/java_home)/include:$(/usr/libexec/java_home)/include/darwin/:$(cd "
dirname "0"" && pwd)/deps/djinni/support-lib/cpp
There has been additional problems all solved by modifying common.gpyi
:
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_CFLAGS': [
'-fno-strict-aliasing',
'-fobjc-arc'
],
All problems solved on macOS Sierra
for Linux build (Ubuntu 16.04): we need to fix several issues at 3 different locations: -in our node-gyp installation: common.gypi line for 'OS in Linux .... use those flags: 'cflags_cc': [ '-frtti','-fexceptions', '-std=gnu++0x' ],
I'm using Djinni in the context of a react native project. My starting point is this repo where Djinni is linked as a submodule. In on macOS High Sierra.
When I run
npm install
, it tries to build Djinni...I'm sure that I could find a way to not use
-fno-rtti
but what about the missing file ? Are these 2 problems related ?Thanks for your help.