2022-02-21 16:39:27 +00:00
|
|
|
## Getting the Source ##
|
2022-04-11 17:38:32 +00:00
|
|
|
The source code for both official and nightly releases can be found on our [download page](https://transmissionbt.com/download/).
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-04-26 14:11:44 +00:00
|
|
|
## On macOS ##
|
2022-10-18 20:23:26 +00:00
|
|
|
Software prerequisites:
|
2022-04-26 14:11:44 +00:00
|
|
|
* macOS 10.14.4 or newer
|
|
|
|
* Xcode 11.3.1 or newer
|
2022-02-21 16:39:27 +00:00
|
|
|
|
|
|
|
Building the project on Mac requires the source to be retrieved from GitHub. Pre-packaged source code will not compile.
|
2024-01-11 13:30:12 +00:00
|
|
|
```bash
|
2022-10-18 20:23:26 +00:00
|
|
|
git clone --recurse-submodules https://github.com/transmission/transmission Transmission
|
|
|
|
```
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-02-22 18:45:30 +00:00
|
|
|
If building from source is too daunting for you, check out the [nightly builds](https://build.transmissionbt.com/job/trunk-mac/).
|
2022-02-21 16:39:27 +00:00
|
|
|
(Note: These are untested snapshots. Use them with care.)
|
|
|
|
|
2022-10-18 20:23:26 +00:00
|
|
|
### Building the native app with Xcode ###
|
2022-11-10 14:28:50 +00:00
|
|
|
Transmission has an Xcode project file for building in Xcode.
|
2022-10-18 20:23:26 +00:00
|
|
|
- Open Transmission.xcodeproj
|
|
|
|
- Run the Transmission scheme
|
|
|
|
|
2023-10-24 02:24:51 +00:00
|
|
|
### Building the native app with CMake ###
|
2022-10-18 20:23:26 +00:00
|
|
|
Build the app:
|
2024-01-11 13:30:12 +00:00
|
|
|
```bash
|
2022-10-18 20:23:26 +00:00
|
|
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2023-10-24 02:24:51 +00:00
|
|
|
cmake --build build -t transmission-mac
|
2022-10-18 20:23:26 +00:00
|
|
|
open ./build/macosx/Transmission.app
|
|
|
|
```
|
|
|
|
|
2023-10-24 02:24:51 +00:00
|
|
|
### Building the GTK app with CMake ###
|
2022-10-18 20:23:26 +00:00
|
|
|
Install GTK and build the app:
|
2024-01-11 13:30:12 +00:00
|
|
|
```bash
|
2022-10-18 20:23:26 +00:00
|
|
|
brew install gtk4 gtkmm4
|
|
|
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_GTK=ON -DENABLE_MAC=OFF
|
2023-10-24 02:24:51 +00:00
|
|
|
cmake --build build -t transmission-gtk
|
2022-10-18 20:23:26 +00:00
|
|
|
./build/gtk/transmission-gtk
|
|
|
|
```
|
|
|
|
|
2024-05-24 15:33:24 +00:00
|
|
|
### Building the QT app with CMake ###
|
|
|
|
Install QT and build the app:
|
|
|
|
```bash
|
|
|
|
brew install qt
|
|
|
|
brew services start dbus
|
|
|
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_QT=ON -DENABLE_MAC=OFF
|
|
|
|
cmake --build build -t transmission-qt
|
|
|
|
./build/qt/transmission-qt
|
|
|
|
```
|
|
|
|
|
2022-02-21 16:39:27 +00:00
|
|
|
## On Unix ##
|
|
|
|
### Prerequisites ###
|
|
|
|
|
2024-01-11 13:30:12 +00:00
|
|
|
#### Debian 12 / Bookworm ####
|
|
|
|
On Debian, you can build transmission with a few dependencies on top of a base installation.
|
|
|
|
|
|
|
|
For building transmission-daemon you will need basic dependencies:
|
|
|
|
```bash
|
|
|
|
$ sudo apt install build-essential cmake git libcurl4-openssl-dev libssl-dev
|
|
|
|
```
|
|
|
|
These packages are not mandatory for a working binary. Transmission brings its own libraries if they aren't installed, except for `libsystemd-dev`.
|
|
|
|
```bash
|
|
|
|
$ sudo apt install libb64-dev libdeflate-dev libevent-dev libminiupnpc-dev libnatpmp-dev libpsl-dev libsystemd-dev
|
|
|
|
```
|
|
|
|
|
|
|
|
You likely want to install transmission as a native GUI application.
|
|
|
|
There are two options, GTK and Qt.
|
|
|
|
|
|
|
|
GTK 3 client:
|
|
|
|
```bash
|
|
|
|
$ sudo apt install gettext libgtkmm-3.0-dev
|
|
|
|
```
|
|
|
|
|
|
|
|
Qt5 client:
|
|
|
|
```bash
|
|
|
|
$ sudo apt install libqt5svg5-dev qttools5-dev
|
|
|
|
```
|
|
|
|
Qt6 client:
|
|
|
|
```bash
|
|
|
|
$ sudo apt install qt6-svg-dev qt6-tools-dev
|
|
|
|
```
|
|
|
|
|
|
|
|
Then you can begin [building.](#building-transmission-from-git-first-time)
|
|
|
|
|
|
|
|
#### Debian 11 / Bullseye ####
|
2022-11-10 14:28:50 +00:00
|
|
|
On Debian, you can build transmission with a few dependencies on top of a base installation.
|
|
|
|
|
|
|
|
For building transmission-daemon you will need basic dependencies
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
2023-02-10 22:40:27 +00:00
|
|
|
$ sudo apt install git build-essential cmake libcurl4-openssl-dev libssl-dev python3
|
2022-02-21 16:39:27 +00:00
|
|
|
```
|
2024-01-11 13:30:12 +00:00
|
|
|
You likely want to install transmission as a native GUI application. There are two options, GTK and Qt.
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-11-10 14:28:50 +00:00
|
|
|
For GTK 3 client, two additional packages are required
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
2022-11-10 14:28:50 +00:00
|
|
|
$ sudo apt install libgtkmm-3.0-dev gettext
|
|
|
|
```
|
2024-01-11 13:30:12 +00:00
|
|
|
|
|
|
|
For Qt client, one additional package is needed on top of basic dependencies
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
2022-11-10 14:28:50 +00:00
|
|
|
$ sudo apt install qttools5-dev
|
|
|
|
```
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-11-10 14:28:50 +00:00
|
|
|
Then you can begin [building.](#building-transmission-from-git-first-time)
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-11-10 14:28:50 +00:00
|
|
|
#### Ubuntu ####
|
|
|
|
On Ubuntu, you can install the required development tools for GTK with this command:
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
2023-03-05 23:42:35 +00:00
|
|
|
$ sudo apt-get install build-essential automake autoconf libtool pkg-config intltool libcurl4-openssl-dev libglib2.0-dev libevent-dev libminiupnpc-dev libgtk-3-dev libappindicator3-dev libssl-dev
|
2022-11-10 14:28:50 +00:00
|
|
|
```
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-11-10 14:28:50 +00:00
|
|
|
Then you can begin [building.](#building-transmission-from-git-first-time)
|
2022-02-21 16:39:27 +00:00
|
|
|
|
|
|
|
#### CentOS 5.4 ####
|
|
|
|
The packages you need are:
|
|
|
|
* gcc
|
|
|
|
* gcc-c++
|
|
|
|
* m4
|
|
|
|
* make
|
|
|
|
* automake
|
|
|
|
* libtool
|
|
|
|
* gettext
|
|
|
|
* openssl-devel
|
|
|
|
|
|
|
|
Or simply run the following command:
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
2022-02-21 16:39:27 +00:00
|
|
|
$ yum install gcc gcc-c++ m4 make automake libtool gettext openssl-devel
|
|
|
|
```
|
|
|
|
|
|
|
|
However, Transmission needs other packages unavailable in `yum`:
|
2022-04-11 17:38:32 +00:00
|
|
|
* [pkg-config](https://pkg-config.freedesktop.org/wiki/)
|
|
|
|
* [libcurl](https://curl.haxx.se/)
|
|
|
|
* [intltool](https://ftp.gnome.org/pub/gnome/sources/intltool/)
|
2022-02-21 16:39:27 +00:00
|
|
|
|
|
|
|
Before building Transmission, you need to set the pkgconfig environment setting:
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
2022-02-21 16:39:27 +00:00
|
|
|
$ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
|
|
|
```
|
|
|
|
|
|
|
|
### Building Transmission from Git (first time) ###
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
|
|
|
$ git clone --recurse-submodules https://github.com/transmission/transmission Transmission
|
2022-02-21 16:39:27 +00:00
|
|
|
$ cd Transmission
|
2023-10-24 02:24:51 +00:00
|
|
|
# Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary with debug information. (preferred)
|
|
|
|
# Use -DCMAKE_BUILD_TYPE=Release to build full optimized binary.
|
|
|
|
$ cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
2022-02-21 16:39:27 +00:00
|
|
|
$ cd build
|
2023-10-24 02:24:51 +00:00
|
|
|
$ cmake --build .
|
|
|
|
$ sudo cmake --install .
|
2022-02-21 16:39:27 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Building Transmission from Git (updating) ###
|
2023-10-24 02:24:51 +00:00
|
|
|
```bash
|
2022-02-21 16:39:27 +00:00
|
|
|
$ cd Transmission/build
|
2023-10-24 02:24:51 +00:00
|
|
|
$ cmake --build . -t clean
|
|
|
|
$ git submodule foreach --recursive git clean -xfd
|
2022-02-21 16:39:27 +00:00
|
|
|
$ git pull --rebase --prune
|
2023-10-24 02:24:51 +00:00
|
|
|
$ git submodule update --init --recursive
|
|
|
|
$ cmake --build .
|
|
|
|
$ sudo cmake --install .
|
2022-02-21 16:39:27 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## On Windows ##
|
|
|
|
|
2022-12-16 22:36:46 +00:00
|
|
|
### Prerequisites
|
2022-12-12 15:10:36 +00:00
|
|
|
You need the following installed:
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-12-16 22:36:46 +00:00
|
|
|
* [Visual Studio 2019 or greater](https://visualstudio.microsoft.com/downloads/) (the Community Edition is sufficient)
|
|
|
|
* install the "Desktop Development with C++" workload
|
|
|
|
* install the ATL and MFC components (only needed by the Qt client)
|
2022-12-12 15:10:36 +00:00
|
|
|
* [CMake](https://cmake.org/download/) (choose to add CMake to your path)
|
|
|
|
* [Git for Windows](https://git-scm.com/download/win)
|
|
|
|
* [Vcpkg](https://github.com/microsoft/vcpkg#quick-start-windows)
|
2022-12-16 22:36:46 +00:00
|
|
|
* [Python](https://python.org/downloads)
|
2022-02-21 16:39:27 +00:00
|
|
|
|
|
|
|
|
2022-12-16 22:36:46 +00:00
|
|
|
### Install dependencies through vcpkg
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-12-16 22:36:46 +00:00
|
|
|
Vcpkg will install x86 libraries by default. To install x64 add the `--triplet=x64-windows` flag at the end of the commands below.
|
|
|
|
|
|
|
|
Common dependencies:
|
2023-10-24 02:24:51 +00:00
|
|
|
```bat
|
2022-12-16 22:36:46 +00:00
|
|
|
vcpkg install curl zlib openssl
|
|
|
|
```
|
|
|
|
|
|
|
|
Additional dependencies for the Qt client:
|
2023-10-24 02:24:51 +00:00
|
|
|
```bat
|
2022-12-16 22:36:46 +00:00
|
|
|
vcpkg install qt5-tools qt5-winextras
|
2022-12-12 15:10:36 +00:00
|
|
|
```
|
2022-02-21 16:39:27 +00:00
|
|
|
|
2022-12-16 22:36:46 +00:00
|
|
|
### Get Transmission source
|
2023-10-24 02:24:51 +00:00
|
|
|
```bat
|
2022-12-12 15:10:36 +00:00
|
|
|
git clone https://github.com/transmission/transmission
|
|
|
|
cd transmission
|
|
|
|
git submodule update --init --recursive
|
2022-12-16 22:36:46 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Configure CMake and build the project
|
|
|
|
|
|
|
|
To configure which components are built use the flags below.
|
|
|
|
Each option can be set to `ON` or `OFF`, values shown below are the defaults.
|
|
|
|
* `-DENABLE_DAEMON=ON` - build transmission daemon
|
|
|
|
* `-DENABLE_QT=AUTO` - build the Qt client
|
|
|
|
* `-DENABLE_UTILS=ON` - build transmission-remote, transmission-create, transmission-edit and transmission-show cli tools
|
|
|
|
* `-DENABLE_CLI=OFF` - build the cli client
|
|
|
|
|
2023-10-24 02:24:51 +00:00
|
|
|
```bat
|
2022-12-16 22:36:46 +00:00
|
|
|
cmake -B build -DCMAKE_TOOLCHAIN_FILE="<path-to-vcpkg>\scripts\buildsystems\vcpkg.cmake" <flags-from-above> <other-cmake-configurations>
|
|
|
|
```
|
|
|
|
|
|
|
|
To build the project run:
|
2023-10-24 02:24:51 +00:00
|
|
|
```bat
|
2022-12-16 22:36:46 +00:00
|
|
|
cmake --build build
|
2022-12-12 15:10:36 +00:00
|
|
|
```
|