wingtk / gvsbuild

GTK stack for Windows
GNU General Public License v2.0
435 stars 164 forks source link

Fontconfig fails to build with config error #1441

Open saxonww opened 1 day ago

saxonww commented 1 day ago

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.

danyeaw commented 16 hours ago

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%

saxonww commented 9 hours ago

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