Skip to content

Build script fails to build nextcloud client on Windows 10 - Qt 5.15.2 #107

@myomv100

Description

@myomv100

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 F5Archive and 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

Any idea on how to fix karchive issue ?

Best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions