![]() ![]() Successful build in case of presence of Homebrew is not guaranteed. It is known that it can interfere with provided by default or installed by user similar software. Please avoid usage of Homebrew or any tools/dependencies installed from it. It is very likely that you will need to add the line mentioned in the last answer when you are running macOS Catalina (as an author of this guide) at least in case of cross-compilation. There is link to StackOverflow where solution was found. So the issue seems to affect only older systems. There is may be some bug in Apple' tools, author encountered it on two laptops running macOS 10.15.7 Catalina, but everything was fine on Apple M1 MacBook Pro 2020 running macOS 11.3.1 BigSur. Only one more note about Xcode installation - you must run it after installation, it installs some additional tools required for build process. Latest available is recommended, qBittorrent requires pretty recent CMake version, and it can be updated to even newer version.ĭownload links for required tools are provided above, Xcode - to Apple App Store, CMake - to official site. If you plan to run the build on Apple Silicon based Mac, you have to use CMake 3.19.2 and above, only since this version it is shipped as universal binary. Minimum supported macOS version for running compiled binaries is macOS 10.14 Mojave, again due to C++17 requirement. Xcode 11 is enough to build x86_64 binaries, lower versions will not work due to a lack of C++17 support required by qBittorrent. Apple Silicon) you must have Xcode 12, anything lower doesn't support it. If you plan to build binaries for arm64 (i.e. |_ root - compiled dependencies goes hereĪny provided command assumes that you are in src directory unless otherwise is specified.ĬMake app is placed in standard /Applications folder. superuser) and assume next directory structure: Conventions used in this documentĪll provided commands should NOT be run as root (i.e. Even more, this guide can be interesting for any person who wants to build/run Qt-based software on Apple Silicon based Mac. Also it can be a good starting point if you plan to start qBittorrent development (or just want to understand the basics of cross-compiling). No deep knowledge in C/C++ compilation/development process is required, just following this guide allows to achieve desired result. This guide was written based on sources from master branch at the time of writing, but it is applicable for 4.3.x series too. ![]() Rosetta (or any other software allowing to run non-native binaries) is not required to produce binaries for other architecture, neither for running compiled qBittorrent. Universal (aka "fat") binaries are not supported due to a lot of technically difficult reasons of compiling required dependencies. producing arm64 binaries on x86_64 host and vice versa. Cross-compilation is possible (and was tested) in both directions, i.e. ![]() Most of the steps are the same for all cases, required adjustments for a specific case are highlighted. Cross-compilation process is covered as well. following this guide you will be able to build as x86_64 (aka for Intel chip based Mac) so as arm64 (aka for Apple Silicon based Mac) binaries. This guide covers qBittorrent compilation process for any supported Mac systems as of writing, i.e. Obsolete compilation guides Clone this wiki locally
0 Comments
Leave a Reply. |