I want to build kdiff3 on windows; the first step is to install the KDE
Frameworks.
I tried to follow the instructions at
https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows, but
since I only have MS Visual Studio 2019 preview on my Win 10 machine this
didn't initially work (-> https://bugs.kde.org/show_bug.cgi?id=405662). After
a lot of hacking, I may have a version that does work.
However, there seem to be some residual problems. I'm also not sure if the
process has run to completion, though it looks as if it hasn't.
I'd appreciate any advice on how to interpret/debug/correct three problems.
PERMISSION PROBLEM
The most serious error came at the end. Here's the PowerShell transcript:
--------------------------------------------------------------
*** Action: post-qmerge for craft/craft-blueprints-kde ***
*** Craft all succeeded: craft/craft-blueprints-kde after 16 seconds ***
Traceback (most recent call last):
File "C:\Users\rdboylan\Documents\src\CraftRoot\\download\CraftBootstrap.py",
line 276, in <module>
setUp(args)
File "C:\Users\rdboylan\Documents\src\CraftRoot\\download\CraftBootstrap.py",
line 245, in setUp
shutil.rmtree(os.path.join(args.prefix, f"craft-{args.branch}"))
File "C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Python37_64\lib\shutil.py", line 513, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Python37_64\lib\shutil.py", line 392, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Python37_64\lib\shutil.py", line 392, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Python37_64\lib\shutil.py", line 392, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Python37_64\lib\shutil.py", line 397, in _rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Python37_64\lib\shutil.py", line 395, in _rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied:
'C:\\Users\\rdboylan\\Documents\\src\\CraftRoot\\craft-master\\.git\\objects\\pack\\pack-4969c0e6eb29b4eb9bdb70e0a0397e1a1b7ffe48.idx'
------------------------------------------------
Could this be the result of Windows Explorer or its git gui somehow locking the
file? It seems a little odd the problem arose after many other packages
succeeded.
I was not running with admin rights.
I assume this error prevented finishing the install properly, though since the
last real message was "Craft all succeeded" I'm not totally sure.
DOWNLOADS FAIL BUT BUILD CONTINUES
I'm not sure what to make of these. E.g.,
========================================================================================================================
*** Handling package: dev-utils/wget, action: all ***
*** Action: fetch-binary for dev-utils/wget ***
executing command: C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe
-NoProfile -ExecutionPolicy ByPass -Command
[Net.ServicePointManager]::SecurityProtocol =
[Net.SecurityProtocolType]::Tls12; (new-object
net.webclient).DownloadFile("https://files.kde.org/craft/master/Qt_5.12.0/windows/msvc2019_64/cl/RelWithDebInfo/manifest.json",
"C:\Users\rdboylan\AppData\Local\Temp\tmpgxnf_35g\manifest.json")
Exception calling "DownloadFile" with "2" argument(s): "The remote server
returned an error: (404) Not Found."
At line:1 char:82
+ ... pe]::Tls12; (new-object net.webclient).DownloadFile("https://files.kd ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
executing command: C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe
-NoProfile -ExecutionPolicy ByPass -Command
[Net.ServicePointManager]::SecurityProtocol =
[Net.SecurityProtocolType]::Tls12; (new-object
net.webclient).DownloadFile("https://files.kde.org/craft/master/Qt_5.12.0/windows/msvc2019_64/cl/Release/manifest.json",
"C:\Users\rdboylan\AppData\Local\Temp\tmpgw_yatou\manifest.json")
Exception calling "DownloadFile" with "2" argument(s): "The remote server
returned an error: (404) Not Found."
At line:1 char:82
+ ... pe]::Tls12; (new-object net.webclient).DownloadFile("https://files.kd ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
*** dev-utils/wget not found in cache ***
*** Action: fetch for dev-utils/wget ***
executing command: C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe
-NoProfile -ExecutionPolicy ByPass -Command
[Net.ServicePointManager]::SecurityProtocol =
[Net.SecurityProtocolType]::Tls12; (new-object
net.webclient).DownloadFile("http://downloads.sourceforge.net/sourceforge/tumagcc/wget-1.18_curl-7.49.1_win32_win64.7z",
"C:\Users\rdboylan\Documents\src\CraftRoot\download\archives\dev-utils\wget\wget-1.18_curl-7.49.1_win32_win64.7z")
*** Action: unpack for dev-utils/wget ***
executing command:
C:\Users\rdboylan\Documents\src\CraftRoot\dev-utils\bin\7za.exe x -r -y
-oC:\Users\rdboylan\Documents\src\CraftRoot\build\_\15501309
C:\Users\rdboylan\Documents\src\CraftRoot\download\archives\dev-utils\wget\wget-1.18_curl-7.49.1_win32_win64.7z
-t7z -bso2 -bsp1
*** Action: compile for dev-utils/wget ***
*** Action: cleanimage for dev-utils/wget ***
*** Action: install for dev-utils/wget ***
*** Action: post-install for dev-utils/wget ***
*** Action: qmerge for dev-utils/wget ***
*** Action: post-qmerge for dev-utils/wget ***
*** Craft all succeeded: dev-utils/wget after 10 seconds ***
========================================================================================================================
So it's looking for a file with msvc2019_64 as part of the path to download and
doesn't find it. Not surprising. Does the rest of the log mean it built wget
from source in place successfully, and all is good?
AVOIDING DOWNLOADS AND REBUILDS
The top level powershell installation script will not install in an existing
directory. That didn't matter so much at the start, but now that I've
downloaded and built almost 1GB I'd really like to avoid starting from scratch.
Once I resolve the issues above and want to proceed, is there a way to pick up
where I left off?
Thanks.
Ross