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
0 answers

Regarding the issue of compiling WebRTC using VS

call "D:\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" Firstly, I switch the CMD to the VS2017 runtime environment. gn gen out/Default --args="target_cpu="x64" is_clang=true" --ide=vs2017 ninja -C out/Default these are…
0
votes
1 answer

Chromium build with ninja failed in ubuntu22.04

follow this, I build chromium in my ubuntu22.04. when i run autoninja -C out/Default chrome, it failed with the following ouptut: ninja: Entering directory `out/Default' [33073/48535] CXX…
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

GN not Working When Trying To Make Chromium

gn is not working please tell me how to fix it if requires sdk's please tell me the number and where to get it my operating system is windows 10. Every time I type gn gen out/default it shows an error. Here is how it looks: Traceback (most recent…
0
votes
1 answer

Specifying install/output dir for lib and executables generated by gn/ninja

I using gn for generating ninja files, and ninja to build them, but I cannot achieve one thing in specific I want to copy/move my builded libs to given path. In gn doku I found things as output_dir or copy but using them I can only place libs inside…
AnDevi
  • 67
  • 7
0
votes
1 answer

Issues with building Google V8 versions 10.x/11.x with Visual Studio 2019 (9.x is ok)

I'm currently having issues to build V8 version 11.x on Windows, specifically every version beyond 10.0 does not build on Visual Studio 2019 (16.11.22) due to different build errors. V8 version 9.99 builds for me successfully using the steps…
Naios
  • 1,513
  • 1
  • 12
  • 26
0
votes
1 answer

Building Chromium's unit tests: generate_fontconfig_caches failed

I have been able to build Chromium from source, for Ubuntu using this guide. Subsequently, I want to build the unit tests for it. And specifically, I want to build vaapi_unittest. I have not been able to do so. First it failed on missing TTF fonts,…
Bram
  • 7,440
  • 3
  • 52
  • 94
0
votes
0 answers

I am trying to build Pdfium with clang for android with no success

I've been trying to build PDFium for Android for several days with no success. I should follow this script which configures it for my project. Everything works perfectly until the last step, it gives the following error: ld.lld: error: unable to…
mudlej
  • 21
  • 1
  • 5
0
votes
1 answer

gn: Unresolved dependencies

I'm attempting to build Chromium on Ubuntu 22.04. I've cloned the git repo, checked out the 102.0.5005.59 branch, added the depot_tools directory to PATH, and run fetch --nohooks chromium ./build/install-build-deps.sh…
Daniel Walker
  • 6,380
  • 5
  • 22
  • 45
0
votes
1 answer

gm.py x64.release Errorr---env: python: No such file or directory

macos monterey 12.3.1 python -V: python3 which python3: /usr/local/bin/python3 alias python="/usr/bin/python3" path: /Users/Bill/Public/browser/depot_tools /usr/local/bin /usr/bin /bin /usr/sbin /sbin proxy: proxychains4 + tor socks5 127.0.0.1…
0
votes
0 answers

I need to build Chromium after I include some dependencies

I am simply building Chromium windows. It builds perfectly and works in every configuration I try. When I modify the source code, to include, in select_file_picker_win.cpp #include "chrome/browser/ui/browser.h" #include…
sunkeet
  • 1
  • 3
0
votes
0 answers

Why does Win10 may hang at 'cmd /c type nul' command

I have a chromium web-browser and a custom installer for it. Both are intended to be built with gn and autoninja. It seems the c++ part compiles fine but overall process hangs at last command here: [40009/40017] cmd /c type nul >…
qloq
  • 689
  • 1
  • 5
  • 15
0
votes
1 answer

Chromium Branding in MacOS

I have been trying to change the branding of Chromium in MacOS. I have tried editing theses…
0
votes
1 answer

Unable to start debugging chromium with the built all.sln file

I tried to compile Chromium with the following commands: gn gen --ide="vs2019" --winsdk="10.0.19041.685" out/Default autoninja -C out/Default chrome -j 8 And I get a folder with the project (all.sln) and binaries. When I open a solution project…
Roderico
  • 11
  • 3
0
votes
0 answers

Why it crashs and tell me "EXC_BAD_ACCESS" while I click any NSMenuItem on my App?

I build an app using GN and Run it on Xcode. but when I click any item on the menu, it always crash at main.m int main(int argc, const char* argv[]) { @autoreleasepool { // Setup code that might create autoreleased objects goes here. } …
LittleCabbage
  • 71
  • 1
  • 3