Questions tagged [gn]

For questions related to Google's GN build system.

Google's GN is a meta build system for generating low-level ninja build scripts. The name GN derives from "Generate-Ninja". GN is used by major Google projects such as Chromium, Skia and Fuchsia.

Reference: https://gn.googlesource.com/gn/

96 questions
0
votes
1 answer

Unable to build WebRTC code on RHEL 7.4 because of `GLIBC_2.18' not found error

I am trying to build the WebRTC code on RHEL 7.4 server as per the instructions mentioned on below link: https://webrtc.github.io/webrtc-org/native-code/development/ But observing the below error. $ gn gen out/Debug ../src/buildtools/linux64/gn:…
rkb
  • 1
0
votes
0 answers

Compile chromium on ubuntu 18.04, ninja subcommand failed

I tried to write a ctf topic - GoogleCTF2018_Just-In-Time(browser pwn). I tried to compile chromium on linux platform, but there is an error. According to the build.sh file, I used the following command on terminal. GoogleCTF2018_Just-In-Time…
0
votes
0 answers

for those who worked with skia, how would i build a skia program?

i recently have finished building the skia library on my windows 10 machine, however im honestly pretty confused as to how i would even go about using this library in any program. as the documentation provides little to no guidance on using the…
0
votes
1 answer

How to add '-whole-archive' in gn

I am using gn as my build system, and I want to some target deps another with " -whole-archive", but I found seem no way to do that? What I need is something like: clang++ -o libmy.so -Wl,--start-group libA.a libB.a -Wl,-whole-archive libC.a…
Hui.Li
  • 399
  • 4
  • 18
0
votes
1 answer

How to make a shared library not link to its deps in gn

I am using gn as make system, and I have a shared libS which deps libA and libB, but I want to functions in libA are not linked into libS ( it will be linked into main ) while functions libB are linked into libS. My problem is: If I use deps or…
Hui.Li
  • 399
  • 4
  • 18
0
votes
0 answers

Building Chromium on windows throws an error message

After fetching Chromium's source code, I executed the following command $ gn gen out/Default This results in an execution error: /c/src/depot_tools/gn: line 8: exec: python3: not found What's the problem and how to solve this error?
0
votes
0 answers

How to invoke clang to use current OS GLIBC?

I am building an application in which the application is using GN and ninja to build files. The application is currently building on Ubuntu 20.04 and I am using clang to compile files. But the issue is when I try to build and execute the executable…
0
votes
1 answer

Test if file exists in a GN meta-build

GN Reference about inputs for actions: For action and action_foreach targets, inputs should be the inputs to script that don't vary. These should be all .py files that the script uses via imports (the main script itself will be an implicit…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
0
votes
0 answers

BreakPoint Not Hitting using GN in Visual Studio

I am using Visual Studio to build and debug my project but while debugging I am getting error that the breakpoint not currently be hit. No symbols have been loaded. I have the following things in my project. Main.cpp:- int GetNumber() { int…
0
votes
1 answer

Call Ninja.exe exited with code1

I am trying to create an application in which I am using gn. I tried creating the .exe file with the following command. gn gen out --ide=vs ninja -C out Then, I opened the generated solution file and tried building it, but I am getting an error…
0
votes
0 answers

wout printing address of wide character

I am calling a function which outputs a wide character in the output stream. Consider:- wcout<
0
votes
0 answers

Undefined Reference to Functions in Main File

I am currently working on a large project which is using clang to build files. Now the issue is that when creating executable file for windows, clang is able to create that but when doing the same for linux, I am getting the following…
0
votes
0 answers

getlength throwing error while using with wchar_t

I am working on a project that is written is VScode and is working properly. But when I am trying to execute the same on gn(generate ninja), this the error I am getting:- error: no member named 'GetLength' in 'std::basic_string
Vaibhav Angi
  • 57
  • 1
  • 4
0
votes
1 answer

GN Build add subdirectory that has a makefile

I am trying to add a functionality to the chromium that requires the third party library tpm2-tss. This library has a makefile to build it. I have added a folder tpm in the third_party directory and added a BUILD.gn file. Also the library is added…
TomBombadil
  • 351
  • 1
  • 4
  • 15
0
votes
0 answers

Clang is not able to find Input Files

I am getting this error while creating executable file: [1/2] clang++ -shared -o ./SampleDll_check.dll @SampleDll_check.dll.rsp FAILED: SampleDll_check.dll SampleDll_check.lib clang++ -shared -o ./SampleDll_check.dll…
Vaibhav Angi
  • 57
  • 1
  • 4