当前位置:网站首页>记录谷歌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 ...”的错误提示就没了。
边栏推荐
- 2022 Hangzhou Electric Power Multi-School Session 3 K Question Taxi
- Opencv - video frame skipping processing
- Knowledge Points for Network Planning Designers' Morning Questions in November 2021 (Part 1)
- 创意代码表白
- Software Testing Interview Questions: What do test cases usually include?
- 超越YOLO5-Face | YOLO-FaceV2正式开源Trick+学术点拉满
- Difference between MBps and Mbps
- 【翻译】CNCF对OpenTracing项目的存档
- JUC线程池(一): FutureTask使用
- 为什么他们选择和AI恋爱?
猜你喜欢
JUC thread pool (1): FutureTask use
阶段性测试完成后,你进行缺陷分析了么?
【TA-霜狼_may-《百人计划》】图形4.3 实时阴影介绍
IJCAI2022 | DictBert:采用对比学习的字典描述知识增强的预训练语言模型
The use of pytorch: temperature prediction using neural networks
Dynamic Programming/Knapsack Problem Summary/Summary - 01 Knapsack, Complete Knapsack
张驰咨询:揭晓六西格玛管理(6 Sigma)长盛不衰的秘密
硬实力和软实力,哪个对测试人来说更重要?
Helm Chart
Day Fourteen & Postman
随机推荐
VOC格式数据集转COCO格式数据集
2021年11月网络规划设计师上午题知识点(上)
为什么他们选择和AI恋爱?
ora-01105 ora-03175
tcp中的三次握手与四次挥手
5. PCIe official example
day14--postman interface test
内存取证系列1
CMS建站流程
测试工作这么难找吗?今年32,失业2个月,大龄测试工程师接下来该拿什么养家?
DDOS攻击真的是无解吗?不!
(十七)51单片机——AD/DA转换
Kubernetes 网络入门
Software testing interview questions: the difference and connection between black box testing, white box testing, and unit testing, integration testing, system testing, and acceptance testing?
行业现状?互联网公司为什么宁愿花20k招人,也不愿涨薪留住老员工~
BC(转)[js]js计算两个时间相差天数
Lattice PCIe 学习 1
3. pcie.v 文件
JUC thread pool (1): FutureTask use
蓝牙Mesh系统开发四 ble mesh网关节点管理