chromeos build

60 views
Skip to first unread message

Thiago Farina

unread,
Jan 6, 2015, 7:09:58 PM1/6/15
to gn-dev
Is anyone getting this when trying the os=chromeos build?

$ gn gen --args='os="chromeos"' out_gn_chromeos/Debug 

ERROR at //build/config/linux/pkg_config.gni:66:17: Script returned non-zero exit code.
    pkgresult = exec_script(pkg_config_script, args, "value")
                ^----------
Current dir: /home/tfarina/chromium/src/out_gn_chromeos/Debug/
Command: python /home/tfarina/chromium/src/build/config/linux/pkg-config.py harfbuzz
Returned 1 and printed out:

Could not run pkg-config.

stderr:

Package harfbuzz was not found in the pkg-config search path.
Perhaps you should add the directory containing `harfbuzz.pc'
to the PKG_CONFIG_PATH environment variable
No package 'harfbuzz' found

See //third_party/harfbuzz-ng/BUILD.gn:44:3: whence it was called.
  pkg_config("harfbuzz_pkgconfig") {
  ^---------------------------------

The solution for me is to add use_system_harfbuzz=false to --args list.

--
Thiago Farina

James Robinson

unread,
Jan 6, 2015, 7:18:38 PM1/6/15
to Thiago Farina, gn-dev
I think I got this when running on Precise.  The answer was either use_system_harfbuzz=false or upgrade to Trusty.

Nico Weber

unread,
Jan 7, 2015, 12:13:49 AM1/7/15
to James Robinson, Thiago Farina, gn-dev
If this works in gyp but not in gn, this is probably a bug. The thread "Re: [chrome-os-desktopui] chromeos=1 flag with GN" on gn-dev suggests that mukai@ and cmasone@ were working on this at some point, they can probably review fixes.

Thiago Farina

unread,
Jan 7, 2015, 6:04:00 PM1/7/15
to Nico Weber, James Robinson, gn-dev
On Wed, Jan 7, 2015 at 3:13 AM, Nico Weber <tha...@chromium.org> wrote:
If this works in gyp but not in gn, this is probably a bug. The thread "Re: [chrome-os-desktopui] chromeos=1 flag with GN" on gn-dev suggests that mukai@ and cmasone@ were working on this at some point, they can probably review fixes.

Dirk Pranke

unread,
Jan 12, 2015, 8:31:18 PM1/12/15
to Thiago Farina, Nico Weber, James Robinson, gn-dev
Yeah, that is a bug, I think, and we should probably do the pkg-config check even if is_chromeos is true.

-- Dirk

Thiago Farina

unread,
Jan 12, 2015, 8:50:43 PM1/12/15
to Dirk Pranke, Nico Weber, James Robinson, gn-dev
On Mon, Jan 12, 2015 at 11:30 PM, Dirk Pranke <dpr...@chromium.org> wrote:
Yeah, that is a bug, I think, and we should probably do the pkg-config check even if is_chromeos is true.

OK, I put something up for review. https://codereview.chromium.org/846073005

It worked for me without having to pass use_system_harfbuzz=false in --args to 'gn gen'.

--
Thiago Farina
Reply all
Reply to author
Forward
0 new messages