Get a weird error about pkg-config when compile Cronet on Ubuntu-1804

14 views
Skip to first unread message

Berte Colin

unread,
Jun 13, 2019, 10:56:55 PM6/13/19
to grpc.io
Hey,  I try to compile the android version of Cronet on my Ubuntu-1804 host, 

and get the following error from pkg-config (v0.29.1),but I have no idea about how this happened,

thanks for your help.



# 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)",
      ^--------------------------------------------------------


Reply all
Reply to author
Forward
0 new messages