Node: gyp: name 'node_shared' is not defined while evaluating condition 'node_shared=="true"' in node.gyp

Created on 14 Dec 2017  路  2Comments  路  Source: nodejs/node

Version: Branch::master
Platform: MacOS
Subsystem: x64

I have a problem about generate a Xcode project with GYP

I did it as follows:

  1. git clone https://github.com/nodejs/node.git
    into node and ./configure
  2. git clone https://chromium.googlesource.com/external/gyp
    into gyp and python setup.py build and sudo python setup.py install
  3. into node and ../gyp/gyp node.gyp --depth=. -f xcode --generator-output=./build
    It show :

gyp: name 'node_shared' is not defined while evaluating condition 'node_shared=="true"' in node.gyp

What's wrong?

node.gyp
node.txt

node.gypi
nodei.txt

common.gypi
common.txt

config.gypi
config.txt

icu_config.gypi
icu_config.txt

build question

Most helpful comment

configure generates a bunch of variables. You can pass -Icommon.gypi -Iconfig.gypi to gyp but it's probably easiest to just run ./configure -- f xcode - everything after the -- is passed to gyp verbatim.

Note that you don't have to check out gyp separately, it's vendored in tools/gyp.

All 2 comments

configure generates a bunch of variables. You can pass -Icommon.gypi -Iconfig.gypi to gyp but it's probably easiest to just run ./configure -- f xcode - everything after the -- is passed to gyp verbatim.

Note that you don't have to check out gyp separately, it's vendored in tools/gyp.

Thx Ben! done!

Was this page helpful?
0 / 5 - 0 ratings