Bug 462999

Summary: Impossible to install on Windows, VS22
Product: [Unmaintained] Craft Reporter: diego.giuseppetti
Component: CoreAssignee: Hannah von Reth <vonreth>
Status: RESOLVED FIXED    
Severity: major CC: christoph, kde-windows
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Terminal output
Terminal output --verbose, Last lines

Description diego.giuseppetti 2022-12-13 13:23:26 UTC
Created attachment 154559 [details]
Terminal output

SUMMMARY 
Can't install Craft becauseof 2 types of errors.
Full terminal output as attachment

Error 1: Could not find needed files in the following links, the internet connection is private and works fine.

Could not find dev-utils/cmake-base=3.23.3 in https://files.kde.org/craft/master/22.11/windows/cl/msvc2022/x86_64/RelWithDebInfo

Could not find dev-utils/cmake-base=3.23.3 in https://files.kde.org/craft/master/22.11/windows/cl/msvc2022/x86_64/Release

Error 2: Error during uncompressing of fetched Files



STEPS TO REPRODUCE
run commands from the official guide:
1. Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
2. iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/KDE/craft/master/setup/install_craft.ps1'))

It throws an error because i have Visual Studio 2022 installed on my machine instead of 2019, so I enabled my version doing the following step:

3. uncomment line: 199 " ("Microsoft Visual Studio 2022", ("msvc2022", "cl")), " in CraftBootstrap.py
4. run the following command to install craft:  C:\python36\python.exe .\CraftBootstrap.py

OBSERVED RESULT
Impossible to install Craft

EXPECTED RESULT
Craft installed

SOFTWARE/OS VERSIONS
Windows: 11: 21H2 Build: 22000.1281
Only Security Updates
Comment 1 diego.giuseppetti 2022-12-14 10:15:18 UTC
Created attachment 154579 [details]
Terminal output --verbose, Last lines
Comment 2 diego.giuseppetti 2022-12-14 10:17:40 UTC
By executing the installation in verbose mode i found that are missing a couple of packages: 7za and snoretoast.
From the last attachment you can read the output of the last few lines
Comment 3 Christoph Cullmann 2024-09-21 20:18:16 UTC
For me the official howto works with the current state.