gvsbuild icon indicating copy to clipboard operation
gvsbuild copied to clipboard

Fontconfig fails to build with config error

Open saxonww opened this issue 1 year ago • 2 comments

I'm using GitHub Actions to build an internal copy of GTK using gvsbuild. To do this, I've written an MSBuild project that does the following:

<Target Name="Build">
    <Exec Command="pip install gvsbuild" />
    <Exec Command="gvsbuild build gtk4 --platform $(PLATFORM) --build-dir $(BUILD_DIR)" />
</Target>

where PLATFORM is x64 or Win32.

I had intended to consume gvsbuild from a submodule, but obviously the above installs from pypi. I picked up 2024.9.0 today, and got an error about a missing fontconfig default config file.

See gist: https://gist.github.com/saxonww/237a33fdfd0209c55a025a5eb062e6cf

When I corrected the pip command to install the version from my submodule (2024.7.0), the build worked fine. So, I think something happened with the August or September release. I'm running this on a windows-2022 runner, selecting Python 3.12 and Visual Studio 2022.

Wondering if this is something people have seen before and what the appropriate fix is. I haven't really spent any time troubleshooting it myself.

saxonww avatar Sep 21 '24 01:09 saxonww

Hi @saxonww!

Do you have either the FONTCONFIG_FILE or FONTCONFIG_PATH environmental variables set?

From cmd.exe you could run: echo %FONTCONFIG_FILE% echo %FONTCONFIG_PATH%

danyeaw avatar Sep 21 '24 15:09 danyeaw

Hello @danyeaw, no not on purpose. I dumped the environment and neither are set at the beginning of the build.

saxonww avatar Sep 21 '24 22:09 saxonww