当前位置:网站首页>记录谷歌gn编译时碰到的一个错误“I could not find a “.gn“ file ...”
记录谷歌gn编译时碰到的一个错误“I could not find a “.gn“ file ...”
2022-08-05 01:15:00 【chexlong】
应用谷歌gn+nijia,在ubuntu7.9上编译程序时,碰到这么一个错误提示
# 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.”
根据提示,应该是在当前目录缺少.gn文件。关键字搜索,stackoverflow上有人碰到过类似问题
selenium chromedriver - How to build with targets with Google Chromium GN? - Stack Overflow
其解决办法如下
按其步骤试了下,没用。
然后到gn demo程序里看了看,".gn"文件果然在demo程序里(注意,".gn"文件,使用ls命令查看不到,需要ll -a命令,才能查看到)
.gn文件内容为
# The location of the build configuration file.
buildconfig = "//build/BUILDCONFIG.gn"
将".gn"文件拷贝到工程当前目录,与“BUILD.gn”同一个目录,然后使用命令
gn gen out/
再编译程序,“I could not find a ".gn" file ...”的错误提示就没了。
边栏推荐
- Introduction to JVM class loading
- Three handshake and four wave in tcp
- BC(转)[js]js计算两个时间相差天数
- JVM类加载简介
- 从一次数据库误操作开始了解MySQL日志【bin log、redo log、undo log】
- 【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
- 第十一章 开关级建模
- 详细全面的postman接口测试实战教程
- 动态规划/背包问题总结/小结——01背包、完全背包
- Software Testing Interview Questions: Qualifying Criteria for Software Acceptance Testing?
猜你喜欢
随机推荐
工具类总结
手把手基于YOLOv5定制实现FacePose之《YOLO结构解读、YOLO数据格式转换、YOLO过程修改》
Inter-process communication and inter-thread communication
Creative code confession
第十四天&postman
Lattice PCIe Learning 1
Exercise: Selecting a Structure (1)
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
详细全面的postman接口测试实战教程
The principle of NMS and its code realization
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
DDOS攻击真的是无解吗?不!
Is DDOS attack really unsolvable?Do not!
Methods commonly used interface automation test framework postman tests
Software Testing Interview Questions: What do test cases usually include?
面试汇总:为何大厂面试官总问 Framework 的底层原理?
LiveVideoStackCon 2022 上海站明日开幕!
创意代码表白
阶段性测试完成后,你进行缺陷分析了么?
ORA-00604 ORA-02429