我正在尝试在Ubuntu-1804主机上编译Cronet
的Android版本,并且从pkg-config
(v0.29.1)得到以下错误,但是我不知道关于这是怎么发生的,
感谢您的帮助。
# sudo ./components/cronet/tools/cr_cronet.py gn --out_dir=out/Cronet-android
Namespace(asan=False, command='gn', iphoneos=False, out_dir='out/Cronet-android', release=False, x86=False)
[]
['gn', 'gen', 'out/Cronet-android', '--args=target_os="android" enable_websockets=false disable_file_support=true disable_ftp_support=true disable_brotli_filter=false is_component_build=false use_crash_key_stubs=true ignore_elf32_limitations=true use_partition_alloc=false include_transport_security_state_preload_list=false use_platform_icu_alternatives=true use_errorprone_java_compiler=true enable_reporting=true use_hashed_jni_names=true arm_use_neon=false '] {}
ERROR at dynamically parsed input that //build/config/linux/pkg_config.gni:103:17 loaded :2:3: Invalid token.
(['pkg-config', '--variable=prefix', 'glib-2.0', 'gmodule-2.0', 'gobject-2.0', 'gthread-2.0'],)
^
Strings are delimited by " characters, not apostrophes.
See //build/config/linux/BUILD.gn:89:3: whence it was called.
pkg_config("glib") {
^-------------------
See //BUILD.gn:1244:7: which caused the file to be included.
"//build/config/linux(//build/toolchain/linux:clang_x86)",