diff --git a/Compilation:-Debian-and-Ubuntu.md b/Compilation:-Debian-and-Ubuntu.md index 9a52a4a..fa1b154 100644 --- a/Compilation:-Debian-and-Ubuntu.md +++ b/Compilation:-Debian-and-Ubuntu.md @@ -77,7 +77,7 @@ git clone https://github.com/arvidn/libtorrent.git cd libtorrent ``` -To compile, first choose the appropriate `git` and compile commands in the table below, according to the version of `libtorrent` you need: +To compile, first choose the appropriate `git` and compile commands in the table below, according to the version of `libtorrent` you need, then run them:
libtorrent version series |
qBittorrent version support |
git command (example with most recent tag in series at the time of writing) |
-Compile commands (after running the git command, choose between using autotools or CMake) |
+Compile commands - after running the git command, choose between using CMake (recommended) or autotools |
|
---|---|---|---|---|---|
autotools |
CMake |
+autotools |
|||
1.2.x |
>= 4.2.0 |
|
+
|
|
-
|
+./configure --disable-debug --enable-encryption CXXFLAGS="-std=c++14"
+make clean && make -j$(nproc)
1.1.x |
>= 3.3.8 and <4.2.0 (*) |
|
+
|
|
-
|
+./configure --disable-debug --enable-encryption
+make clean && make -j$(nproc)
1.0.x |
@@ -122,25 +124,27 @@ cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../..
(*) Technically, the 4.2.x releases actually support the 1.1.x `libtorrent` series, but it is just life support and not properly tested/developed.
-Now you're ready to compile:
-
-```bash
-make clean && make -j$(nproc)
-```
-
Finally, you can install `libtorrent`.
-If you have `checkinstall`, the following command will generate and install a `.deb` package that can be tracked and managed by your package manager:
+- If building with CMake:
-```bash
-sudo checkinstall --nodoc --backup=no --deldesc --pkgname libtorrent-rasterbar --pkgversion 1.x.x-source-compile # change the version to your liking
-```
+ `sudo cmake --install cmake-build-dir/release`
-Alternatively, the traditional way will do just fine:
+ This generates an `install_manifest.txt` file in the build folder that can later be used to uninstall all installed files with `sudo xargs rm < install_manifest.txt`. The default installation prefix is `/usr/local`, as expected.
-```bash
-sudo make install
-```
+- If building with `autotools`:
+
+ If you have `checkinstall`, the following command will generate and install a `.deb` package that can be tracked and managed by your package manager:
+
+ ```bash
+ sudo checkinstall --nodoc --backup=no --deldesc --pkgname libtorrent-rasterbar --pkgversion 1.x.x-source-compile # change the version to your liking
+ ```
+
+ Alternatively, the traditional way will do just fine (but there is no tracking of the installed files):
+
+ ```bash
+ sudo make install
+ ```
For more information on building libtorrent, see [libtorrent downloading and building](https://www.libtorrent.org/building.html).