Building unit tests.

48 views
Skip to first unread message

Bram Stolk

unread,
Oct 10, 2022, 1:50:31 PM10/10/22
to Chromium-dev
I have been able to build chromium for linux, on Ubuntu using this guide:

Subsequently, I want to build unit tests.

Specifically, I want to build vaapi_unittest.

But doing so, fails for me. First it failed on missing TTF fonts, but adding those to third_party/test_fonts/test_fonts/ I now get: generate_fontconfig_caches failed with exit code 1

$ autoninja vaapi_unittest
[25/1011] CXX obj/ui/base/x/x/x11_util.o
...
[789/1009] ACTION //third_party/test_fonts/fontconfig:do_generate_fontconfig_caches(//build/toolchain/linux:clang_x64)
FAILED: fontconfig_caches/fb5c91b2895aa445d23aebf7f9e2189c-le64.cache-7
python3 ../../build/gn_run_binary.py generate_fontconfig_caches
generate_fontconfig_caches failed with exit code 1
[802/1009] CXX obj/media/gpu/chromeos/chromeos/video_decoder_pipeline.o
ninja: build stopped: subcommand failed.

Two questions:
1)  What makes the commadn fail.
2) I am surprised that vaapi_unittest could depend on fonts. How do I remove that dependency, and try building without fonts?

Thanks!

Bram Stolk

unread,
Oct 11, 2022, 1:20:19 PM10/11/22
to Chromium-dev
This was caused by this entry in my args.gn

use_bundled_fontconfig = false

When I changed it to true, the unit test builds.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to a topic in the Google Groups "Chromium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-dev/mRaHxLOoGgI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/904f2584-17ef-4b2e-ae07-3f60fee0f6e7n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages