当前位置:网站首页>Log an error encountered when compiling google gn "I could not find a ".gn" file ..."
Log an error encountered when compiling google gn "I could not find a ".gn" file ..."
2022-08-05 01:28:00 【chexlong】
Applying Google gn+nijia, when compiling the program on ubuntu7.9, I encountered such an error message
# gn gen out/ "ERROR Can't find source root.
I could not find a ".gn" file in the current directory or any parent,
and the --root command-line argument was not specified."

According to the prompt, the .gn file should be missing in the current directory.Keyword search, someone has encountered similar problems on stackoverflow
selenium chromedriver - How to build with targets with Google Chromium GN? - Stack Overflow
The solution is as follows

I tried following the steps, but it didn't work.
Then go to the gn demo program and have a look, the ".gn" file is indeed in the demo program (note that the ".gn" file cannot be viewed with the ls command, and the ll -a command is required to view it)

.gn file content is
# The location of the build configuration file.buildconfig = "//build/BUILDCONFIG.gn"
Copy the ".gn" file to the current directory of the project, the same directory as "BUILD.gn", and then use the command
gn gen out/Recompile the program, the error message "I could not find a ".gn" file ..." is gone.
边栏推荐
猜你喜欢
随机推荐
Binary tree [full solution] (C language)
2021年11月网络规划设计师上午题知识点(上)
A new technical director, who calls DDD a senior, is convinced
DHCP的工作过程
3. pcie.v 文件
创意代码表白
【机器学习】21天挑战赛学习笔记(二)
10年测试经验,在35岁的生理年龄面前,一文不值
跨域解决方案
GCC: Shield dependencies between dynamic libraries
pytorch的使用:使用神经网络进行气温预测
详细全面的postman接口测试实战教程
MBps与Mbps区别
Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
Software Testing Interview Questions: What do test cases usually include?
如何创建rpm包
day14--postman接口测试
第09章 性能分析工具的使用【2.索引及调优篇】【MySQL高级】
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
记录谷歌gn编译时碰到的一个错误“I could not find a “.gn“ file ...”





![[Redis] Redis installation under Linux](/img/84/7791a87ff976be15b455f6ddc05bf2.png)



