[Compilation] Updating the Windows MSVC 2017 wiki page #9348

Closed
opened 2026-02-21 20:07:47 -05:00 by deekerman · 3 comments
Owner

Originally created by @Rootax on GitHub (Nov 25, 2019).

Hello,

First of all, big thanks to all the people who have updated this page https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2017-x64-(static-linkage) over the years.

Not, it seems that the soon to be released 4.2 version will use libtorrent 1.2.x, and a newer openssl version. From what I understand, this page is still mostly relevent, but openssl compilation has changed since 1.0.x, and I don't know about other changes.

Could it be possible for someone with (time and) knowledge, to update this page for 4.2.x versions, and the news librairies ?

Thx a lot.

(Sorry for my english)

Originally created by @Rootax on GitHub (Nov 25, 2019). Hello, First of all, big thanks to all the people who have updated this page https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2017-x64-(static-linkage) over the years. Not, it seems that the soon to be released 4.2 version will use libtorrent 1.2.x, and a newer openssl version. From what I understand, this page is still mostly relevent, but openssl compilation has changed since 1.0.x, and I don't know about other changes. Could it be possible for someone with (time and) knowledge, to update this page for 4.2.x versions, and the news librairies ? Thx a lot. (Sorry for my english)
deekerman 2026-02-21 20:07:47 -05:00
Author
Owner

@sledgehammer999 commented on GitHub (Nov 25, 2019):

If I remember, I'll do it once I release 4.2.0 final.
In case you yourself are trying to build with the new libs then here are my barebones notes on the matter. Don't expect much clarification if you don't know what you're doing.

Openssl 1.1.x

perl Configure VC-WIN64A no-shared no-zlib no-zlib-dynamic threads --release --openssldir=C:\openssl --prefix=G:\QBITTORRENT\install_msvc64\base -IG:\QBITTORRENT\install_msvc64\base\include -LG:\QBITTORRENT\install_msvc64\base\lib --with-zlib-lib=G:\QBITTORRENT\install_msvc64\base\lib\zlib.lib
nmake
nmake test
nmake install_sw

Libtorrent 1.2:

b2 -q --without-python --toolset=msvc address-model=64 variant=release link=static runtime-link=static debug-symbols=on encryption=on crypto=openssl openssl-version=1.1 logging=off dht=on windows-version=win7 deprecated-functions=off boost-link=static -sBOOST_ROOT="G:\qBittorrent\boost_1_71_0" include="G:\QBITTORRENT\install_msvc64\base\include" include="G:\QBITTORRENT\boost_1_71_0" library-path="G:\QBITTORRENT\install_msvc64\base\lib" library-path="G:\QBITTORRENT\boost_1_71_0\stage\lib" --prefix="G:\QBITTORRENT\install_msvc64\base" cxxflags="-O1 -Gy -Gw -GL" define=BOOST_ASIO_DISABLE_CONNECTEX linkflags="/NOLOGO /DYNAMICBASE /NXCOMPAT /LTCG /OPT:REF /OPT:ICF=5 /MANIFEST:EMBED /INCREMENTAL:NO" --hash -j 8
@sledgehammer999 commented on GitHub (Nov 25, 2019): If I remember, I'll do it once I release 4.2.0 final. In case you yourself are trying to build with the new libs then here are my barebones notes on the matter. Don't expect much clarification if you don't know what you're doing. Openssl 1.1.x ``` perl Configure VC-WIN64A no-shared no-zlib no-zlib-dynamic threads --release --openssldir=C:\openssl --prefix=G:\QBITTORRENT\install_msvc64\base -IG:\QBITTORRENT\install_msvc64\base\include -LG:\QBITTORRENT\install_msvc64\base\lib --with-zlib-lib=G:\QBITTORRENT\install_msvc64\base\lib\zlib.lib nmake nmake test nmake install_sw ``` Libtorrent 1.2: ``` b2 -q --without-python --toolset=msvc address-model=64 variant=release link=static runtime-link=static debug-symbols=on encryption=on crypto=openssl openssl-version=1.1 logging=off dht=on windows-version=win7 deprecated-functions=off boost-link=static -sBOOST_ROOT="G:\qBittorrent\boost_1_71_0" include="G:\QBITTORRENT\install_msvc64\base\include" include="G:\QBITTORRENT\boost_1_71_0" library-path="G:\QBITTORRENT\install_msvc64\base\lib" library-path="G:\QBITTORRENT\boost_1_71_0\stage\lib" --prefix="G:\QBITTORRENT\install_msvc64\base" cxxflags="-O1 -Gy -Gw -GL" define=BOOST_ASIO_DISABLE_CONNECTEX linkflags="/NOLOGO /DYNAMICBASE /NXCOMPAT /LTCG /OPT:REF /OPT:ICF=5 /MANIFEST:EMBED /INCREMENTAL:NO" --hash -j 8 ```
Author
Owner

@Rootax commented on GitHub (Nov 26, 2019):

Thx a lot. I already build with older versions, so yeah your notes will help. And I'll allow myself to remind you to update the wiki page once the final release is out ; )

@Rootax commented on GitHub (Nov 26, 2019): Thx a lot. I already build with older versions, so yeah your notes will help. And I'll allow myself to remind you to update the wiki page once the final release is out ; )
Author
Owner

@sledgehammer999 commented on GitHub (Dec 3, 2019):

Wiki is updated: https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2017-(static-linkage)

@sledgehammer999 commented on GitHub (Dec 3, 2019): Wiki is updated: https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2017-(static-linkage)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/qBittorrent#9348
No description provided.