设置铬时出错
Posted
技术标签:
【中文标题】设置铬时出错【英文标题】:error while setting up chromium 【发布时间】:2018-02-17 16:05:05 【问题描述】:从源代码设置 chromium 时出现以下错误。
当我运行gn gen out/Default
gn gen out/Default
ERROR at //build/config/linux/pkg_config.gni:103:17: Script returned non-zero exit code.
pkgresult = exec_script(pkg_config_script, args, "value")
^----------
Current dir: /opt/apps/chromium/chromium_src/src/out/Default/
Command: python -- /opt/apps/chromium/chromium_src/src/build/config/linux/pkg-config.py -s /opt/apps/chromium/chromium_src/src/build/linux/debian_stretch_amd64-sysroot -a x64 nss -v -lssl3
Returned 1.
stderr:
Traceback (most recent call last):
File "/opt/apps/chromium/chromium_src/src/build/config/linux/pkg-config.py", line 232, in <module>
sys.exit(main())
File "/opt/apps/chromium/chromium_src/src/build/config/linux/pkg-config.py", line 139, in main
prefix = GetPkgConfigPrefixToStrip(options, args)
File "/opt/apps/chromium/chromium_src/src/build/config/linux/pkg-config.py", line 80, in GetPkgConfigPrefixToStrip
"--variable=prefix"] + args, env=os.environ)
File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
See //third_party/nss/BUILD.gn:15:3: whence it was called.
pkg_config("system_nss_no_ssl_config")
^---------------------------------------
See //crypto/BUILD.gn:221:25: which caused the file to be included.
public_configs += [ "//third_party/nss:system_nss_no_ssl_config" ].
我不知道如何解决这个问题。
我关注了https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md
还提到了这些https://groups.google.com/a/chromium.org/forum/#!topic/chromium-os-dev/360e3QsLH-8https://groups.google.com/a/chromium.org/forum/#!msg/chromium-os-dev/nM7Af-sJP_I/YoqXPgZ0BQAJ
无法获得太多细节。
这些讨论参考了PKG_CONFIG_LIBDIR
,但不清楚在哪里设置或准确使用它。
关于我可能缺少的任何输入?
【问题讨论】:
【参考方案1】:我通过安装这个包解决了同样的问题
sudo apt-get update && sudo apt-get install pkg-config
【讨论】:
对于 v8,您可以运行./build/install-build-deps.sh
【参考方案2】:
我遇到了同样的问题,我还尝试了@Rajan Palani 提到的sudo apt-get update && sudo apt-get install pkg-config
和许多其他 git 问题 cmets。
但就我而言
sudo apt install libpango1.0-dev
sudo apt install libcogl-pango-dev
sudo apt install libjpeg-dev
以上命令帮助我解决问题
来源: https://programmer.group/how_to_build_chromium_project_for_linux.html
【讨论】:
以上是关于设置铬时出错的主要内容,如果未能解决你的问题,请参考以下文章