From f19f57db34f0f85f6df9e9d56ab6b50f7c7d7c4b Mon Sep 17 00:00:00 2001 From: bilditup1 <357902+bilditup1@users.noreply.github.com> Date: Fri, 18 Sep 2020 00:31:27 -0400 Subject: [PATCH] Added info necessary for successful compilation of 4.2.x branch with MSVC2019. --- Compiling-with-MSVC-2019-(static-linkage).mediawiki | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Compiling-with-MSVC-2019-(static-linkage).mediawiki b/Compiling-with-MSVC-2019-(static-linkage).mediawiki index 9742744..6cb6970 100644 --- a/Compiling-with-MSVC-2019-(static-linkage).mediawiki +++ b/Compiling-with-MSVC-2019-(static-linkage).mediawiki @@ -150,6 +150,12 @@ This page describes how to compile 32-bit and 64-bit qBittorrent using MSVC 2019 * Extract the qBittorrent sources in the working dir. * Launch Qt Creator and open the ''qbittorrent.pro'' file in ''G:\QBITTORRENT\qBittorrent'' * From the Window that pops up select the Qt version you added above and specify '''release''' version. You can also select where qBittorrent will be built if you want. +* If you're compiling the 4.2.x branch with MSVC2019: +:* Navigate down to src/gui/Sources in the Qt Creator folder tree on the left. +:* Open fspathedit.cpp. +:* Add this line at the end of the header inclusions at beginning of fspathedit.cpp: +:::#include +:* Save your changes. * Rename the ''conf.pri.windows'' file to ''conf.pri'' (or make a copy of it with that name). Open it and do the following (you can read the comments that it has inside too). The paths below use the path used for 32-bit, adjust them for 64-bit: :* Edit the first INCLUDEPATH to look like this(adjust for actual boost name): INCLUDEPATH += $$quote(G:/QBITTORRENT/boost_1_73_0) @@ -177,4 +183,4 @@ This page describes how to compile 32-bit and 64-bit qBittorrent using MSVC 2019 * Select Build->Build Project "qbittorrent" * After the compilation ends you should have ''qbittorrent.exe'' in \src\release. "build folder" is where you chose qBittorrent to be built in the popup window. -** By default, the build folder will be a new directory that's the same depth as--''not under''--your source directory, and may look something like build-qbittorrent-Desktop_x86_windows_msvc2019_pe_64bit-Release +** If you didn't specify a build directory earlier, then by default, the build folder will be a new directory that's the same depth as--''not under''--your source directory, and may look something like this: build-qbittorrent-Desktop_x86_windows_msvc2019_pe_64bit-Release.