📘 We decided to use KDE Craft to get all binary dependencies of the Nextcloud files desktop client.
[!TIP] We highly recommend Nextcloud development environment on Docker Compose for testing/bug fixing/development. https://juliushaertl.github.io/nextcloud-docker-dev/
Visual Studio Installer
.Modify
:Desktop development with C++
:[!IMPORTANT]
C:\CraftRoot
is the path used by default byKDE Craft
. When you are setting it up you may choose a different folder: you will need to change fromC:\CraftRoot
to the path you picked in the next steps listed here.
PowerShell
.craftenv.ps1
as described in the instructions above:C:\CraftRoot\craft\craftenv.ps1
craft --add-blueprint-repository https://github.com/nextcloud/desktop-client-blueprints.git
$ craft craft
craft --install-deps nextcloud-client
%PATH%
has no conflicting information to the environment you will use to compile the client. For instance, if you have installed OpenSSL
previously and have added it to %PATH%
, the OpenSSL
installed might be a different version than what was installed via KDE Craft
.Command Prompt
(cmd.exe).[!IMPORTANT] The next steps has only been tested and proven to work when using
Command Prompt
.
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
[!TIP] Alternatively you can use the tools installed with
KDE Craft
by adding them to%PATH%
in your current session:set "PATH=C:\CraftRoot\bin;C:\CraftRoot\dev-utils\bin;%PATH%"
This will result in using the
cmake
version downloaded withKDE Craft
.
git clone https://github.com/nextcloud/desktop.git
<build-folder>
.mkdir <build-folder>
cd <build-folder>
cmake ..\<desktop-cloned-repo> -G Ninja -DCMAKE_INSTALL_PREFIX=. -DCMAKE_PREFIX_PATH=C:\CraftRoot -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build .
[!NOTE] If you have questions about it, you may use the forums at https://help.nextcloud.com to ask them. If you find bugs with these steps, you may open a GH issue at https://github.com/nextcloud/desktop/issues.