client-building
client-building copied to clipboard
Error 1083 when compiling on Windows 10
Error:C:\Nextcloud\client-building\desktop\src\gui\accountsettings.cpp(20): fatal error C1083: 无法打开包括文件: “ui_accountsettings.h”: No such file or directory
--- START: C:\Nextcloud\client-building\task-build-log.bat - 2023-11-02 15:13:06 --- "***** Build started. (build.bat)" "* BUILD_TYPE=Release" "* BUILD_TARGETS=Win64" "***** build desktop." "**** build desktop for Win64 (build-desktop.bat)." "*** Build: desktop (single-build-desktop.bat)" "* APP_NAME=Nextcloud" "* USE_BRANDING=0" "* BUILD_TYPE=Release" "* BUILD_ARCH=Win64" "* CMAKE_GENERATOR=Ninja" "* CMAKE_EXTRA_FLAGS_DESKTOP=" "* PROJECT_PATH=c:/Nextcloud/client-building" "* QT_PREFIX=C:\CraftRoot" "* QT_PATH=C:\CraftRoot" "* QT_BIN_PATH=C:\CraftRoot\bin" "* VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC" "* Png2Ico_EXECUTABLE=c:/Nextcloud/tools/png2ico.exe" "* Build date 20231102" "* VERSION_SUFFIX daily-Win64" "* TAG master" "* PULL_DESKTOP 1" "* CHECKOUT_DESKTOP 1" "* BUILD_UPDATER OFF" "* BUILD_INSTALLER_MSI 1" "* MY_REPO=c:/Nextcloud/client-building/desktop" "* MY_BUILD_PATH=c:/Nextcloud/client-building/desktop/build" "* MY_INSTALL_PATH=c:/Nextcloud/client-building/install/Release/Win64" "* MY_QT_DEPLOYMENT_PATH=c:/Nextcloud/client-building/install/Release/Win64/qt-libs" "* PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\CraftRoot\bin;C:\CraftRoot\dev-utils\bin;C:\Users\tianyanjing\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\tianyanjing\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\Extensions\Microsoft\IntelliCode\CLI;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\devinit;C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Nextcloud\tools\cmake-3.26.5\bin;C;C:\Github\vcpkg;C:\Qt\5.15.2\msvc2019_64\bin;C:\Program Files\Python39;C:\OpenSSL\Win64\bin;C:\cygwin64\bin;C:\Users\tianyanjing\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\Llvm\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl"
** Visual Studio 2019 Developer Command Prompt v16.11.29 ** Copyright (c) 2021 Microsoft Corporation
[vcvarsall.bat] Environment initialized for: 'x64'
"* Remove old installation files c:/Nextcloud/client-building/install/Release/Win64 from previous build."
"* Remove old dependencies files c:/Nextcloud/client-building/install/Release/Win64/qt-libs from previous build."
"* Remove c:/Nextcloud/client-building/desktop/build/CMakeFiles from previous build."
"* Run cmake with CMAKE_INSTALL_PREFIX and CMAKE_BUILD_TYPE set at c:/Nextcloud/client-building/desktop/build."
-- The C compiler identification is MSVC 19.29.30151.0
-- The CXX compiler identification is MSVC 19.29.30151.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build of crashreporter disabled.
-- GIT_SHA1 570e9fafd8eb1b1381c5c280e3c8ed69b41e6ac9
Compiling without updater
-- Could NOT find Sphinx (missing: SPHINX_EXECUTABLE)
-- Could NOT find PdfLatex (missing: PDFLATEX_EXECUTABLE)
-- Found OpenSSL: optimized;C:/CraftRoot/lib/libcrypto.lib;debug;C:/OpenSSL/Win64/lib/VC/libcrypto64MDd.lib (found suitable version "3.1.4", minimum required is "1.1")
-- Found ZLIB: C:/CraftRoot/lib/zlib.lib (found version "1.3.#define ZLIB_VERSION "1.3"")
-- Using Qt 5.15.10 (C:/CraftRoot/bin/qmake.exe)
-- Found SQLite3: C:/CraftRoot/lib/sqlite3.lib (Required is at least version "3.8.0")
-- Looking for argp.h
-- Looking for argp.h - not found
-- Looking for nanosleep in rt
-- Looking for nanosleep in rt - not found
-- Looking for argp_parse in argp
-- Looking for argp_parse in argp - not found
-- Looking for utimes
-- Looking for utimes - not found
-- Looking for lstat
-- Looking for lstat - not found
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
list of plugins suffix;cfapi;xattr
discovery suffix
C:/Nextcloud/client-building/desktop/src/libsync/vfs/suffix
C:/Nextcloud/client-building/desktop/src/libsync/vfs/suffix suffix
-- Added vfsPlugin without tests: suffix
discovery cfapi
C:/Nextcloud/client-building/desktop/src/libsync/vfs/cfapi
C:/Nextcloud/client-building/desktop/src/libsync/vfs/cfapi cfapi
-- Found Png2Ico: C:/Nextcloud/tools/png2ico.exe
CMake Warning (dev) at C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(Icotool)
does not match the name of the calling package (IcoTool). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindIcotool.cmake:44 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/ECMAddAppIcon.cmake:205 (find_package)
src/libsync/vfs/cfapi/shellext/CMakeLists.txt:36 (ecm_add_app_icon)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Icotool: C:/CraftRoot/dev-utils/bin/icotool.exe (found version "0.32.3")
CMake Warning (dev) at C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(Icotool)
does not match the name of the calling package (IcoTool). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindIcotool.cmake:44 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/ECMAddAppIcon.cmake:205 (find_package)
src/libsync/vfs/cfapi/shellext/CMakeLists.txt:40 (ecm_add_app_icon)
This warning is for project developers. Use -Wno-dev to suppress it.
CUSTOM_STATE_ICON_LOCKED_OUT: ;C:/Nextcloud/client-building/desktop/build/src/libsync/vfs/cfapi/shellext/0-locked.rc
CUSTOM_STATE_ICON_SHARED_OUT: ;C:/Nextcloud/client-building/desktop/build/src/libsync/vfs/cfapi/shellext/1-shared.rc
Setting WindowsSdkDir from ENV{WindowsSdkDir
WindowsSdkLatest has been set to: 10.0.19041.0
WindowsFoundationContractVersion has been set to: 4.0.0.0
WindowsStorageProviderCloudFilesContractVersion has been set to: 4.0.0.0
WindowsSdkDir has been set to: C:\Program Files (x86)\Windows Kits\10
WindowsSdkList has been set to: 10.0.14393.0;10.0.15063.0;10.0.16299.0;10.0.17134.0;10.0.18362.0;10.0.19041.0
WindowsSdkLatest has been set to: 10.0.19041.0
cppWinRtExe: C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\cppwinrt.exe
midlExe: C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\midl.exe
CUSTOM_STATE_ICON_LOCKED_OUT: ;C:/Nextcloud/client-building/desktop/build/src/libsync/vfs/cfapi/shellext/0-locked.rc
CUSTOM_STATE_ICON_SHARED_OUT: ;C:/Nextcloud/client-building/desktop/build/src/libsync/vfs/cfapi/shellext/1-shared.rc
Adding C:/Nextcloud/client-building/desktop/build/src/libsync/vfs/cfapi/shellext/CfApiShellExtensions.rc...
-- Added vfsPlugin without tests: cfapi
discovery xattr
C:/Nextcloud/client-building/desktop/src/libsync/vfs/xattr
C:/Nextcloud/client-building/desktop/src/libsync/vfs/xattr xattr
-- Added vfsPlugin without tests: xattr
Generating state icons from SVG in path: C:/Nextcloud/client-building/desktop/theme/colored/
Generating state icons from SVG in path: C:/Nextcloud/client-building/desktop/theme/black/
Generating state icons from SVG in path: C:/Nextcloud/client-building/desktop/theme/white/
CMake Warning (dev) at C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(Icotool)
does not match the name of the calling package (IcoTool). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindIcotool.cmake:44 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/ECMAddAppIcon.cmake:205 (find_package)
src/gui/CMakeLists.txt:460 (ecm_add_app_icon)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args
(Icotool)
does not match the name of the calling package (IcoTool). This can lead to
problems in calling code that expects find_package
result variables
(e.g., _FOUND
) to follow a certain pattern.
Call Stack (most recent call first):
C:/CraftRoot/dev-utils/cmake-base/share/cmake-3.23/Modules/FindIcotool.cmake:44 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/modules/ECMAddAppIcon.cmake:205 (find_package)
src/gui/CMakeLists.txt:487 (ecm_add_app_icon)
This warning is for project developers. Use -Wno-dev to suppress it.
APP_ICON is: ;C:/Nextcloud/client-building/desktop/build/src/gui/Nextcloud.rc
Merging C:/Nextcloud/client-building/desktop/build/src/gui/Nextcloud-win-folder.rc.in into ;C:/Nextcloud/client-building/desktop/build/src/gui/Nextcloud.rc.in
APPLICATION_FOLDER_ICON_INDEX is now set to: 1
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found version "1.9.8 (c2fe5c3e4986974eb2a97608b24086683502f07f)") found components: doxygen missing components: dot
-- WiX Toolset SDK path: C:\Program Files (x86)\WiX Toolset v3.11/SDK/VS2017
-- Found CMocka: C:/Github/vcpkg/packages/cmocka_x64-windows/lib/cmocka.lib
-- The following OPTIONAL packages have been found:
- Qt5WebChannel (required version >= 5.15.2)
- Qt5Positioning (required version >= 5.15.2)
- Qt5WebEngineCore (required version >= 5.15.2)
- Qt5PrintSupport (required version >= 5.15.2)
- Qt5LinguistTools
- Png2Ico, Executable that converts a collection of PNG files into a Windows icon file, <http://www.winterdrache.de/freeware/png2ico/ or https://projects.kde.org/projects/kdesupport/kdewin>
- IcoTool
- Doxygen
- CMocka
-- The following REQUIRED packages have been found:
- OpenSSL (required version >= 1.1)
- ZLIB
- Qt5Concurrent (required version >= 5.15.0), Qt5 Concurrent component.
- Qt5WebEngineWidgets (required version >= 5.15.0), Qt5 WebEngineWidgets component.
- Qt5WebEngine (required version >= 5.15.0), Qt5 WebEngine component.
- Qt5Keychain
- SQLite3 (required version >= 3.8.0)
- Qt5WebSockets
- Qt5Widgets
- Qt5Svg
- Qt5QuickControls2
- KF5Archive
- Qt5Core, Qt5 Core component.
- Qt5Test
- Qt5Xml, Qt5 Xml component.
- Qt5Network, Qt5 Network component.
- Qt5Qml
- Qt5QmlModels (required version >= 5.15.2)
- Qt5Gui (required version >= 5.15.2)
- Qt5Quick
- Qt5
-- The following OPTIONAL packages have not been found:
- Sphinx
- PdfLatex
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Nextcloud/client-building/desktop/build
"* Run cmake to compile and install."
[1/590] Creating generated files from customstateprovider.idl
Microsoft (R) 32b/64b MIDLRT Compiler Engine Version 10.00.0229
Copyright (c) Microsoft Corporation. All rights reserved.
64 bit MIDLRT Processing C:\Nextcloud\client-building\desktop\src\libsync\vfs\cfapi\shellext\customstateprovider.idl
customstateprovider.idl
64 bit MIDLRT Processing C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt\winrtbase.idl
winrtbase.idl
64 bit MIDLRT Processing C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt\midlbase.idl
midlbase.idl
Processing WinMD c:\program files (x86)\windows kits\10\references\10.0.19041.0\windows.foundation.foundationcontract\4.0.0.0\windows.foundation.foundationcontract.winmd
Processing WinMD c:\program files (x86)\windows kits\10\references\10.0.19041.0\windows.storage.provider.cloudfilescontract\4.0.0.0\windows.storage.provider.cloudfilescontract.winmd
tool: C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\cppwinrt.exe
ver: 2.0.190620.2
in: C:\Nextcloud\client-building\desktop\build\src\libsync\vfs\cfapi\shellext\Generated\CustomStateProvider.winmd
ref: C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.19041.0\Windows.winmd
out: C:\Nextcloud\client-building\desktop\build\src\libsync\vfs\cfapi\shellext\Generated\
cout: C:\Nextcloud\client-building\desktop\build\src\libsync\vfs\cfapi\shellext\Generated\
time: 77ms
[2/590] Automatic MOC for target nextcloud_csync [3/590] Building CXX object admin\win\tools\NCMsiHelper\CMakeFiles\NCMsiHelper64.dir\LogResult.cpp.obj ............................
Help !
Help
I would try to just compile the client first without the client-building scripts. This error could be for a number of reasons...