Questions tagged [gyp]

GYP is a tool created at Google for the Chromium project that generates native Visual Studio, Xcode and SCons and/or make build files from a platform-independent input format.

GYP is a tool created at Google for the Chromium project that generates native Visual Studio, Xcode and SCons and/or make build files from a platform-independent input format. It is highly specific to Chromium's specific use case and was not created for the general use.

Input configurations are specified in files with the suffix .gyp. Each .gyp file specifies how to build the targets for the "component" defined by that file. Each .gyp file generates one or more output files appropriate to the platform.

178 questions
1
vote
1 answer

Generate Makefile(or Android.mk) for Android NDK using GYP on OS X

I'm trying to use GYP for generating iOS/OS X Xcode project and Makefile(or Android.mk) for Android NDK on OS X. Generating Xcode project is awesome, no problem at all. But for Android, I don't know exactly how to do…
Kazuki Sakamoto
  • 13,929
  • 2
  • 34
  • 96
1
vote
0 answers

Include source files from folder using Google GYP

Is there a way I can include all the *.cc files in a project that is in another directory using Google GYP? I have looked at this page but it has not turned really helpful.
user1343318
  • 2,093
  • 6
  • 32
  • 59
1
vote
0 answers

Build v8 javascript engine on windows

trying to install v8 on Windows XP visual sudio 2010, I followed instruction on project site https://developers.google.com/v8/build but could not get 'build\gyp_v8' Could any of you be kind enough to guide me through proper procedure?
prashant
  • 1,144
  • 9
  • 15
1
vote
1 answer

NodeJS unstable: unable to npm-install modules that need compilation

i've been working with NodeJS 0.11.x distros for some time now, mainly because i believe that generators and the yield statement bring big advances in terms of asynchronous manageability (see coffy-script and suspend). that said, there's a serious…
flow
  • 3,624
  • 36
  • 48
1
vote
1 answer

What is the scope of variables in gyp?

The gyp documentation documents the 'variables' section like this: 'variables': Definitions of variables that can be interpolated and used in various other parts of the file. (emphasis mine). This seems to exclude using the variables in included…
user239558
  • 6,964
  • 1
  • 28
  • 35
0
votes
1 answer

C++ can't access global variable declared in Assembly

System: Centos I have a C++ file, a assembly file and a GYP file: C++ file: src/node_main.cc #include using namespace std; extern "C" { extern char __attribute__((weak)) global_variable; } // extern "C" int main() { …
jasonjifly
  • 21
  • 2
0
votes
0 answers

How can I fix 'npm gyp' issue when using 'npm i java' on Ubuntu22.04?

# Error log [log image] j@ok:~$ npm i java npm ERR! code 1 npm ERR! path /home/j/node_modules/java npm ERR! command failed npm ERR! command sh -c node-gyp rebuild npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using…
winsome
  • 1
  • 1
0
votes
1 answer

Linux setup issue with starboard for Cobalt

I recently stumbled on to cobalt while I was looking to port my web application to android. I followed these steps on my Linux system. I was able to complete the 'Set up your workstation' and 'Set up Developer Tools' sections. While building, on the…
Vermaayu
  • 3
  • 4
0
votes
0 answers

Undefined variable standalone_static_library in binding.gyp while trying to load binding.gyp

MacOS Monterey v12.6 Node Version v20.2.0 Installed Version: pyenv --version pyenv 2.3.18 python2 --version Python 2.7.18 python3 --version Python 3.9.6 python --version Python 3.9.6 ~/.zshrc alias python=/usr/bin/python3 # eval…
aldrien.h
  • 3,437
  • 2
  • 30
  • 52
0
votes
1 answer

Using electron-rebuild "fatal error: bits/libc-header-start.h: No such file or directory"

This issue is very similar to "fatal error: bits/libc-header-start.h: No such file or directory" while compiling HTK, however it occurs during Electron package rebuilding on linux: ┌──(kali♥kali)-[~/Desktop/.../NodeJs/Terminal] 10:51 └─$ node…
krysto
  • 211
  • 5
0
votes
0 answers

node-gyp-build: npm install sodium-native error; what is exit code 1?

I am attempting to install sodium native as an npm package on OpenBSD 7.3 amd64. Aside: As a dependency of Hypercore, Hyperbee and Corestore. This needs node-gyp. Following this, I set the C and C++ compilers to clang: export CC=clang export…
Lee
  • 29,398
  • 28
  • 117
  • 170
0
votes
0 answers

How to build for x64 with GYP using visual studio 2022

Hi I'm using this gyp file below to try and get my build going with visual studio 2022. The build fails with error "error C2118: negative subscript", but I believe the issue is due to the build being done with x86/cl.exe, as per the logs. How can I…
David Choi
  • 6,131
  • 10
  • 28
  • 28
0
votes
0 answers

How can I fix this npm error? npm ERR! Windows_NT 10.0.19044

I'm trying to make a .so file with node.js to be able to make an App but I don't know what the error is, this is the cmd response. supposedly the binding.gyp file is configured correctly, I show it below and it is saved as .JSON { "targets": [ {…
0
votes
0 answers

i try to npm install vue app but it broke with gyp error

i try to run npm install a vue app but it broke with gyp i got an error and i can't understand what it need or what i should do it was working fine i deledted the node_modules directory and tried to npm install again but he swear will never work…
0
votes
0 answers

Error when installing VKT-BOT from the creator of Seniv

PS C:\Users\1\Downloads\tg> git clone https://github.com/seniv/vk-tg-bot.git Cloning into 'vk-tg-bot'... remote: Enumerating objects: 195, done. remote: Total 195 (delta 0), reused 0 (delta 0), pack-reused 195 Receiving objects: 100% (195/195),…