Build with meson on windows 11 with VS 2022 error: SSL: CERTIFICATE_VERIFY_FAILED

I tried to compile GTK 4.14.6 on Windows 11 using the following Meson command:

meson . _build --prefix=C:\GTK\release --libdir=lib -Dcpp_std=c++17 -Dvulkan=disabled -Dintrospection=disabled -Dmedia-gstreamer=disabled -Dpixman:tests=disabled -Dglib:tests=false -Dx11-backend=false -Dbuild-tests=false -Dbuild-demos=true -Dbuild-examples=true -Dx11-backend=false -Dwayland-backend=false --buildtype=release -Dc_std=c11

After some time, I encountered this error:

Downloading libjpeg-turbo source from https://sourceforge.net/projects/libjpeg-turbo/files/2.1.3/libjpeg-turbo-2.1.3.tar.gz
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>

I am using Python 3.11.9 with Meson and Ninja scripts. I installed Git from the web, and all the necessary commands are available in my system PATH.

I tried installing certificates for Python, but no matter what I do, I keep getting this error. Interestingly, the sources from GitLab are downloaded without any issues; the failure occurs only with files from SourceForge. On macOS, I just run the “Install Certificates.command” that comes with Python, and it works perfectly. Unfortunately, there is no equivalent command for Windows. Does anyone know how to resolve this?

That’s a question for the libjpeg-turbo developers; libjpeg-turbo is not a GNOME project.

Strictly speaking, this is not a question about libjpeg-turbo . The issue is about setting up Windows certificates for downloading the packages required by the GTK compilation process. Libjpeg-turbo has nothing to do with how it is accessed or downloaded. I really need help with this and hope someone can assist. Currently, the compilation process is only working on one of my Windows 10 machines, which I will soon need for other tasks. I’m hoping to find a solution soon.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.