-
Notifications
You must be signed in to change notification settings - Fork 170
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
Build failed generating gtk/Gdk-4.0.gir #1115
Comments
Hi @ed10vi, I haven't tested your setup, but the thing that stands out to me is that you are using MSYS2 git instead of Git for Windows. Have you tried using Git for Windows? |
I tried this: certutil -generateSSTFromWU roots.sst
certutil -addstore -f root roots.sst
Invoke-WebRequest -OutFile python-installer.exe https://www.python.org/ftp/python/3.12.0/python-3.12.0-amd64.exe
.\python-installer.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0 Include_doc=0
$env:PATH = $env:PATH+";${env:ProgramFiles}\Python312;${env:ProgramFiles}\Python312\Scripts;${env:AppData}\Python\Python312;${env:AppData}\Python\Python312\Scripts"
Invoke-WebRequest -OutFile msys2-installer.exe https://github.com/msys2/msys2-installer/releases/download/2023-07-18/msys2-base-x86_64-20230718.sfx.exe
.\msys2-installer.exe -y -oC:\
$env:PATH = $env:PATH+";C:\msys64\usr\bin"
bash -lc 'pacman --noconfirm -Syu'
Invoke-WebRequest -OutFile min-git.zip https://github.com/git-for-windows/git/releases/download/v2.42.0.windows.2/MinGit-2.42.0.2-64-bit.zip
Expand-Archive min-git.zip -DestinationPath "${env:ProgramFiles}\git"
$env:PATH = $env:PATH+";${env:ProgramFiles}\git\cmd"
$gitconfig = Get-Content "${env:ProgramFiles}\git\etc\gitconfig"
Set-Content "${env:ProgramFiles}\git\etc\gitconfig" $gitconfig[0..($gitconfig.Count-3)]
python -m pip install --upgrade pip
python -m pip install --user setuptools
New-Item -ItemType Directory -Path C:\gtk-build -Name github
cd C:\gtk-build\github\
git clone https://github.com/wingtk/gvsbuild.git
cd .\gvsbuild\
python -m pip install --user .
gvsbuild build gtk4 --enable-gi --configuration release --platform x64 --vs-install-path "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2022\BuildTools" Same error Edit: Also tried installing python and git in C:\Pyrhon312 and C:\Git, and not adding MSYS2 to PATH Edit 2: tried building with
|
Hello. I'm trying to build GTK inside a Windows Container based on an image generated with this Dockerfile:
I'm following this steps:
And I'm getting the following error:
Without
--enable-gi
works fine.What am I doing wrong?
The text was updated successfully, but these errors were encountered: