nextcloud / nextcloud/client-building
Build script fails to build nextcloud client on Windows 10 - Qt 5.15.2
Nobody has claimed this yet.
- Dominant language
- Batchfile
- Stars
- 40
- Forks
- 41
- Avg merge
- 8h 2m
- Merged PRs (30d)
- 2
Description
Hello Everyone,
It seems the current release is missing some important packages or it may lack some critical undocument steps.
Here is my enviroment versions:
- Windows 10 64bit
- Qt 5.15.2 both 32 and 64 bit
- Visual Studio 2019 both 32 and 64 bit
Steps to resolve some errors:
- Install doxygen-1.9.5 since it's is required by build.bat but undocument
- WIX variable is required example fix "export WIX="C:\Nextcloud\tools\wix""
- WiX headers are required and fixed by adding to
C:\Nextcloud\client-buildingdesktop\CMakeLists.txt:
set(INCLUDE_DIR "C:/Nextcloud/tools/wix/sdk/inc")
include_directories (${INCLUDE_DIR})
- Latest inkspace is required and fixed by installing `inkscape-1.2.1.msi'
- The last required component is KDE archive
F5Archiveand error is :
CMake Error at src/gui/CMakeLists.txt:3 (find_package):
Could not find a configuration file for package "KF5Archive" that is
compatible with requested version "".
The following configuration files were considered but not accepted:
C:/CraftRoot/lib/cmake/KF5Archive/KF5ArchiveConfig.cmake, version: 5.98.0 (64bit)
-- Configuring incomplete, errors occurred!
See also "C:/Nextcloud/client-building/desktop/build/CMakeFiles/CMakeOutput.log".
See also "C:/Nextcloud/client-building/desktop/build/CMakeFiles/CMakeError.log".
"*** Build FAILED: desktop Release Win32 (single-build-desktop.bat)"
I tried to compile F5Archive from source and tried using Craft binaries. Both ways results to the same thing Could not find a configuration file for package "KF5Archive .
I compiled F5archive with the follwoing steps from Qt website:
Building extra-cmake-modules
- Install CMake for windows (http://www.cmake.org/) and remember to put it on path enviroment variable
- git clone https://github.com/KDE/extra-cmake-modules.git
- In extra-cmake-modules, use (x64 Native Tools Command Prompt for VS 2019)
- mkdir build && cd build
- cmake .. -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=C:\kderoot; -DCMAKE_PREFIX_PATH=C:\Qt\5.15.2\msvc2019_64
- nmake install
Building karchive
- git clone kArchive https://github.com/KDE/karchive.git
- download Zlib from http://www.winimage.com/zLibDll/zlib123dllx64.zip in path-to-karchive\zlib\lib folder
- download https://zlib.net/zlib-1.2.12.tar.xz and put all headers in path-to-karchive\zlib\include folder
- In kArchive directory: mkdir build && cd build
- use (x64 Native Tools Command Prompt for VS 2019)
- cmake .. -G “NMake Makefiles” -DCMAKE_INSTALL_PREFIX=C:\kderoot -DCMAKE_BUILD_TYPE=release -DCMAKE_PREFIX_PATH=C:\kderoot;C:\Qt\5.15.2\msvc2019_64;C:\Nextcloud\tools\karchive\karchive\karchive\zlib
- nmake install
Any idea on how to fix karchive issue ?
Best
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with build.bat and C:/Nextcloud/client-building/desktop/CMakeLists.txt, then inspect src/gui/CMakeLists.txt and the referenced CMakeOutput.log and CMakeError.log. Reproduce the Windows 10 Qt 5.15.2 build and determine why KF5Archive is rejected; done means the documented prerequisites and build steps produce a successful desktop Release Win32 build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100