当前位置:网站首页>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.
边栏推荐
猜你喜欢

深度学习原理学习小结 - Self-Attention/Transformer

Day Fourteen & Postman

CNI(Container Network Plugin)

张驰咨询:揭晓六西格玛管理(6 Sigma)长盛不衰的秘密

深度学习:使用nanodet训练自己制作的数据集并测试模型,通俗易懂,适合小白

The use of pytorch: temperature prediction using neural networks

Countdown to 1 day!From August 2nd to 4th, I will talk with you about open source and employment!

MySQL3

多线程涉及的其它知识(死锁(等待唤醒机制),内存可见性问题以及定时器)

缺陷检测(图像处理部分)
随机推荐
深度学习训练前快速批量修改数据集中的图片名
【Unity入门计划】2D游戏中遮挡问题的处理方法&伪透视
硬实力和软实力,哪个对测试人来说更重要?
接口自动化测试框架postman tests常用方法
How DHCP works
【七夕如何根据情侣倾听的音乐进行薅羊毛】背景音乐是否会影响情侣对酒的选择
阶段性测试完成后,你进行缺陷分析了么?
JUC thread pool (1): FutureTask use
刷爆朋友圈,Alibaba出品亿级并发设计速成笔记太香了
Software Testing Interview Questions: What do test cases usually include?
如何创建rpm包
GCC: paths to header and library files
多线程涉及的其它知识(死锁(等待唤醒机制),内存可见性问题以及定时器)
pytorch的使用:卷积神经网络模块
Opencv - video frame skipping processing
oracle create tablespace
Gartner Hype Cycle:超融合技术将在2年内到达“生产力成熟期”
配置类总结
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExcep
手把手基于YOLOv5定制实现FacePose之《YOLO结构解读、YOLO数据格式转换、YOLO过程修改》