Open james2432 opened 4 years ago
Hi, I did fix up the libtorrent 1.2 and 1.1 build scripts in the buld menu, but the rest seems to be correct, can you send more info on the the bug? Where are you running it, what exactly are you trying to do? For the second it seems it could not change directory to C:\gtk-build\github\gvsbuild that is why it can't find the file to patch,
Just downloaded the lastest version. Windows 10, 2004
It might be that python executable is blocked for execution and needs to be unblocked in a script like powershell
You can unblock in command prompt via:
streams -d filename
command
Found the issue:
rem for /f %%i in ('curl -s https://www.python.org/ ^| grep "Latest: " ^| cut -d/ -f5 ^| cut -d" " -f2 ^| tr -d "<"') do set var2=%%i
set var2=3.8.5
curl -O https://www.python.org/ftp/python/%var2%/python-%var2%-amd64.exe
python-%var2%-amd64.exe /quiet InstallAllUsers=1 Include_test=0 InstallLauncherAllUsers=0 Include_launcher=0 TargetDir=C:\python
grep, cut, tr are not installed on windows.
Added:
to windows path
Installed python 3.8.5 as the python installer never works to C:\python
libtorrent seems to fail on finding __init.py__ now...
Edit: made some changes to batch files(PR) that weren't setting variables(problem still exists)
Edit2: init.py seemed to be a warning, the issue is that the destination folder didn't exist. Added code to create folder first in the PR. (may be a logic issue build order as if I input 1,3,5,6,8 it tried to build libtorrent before deluge which is what creates that structure)
libtorrent now builds, except that python is blocked from installing until you tell windows to unblock it manually(you may need script for that)
During the installer:
C:\WINDOWS\system32>"C:\Program Files (x86)\NSIS\makensis" /DPROGRAM_VERSION=deluge-2.0.3:~7% /Dsrcdir=C:\deluge2\C:\deluge2\deluge-2.0.3---py3.8.5-osslAt-GTK+ C:\deluge2\nsis\packaging\win32\deluge-installer.nsi
Command line defined: "PROGRAM_VERSION=deluge-2.0.3:~7%"
Command line defined: "srcdir=C:\deluge2\C:\deluge2\deluge-2.0.3---py3.8.5-osslAt-GTK+"
Processing config: C:\Program Files (x86)\NSIS\nsisconf.nsh
Can't open script "C:\deluge2\nsis\packaging\win32\deluge-installer.nsi"
Was able to finally build a working model from A-Z with the build-menu and the install pre-requisites by modifying the current batches. I've opened pull requests that fix missing files/patching files that point to the wrong location/generate file lists to install.
The only block is still that windows blocks the python executable that is downloaded and executed.
When I run build menu, selecting the things I want it comes back with
when running gvsbuild manually:
Seems to assume you are building on the C: drive as when I copied build menu there, it suddenly starts to work