Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fontconfig fails to build with config error #1441

Open
saxonww opened this issue Sep 21, 2024 · 2 comments
Open

Fontconfig fails to build with config error #1441

saxonww opened this issue Sep 21, 2024 · 2 comments

Comments

@saxonww
Copy link

saxonww commented Sep 21, 2024

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
Copy link
Member

danyeaw commented Sep 21, 2024

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
Copy link
Author

saxonww commented Sep 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants