because of a neccessary patch which needs to be applied on the qt-version i am using for one of my current projects, i need to rebuild QT from source myself on Windows 10. Since this has never been a problem until now, i am a littel bit lost what my problem may could be. I have already tried to use the exact way which is given on https://wiki.qt.io/Building_Qt_6_from_Git, but this also gives me the following error:
D:QTqt6.7.1-build>cmake --build .
[38/11678] Linking CXX executable qtactiveqtexamplesactiveqtcomappcomapp.exe
FAILED: qtactiveqt/examples/activeqt/comapp/comapp.exe
cmd.exe /C "cd . && "E:Program FilesCMakebincmake.exe" -E vs_link_exe --intdir=qtactiveqtexamplesactiveqtcomappCMakeFilescomapp.dir --rc=C:PROGRA~2WI3CF2~110bin100226~1.0x64rc.exe --mt=C:PROGRA~2WI3CF2~110bin100226~1.0x64mt.exe --manifests -- "E:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.40.33807binHostx64x64link.exe" /nologo qtactiveqtexamplesactiveqtcomappCMakeFilescomapp.dircomapp_autogenmocs_compilation.cpp.obj qtactiveqtexamplesactiveqtcomappCMakeFilescomapp.dirmain.cpp.obj qtactiveqtexamplesactiveqtcomappCMakeFilescomapp.dircomapp.rc.res /out:qtactiveqtexamplesactiveqtcomappcomapp.exe /implib:qtactiveqtexamplesactiveqtcomappcomapp.lib /pdb:qtactiveqtexamplesactiveqtcomappcomapp.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL:NO /subsystem:windows qtbaselibQt6AxServer.lib qtbaselibQt6AxBase.lib advapi32.lib gdi32.lib ole32.lib oleaut32.lib user32.lib qtbaselibQt6Widgets.lib qtbaselibQt6Gui.lib d3d11.lib dxgi.lib dxguid.lib d3d12.lib qtbaselibQt6Core.lib mpr.lib userenv.lib qtbaselibQt6EntryPoint.lib shell32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cmd.exe /C "cd /D D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtcomapp && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/comapp/comapp.exe /idl D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/comapp/comappRelWithDebInfo.idl -version 1.0 && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat midl D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/comapp/comappRelWithDebInfo.idl /nologo /tlb D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/comapp/comappRelWithDebInfo.tlb && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/comapp/comapp.exe /tlb D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/comapp/comappRelWithDebInfo.tlb && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/comapp/comapp.exe /regserver""
[...]
Type library attached to D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtcomappcomapp.exe.
"D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtcomappcomapp.exe -regserver" returned exit code: 2147647516 (0x8002801c)
Failed to register server!
[39/11678] Linking CXX executable qtactiveqtexamplesactiveqtsimplesimpleax.exe
FAILED: qtactiveqt/examples/activeqt/simple/simpleax.exe
cmd.exe /C "cd . && "E:Program FilesCMakebincmake.exe" -E vs_link_exe --intdir=qtactiveqtexamplesactiveqtsimpleCMakeFilessimpleax.dir --rc=C:PROGRA~2WI3CF2~110bin100226~1.0x64rc.exe --mt=C:PROGRA~2WI3CF2~110bin100226~1.0x64mt.exe --manifests -- "E:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.40.33807binHostx64x64link.exe" /nologo qtactiveqtexamplesactiveqtsimpleCMakeFilessimpleax.dirsimpleax_autogenmocs_compilation.cpp.obj qtactiveqtexamplesactiveqtsimpleCMakeFilessimpleax.dirmain.cpp.obj qtactiveqtexamplesactiveqtsimpleCMakeFilessimpleax.dirsimple.rc.res /out:qtactiveqtexamplesactiveqtsimplesimpleax.exe /implib:qtactiveqtexamplesactiveqtsimplesimpleax.lib /pdb:qtactiveqtexamplesactiveqtsimplesimpleax.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL:NO /subsystem:windows qtbaselibQt6AxServer.lib qtbaselibQt6AxBase.lib advapi32.lib gdi32.lib ole32.lib oleaut32.lib user32.lib qtbaselibQt6Widgets.lib qtbaselibQt6Gui.lib d3d11.lib dxgi.lib dxguid.lib d3d12.lib qtbaselibQt6Core.lib mpr.lib userenv.lib qtbaselibQt6EntryPoint.lib shell32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cmd.exe /C "cd /D D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtsimple && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/simple/simpleax.exe /idl D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/simple/simpleaxRelWithDebInfo.idl -version 1.0 && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat midl D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/simple/simpleaxRelWithDebInfo.idl /nologo /tlb D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/simple/simpleaxRelWithDebInfo.tlb && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/simple/simpleax.exe /tlb D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/simple/simpleaxRelWithDebInfo.tlb && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/simple/simpleax.exe /regserver""
[...]
Type library attached to D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtsimplesimpleax.exe.
"D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtsimplesimpleax.exe -regserver" returned exit code: 2147647516 (0x8002801c)
Failed to register server!
[40/11678] Linking CXX shared library qtactiveqtexamplesactiveqtwrapperwrapperax.dll
FAILED: qtactiveqt/examples/activeqt/wrapper/wrapperax.dll qtactiveqt/examples/activeqt/wrapper/wrapperax.lib
cmd.exe /C "cd . && "E:Program FilesCMakebincmake.exe" -E vs_link_dll --intdir=qtactiveqtexamplesactiveqtwrapperCMakeFileswrapperax.dir --rc=C:PROGRA~2WI3CF2~110bin100226~1.0x64rc.exe --mt=C:PROGRA~2WI3CF2~110bin100226~1.0x64mt.exe --manifests -- "E:Program FilesMicrosoft Visual Studio2022CommunityVCToolsMSVC14.40.33807binHostx64x64link.exe" /nologo qtactiveqtexamplesactiveqtwrapperCMakeFileswrapperax.dirwrapperax_autogenmocs_compilation.cpp.obj qtactiveqtexamplesactiveqtwrapperCMakeFileswrapperax.dirmain.cpp.obj qtactiveqtexamplesactiveqtwrapperCMakeFileswrapperax.dirwrapperax.rc.res /out:qtactiveqtexamplesactiveqtwrapperwrapperax.dll /implib:qtactiveqtexamplesactiveqtwrapperwrapperax.lib /pdb:qtactiveqtexamplesactiveqtwrapperwrapperax.pdb /dll /version:0.0 /machine:x64 /debug /INCREMENTAL:NO /DEF:D:QTqt_GITqtactiveqtexamplesactiveqtwrapperwrapperax.def qtbaselibQt6AxServer.lib shell32.lib qtbaselibQt6AxBase.lib advapi32.lib gdi32.lib ole32.lib oleaut32.lib user32.lib qtbaselibQt6Widgets.lib qtbaselibQt6Gui.lib d3d11.lib dxgi.lib dxguid.lib d3d12.lib qtbaselibQt6Core.lib mpr.lib userenv.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cmd.exe /C "cd /D D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtwrapper && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/wrapper/wrapperax.dll /idl D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/wrapper/wrapperaxRelWithDebInfo.idl -version 1.0 && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat midl D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/wrapper/wrapperaxRelWithDebInfo.idl /nologo /tlb D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/wrapper/wrapperaxRelWithDebInfo.tlb && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/wrapper/wrapperax.dll /tlb D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/wrapper/wrapperaxRelWithDebInfo.tlb && D:QTqt6.7.1-build.qtbinqt_setup_tool_path.bat D:/QT/qt6.7.1-build/qtbase/bin/idc.exe D:/QT/qt6.7.1-build/qtactiveqt/examples/activeqt/wrapper/wrapperax.dll /regserver""
[...]
Type library attached to D:QTqt6.7.1-buildqtactiveqtexamplesactiveqtwrapperwrapperax.dll.
Failing to register wrapperax due to insufficient permission.
Failed to register server!
[51/11678] Building CXX object qtchartssrcchartsCMakeFilesCharts.dirlegendqlegend.cpp.obj
ninja: build stopped: subcommand failed.
For compilation i am using the msvc-2022-Compiler and running all commands from the x64 VS-Developer-Shell. Because of the error messages i suggest this beeing a problem with file- or other permissions, but even changing these for my QT-Folders did not solve the problem. Maybe anyone here as an idea on how to solve this issue?