当前位置:网站首页>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.
边栏推荐
- 第十一章 开关级建模
- 【翻译】CNCF对OpenTracing项目的存档
- Is DDOS attack really unsolvable?Do not!
- Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!
- linux(centOs7)部署mysql(8.0.20)数据库
- 3. pcie.v file
- 【机器学习】21天挑战赛学习笔记(二)
- Software Testing Interview Questions: What do test cases usually include?
- MBps与Mbps区别
- 原生js实现多选框全部选中和取消效果
猜你喜欢
Are testing jobs so hard to find?I am 32 this year and I have been unemployed for 2 months. What should an older test engineer do next to support his family?
How DHCP works
DHCP的工作过程
MySQL3
Getting Started with Kubernetes Networking
深度学习原理学习小结 - Self-Attention/Transformer
B站7月榜单丨飞瓜数据B站UP主排行榜发布!
金仓数据库 KingbaseES V8 GIS数据迁移方案(3. 基于ArcGIS平台的数据迁移到KES)
OPENWIFI实践1:下载并编译SDRPi的HDL源码
【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择
随机推荐
torch.autograd.grad求二阶导数
码率vs.分辨率,哪一个更重要?
Bit rate vs. resolution, which one is more important?
The principle of NMS and its code realization
Are testing jobs so hard to find?I am 32 this year and I have been unemployed for 2 months. What should an older test engineer do next to support his family?
GCC: paths to header and library files
Creative code confession
JVM类加载简介
面试汇总:为何大厂面试官总问 Framework 的底层原理?
MongoDB construction and basic operations
2021年11月网络规划设计师上午题知识点(上)
蓝牙Mesh系统开发五 ble mesh设备增加与移除
PCIe 核配置
GCC:屏蔽动态库之间的依赖
第十一章 开关级建模
linux(centOs7)部署mysql(8.0.20)数据库
动态规划/背包问题总结/小结——01背包、完全背包
OPENWIFI实践1:下载并编译SDRPi的HDL源码
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
主库预警日志报错ORA-00270