Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facelift of the ubuntu build instructions #348

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
12 changes: 8 additions & 4 deletions modules/ROOT/pages/appendices/building.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ To get the source dependencies on Debian and Ubuntu, run the following command:
----
sudo apt install qtdeclarative5-dev libinotifytools-dev \
qt5keychain-dev python3-sphinx \
libsqlite3-dev
libsqlite3-dev \
g++ extra-cmake-modules zlib1g-dev pkgconf
----
====

Expand Down Expand Up @@ -291,7 +292,9 @@ git clone git://github.com/owncloud/client.git
cd client
----
+
Note master this default, but you can also check out a tag like v2.5.4
Note that this clone command assumes a connected github account. If you don't have that, use this URL instead: https://github.com/owncloud/client.git
jnweiger marked this conversation as resolved.
Show resolved Hide resolved
+
Note that `master` is the default here, but it is a moving target and can be temporarily in a broken state. To be safer you can also check out a tag like v3.1.0-rc.1 or a branch like `3.0`.
jnweiger marked this conversation as resolved.
Show resolved Hide resolved
+
[source,bash]
----
Expand All @@ -314,14 +317,15 @@ cd client-build
+
[source,console]
----
cmake -DCMAKE_PREFIX_PATH=/opt/ownCloud/qt-5.12.4 -DCMAKE_INSTALL_PREFIX=/Users/path/to/client/../install/ ..
cmake -DCMAKE_PREFIX_PATH=/opt/ownCloud/qt-5.12.10 -DCMAKE_INSTALL_PREFIX=$(pwd)/../install/ ..
jnweiger marked this conversation as resolved.
Show resolved Hide resolved
----
+
Please also check the beginning of ../src/CMakeLists.txt - The version number in `find_package(Qt5 5.xx ...` should match what you have available.
jnweiger marked this conversation as resolved.
Show resolved Hide resolved
jnweiger marked this conversation as resolved.
Show resolved Hide resolved
For Linux builds (using QT5 libraries via build-dep) a typical setting is
+
[source,console]
----
-DCMAKE_PREFIX_PATH=/opt/ownCloud/qt-5.12.4/
-DCMAKE_PREFIX_PATH=/opt/ownCloud/qt-5.12.10/
----
+
However, the version number may vary. For Linux builds using system dependencies `-DCMAKE_PREFIX_PATH` is not needed. You must use absolute paths for the `include` and `library` directories.
Expand Down