当前位置:网站首页>记录谷歌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 ...”的错误提示就没了。
边栏推荐
- 2021年11月网络规划设计师上午题知识点(下)
- KingbaseES V8 GIS数据迁移方案(2. Kingbase GIS能力介绍)
- Software testing interview questions: What stages should a complete set of tests consist of?
- PCIe Core Configuration
- 安装oracle11的时候为什么会报这个问题
- The principle of NMS and its code realization
- 新唐NUC980使用记录:在用户应用中使用GPIO
- 自定义线程池
- 从一次数据库误操作开始了解MySQL日志【bin log、redo log、undo log】
- Method Overriding and Object Class
猜你喜欢

OPENWIFI实践1:下载并编译SDRPi的HDL源码

KingbaseES V8 GIS数据迁移方案(2. Kingbase GIS能力介绍)

为什么他们选择和AI恋爱?
](/img/4d/2d81dc75433c23c5ba6b31453396f0.png)
二叉树[全解](C语言)

ora-01105 ora-03175

活动推荐 | 快手StreamLake品牌发布会,8月10日一起见证!

CNI(Container Network Plugin)

金仓数据库 KingbaseES V8 GIS数据迁移方案(3. 基于ArcGIS平台的数据迁移到KES)

LiveVideoStackCon 2022 Shanghai Station opens tomorrow!

金九银十面试跳槽季;你准备好了吗?
随机推荐
Pytorch使用和技巧
Software testing interview questions: How many types of software are there?
动态规划/背包问题总结/小结——01背包、完全背包
Methods commonly used interface automation test framework postman tests
ORA-00257
软件测试技术之最有效的七大性能测试技术
MongoDB搭建及基础操作
Difference between MBps and Mbps
ORA-00604 ORA-02429
Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
If capturable=False, state_steps should not be CUDA tensors
Binary tree [full solution] (C language)
面试汇总:为何大厂面试官总问 Framework 的底层原理?
【翻译】CNCF对OpenTracing项目的存档
(十七)51单片机——AD/DA转换
MongoDB construction and basic operations
超越YOLO5-Face | YOLO-FaceV2正式开源Trick+学术点拉满
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
仅3w报价B站up主竟带来1200w播放!品牌高性价比B站投放标杆!
GCC:屏蔽动态库之间的依赖