Skip to content

Instructions to compile qBittorrent in MSYS2 environment

Notifications You must be signed in to change notification settings

akem3210/qbittorent_msys2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

qbittorent_msys2

How to Compile qBittorrent in MSYS2

This guide is to help developers setup development environment quickly.

Warning! the compilation will require ~10 GB of free space to compile & run qBittorrent (dynamically linked).

Steps:

1. Install msys2

Refer to https://www.msys2.org/

2. Download PKGBUILD

Depending on your intention, download one PKGBUILD from the links below and put it into a clean folder.

3. Install Dependencies & Build!

If you want to build a x64 application then open MSYS2 MinGW 64-bit in Windows start menu.
Otherwise open MSYS2 MinGW 32-bit.

First make sure msys2 is up-to-date by running the following command a few times, until it tells you all packages are latest:

pacman --sync --refresh --sysupgrade

Install development tools:

pacman --sync --noconfirm autoconf automake binutils make mingw-w64-x86_64-gcc  # note: change to mingw-w64-i686-gcc when building for 32-bit

Start building qBittorrent:

cd <PKGBUILD_directory>
makepkg --skippgpcheck --syncdeps --noconfirm

4. Install & Run

After the command complete, you should see makepkg created a package: mingw-w64-x86_64-qbittorrent-4.0.1-1-any.pkg.tar.xz. The architecture & version number may be different.

Install:

pacman -U mingw-w64-x86_64-qbittorrent-4.0.1-1-any.pkg.tar.xz

Run (in the same console):

qbittorrent

You can find the downloaded qBittorrent source code in <PKGBUILD_directory>/src/qbittorrent.

References:

About

Instructions to compile qBittorrent in MSYS2 environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%