Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Posted: Fri Aug 24, 2018 7:19 pm
EDIT : Evgeny Lensky has updated the page, and it's working now. Thx a lot.
Ok so, I tried again.
boost 1.68
libtorrent 1.1.9
openssl 1.0.2k
QT 5.9.0
Zlib 1.2.11
In my case, I use c:\qbittorrent instead of g:\qbittorrent. Of course I change the path in each command
EDIT : first step with the zlib, I've errors, a lot of :
MASM : warning A4018:invalid command-line option : -coff when assembling file
So, If I follow the wiki, the fist warning is after ms\do_win64a for openssl :
=>unknown option - enable-threads
But google says it's pretty common, so I go on.
Next, after nmake -f ms\nt.mak
I got a lot of "cl : Ligne de commande warning D9025 : substitution de '/Ox' par '/O1'" and "pkeyutl.c
.\apps\pkeyutl.c(350): warning C4267: 'fonction' : conversion de 'size_t' en 'long', perte possible de données" (possible data loss)
Then, with the command :
b2 -q --with-system --toolset=msvc-15.1 address-model=64 variant=release link=static runtime-link=static include="C:\QBITTORRENT\install_msvc64\base\include" library-path="C:\QBITTORRENT\install_msvc64\base\lib" --prefix="C:\QBITTORRENT\install_msvc64\base" cxxflags="-O1 -Gy -Gw -GL" linkflags="/NOLOGO /DYNAMICBASE /NXCOMPAT /LTCG /OPT:REF /OPT:ICF /MANIFEST:EMBED /INCREMENTAL:NO" --hash -j 6
I've some skipped <pstage\lib>libboost_system-vc151-mt-s-1_68.lib for lack of <pbin.v2\libs\system\build\badf2a7c2adcaef3b3bd2286eed781aa>libboost_system-vc151-mt-s-1_68.lib... along the way.
And when building libtorrent :
b2 -q --without-python --toolset=msvc-15.1 address-model=64 variant=release link=static runtime-link=static debug-symbols=on encryption=on crypto=openssl logging=off resolve-countries=off dht=on character-set=unicode boost-link=static -sBOOST_ROOT="C:\qBittorrent\boost_1_68_0" include="C:\QBITTORRENT\install_msvc64\base\include" library-path="C:\QBITTORRENT\install_msvc64\base\lib" --prefix="C:\QBITTORRENT\install_msvc64\base" cxxflags="-O1 -Gy -Gw -GL" define=BOOST_ASIO_DISABLE_CONNECTEX linkflags="/NOLOGO /DYNAMICBASE /NXCOMPAT /LTCG /OPT:REF /OPT:ICF /MANIFEST:EMBED /INCREMENTAL:NO" --hash -j 6
So, I corrected the ssl settings, but if I put the boost parameter, I've :
boost=source not know
After that :
configure -prefix C:\QBITTORRENT\install_msvc64\qt5 -I C:\QBITTORRENT\install_msvc64\base\include -L C:\QBITTORRENT\install_msvc64\base\lib -platform win32-msvc -release -opensource -confirm-license -strip -no-shared -static -static-runtime -ltcg -make libs -make tools -nomake examples -no-compile-examples -no-dbus -no-qml-debug -no-icu -system-zlib -openssl-linked -no-gtk -no-opengl -no-opengles3 -no-angle -no-sql-sqlite -no-sql-odbc -no-sqlite -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns ZLIB_LIBS="-lzlib" OPENSSL_LIBS="-llibeay32 -lssleay32"
and
jom -j 6
My only warning seems : Generated 457 translation(s) (0 finished and 457 unfinished)
Then, I install QT Creator 4.3.1. When I import the Kits, it warns me about the ABI : QT kits :
Nom :
Qt 5.9.0 (qt5)
ABI :
unknown-unknown-unknown-unknown-unknown
But, ok, I go on.
Then, all is alright, until I try to adapt the path in conf.pri.windows. Since I used boost 1.68 , my guess is libboost_system-vc140-mt-sgd-1_64.lib is not right, and I should put the name of the file I should find in C:\qbittorrent\boost_1_68_0\stage\lib at this stage right ? Should look like libboost_system-vc151-xxx1_68.lib or something. Well, my C:\qbittorrent\boost_1_68_0\stage\lib is empty, like boost never builds correctly.
The file is not in C:\qbittorrent\install_msvc64\base\lib either. (i've 3 lib file here, libeay32.lib ; ssleay32.lib and zlib.lib)
But nothing there :
LIBS += $$quote(-LC:/qBittorrent/boost/stage/lib)
LIBS += $$quote(-LC:/qBittorrent/libtorrent/lib)
LIBS += $$quote(-LC:/qBittorrent/zlib/lib)
LIBS += $$quote(-LC:/qBittorrent/openssl/lib)
Without that, I don't even try to go further in QT Creator, I guess It would be pointless...
EDIT : If i continue with the wiki, the compilation fail at this step :
linking release\qbittorrent.exe
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'libtorrent.lib'
jom: C:\qbittorrent\build\src\Makefile.Release [release\qbittorrent.exe] Error 1181
jom: C:\qbittorrent\build\src\Makefile [release] Error 2
jom: C:\qbittorrent\build\Makefile [sub-src-make_first] Error 2
13:12:34: Le processus "C:\Qt\qtcreator-4.3.1\bin\jom.exe" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet qbittorrent (kit : Qt5 msvc2017 x64)
The kit Qt5 msvc2017 x64 has configuration issues which might be the root cause for this problem.
When executing step "Make"
So any update would be appreciated : /
Thx a lot.
[quote="Rootax"]
Hi,
Since the builds are compiled with MSVC 2017, is it possible to update this page please ?
https://github.com/qbittorrent/qBittorr ... linkage%29
I follow this guide, and some stuff doesn't work anymore with the new versions. I don't have a list of error (way to many...) but in the end you always have errors with this "wiki" in qt creator, and the problem seems to lie into the qt version you build during all the process (no surprise here).
Granted I'm not a dev, but I would like sometime to build my own qbittorrent test version, with new builds of libtorrent or modified settings in qbittorrent source without create an "issue" on github...
ads
Thx.
[/quote]
Ok so, I tried again.
boost 1.68
libtorrent 1.1.9
openssl 1.0.2k
QT 5.9.0
Zlib 1.2.11
In my case, I use c:\qbittorrent instead of g:\qbittorrent. Of course I change the path in each command
EDIT : first step with the zlib, I've errors, a lot of :
MASM : warning A4018:invalid command-line option : -coff when assembling file
So, If I follow the wiki, the fist warning is after ms\do_win64a for openssl :
=>unknown option - enable-threads
But google says it's pretty common, so I go on.
Next, after nmake -f ms\nt.mak
I got a lot of "cl : Ligne de commande warning D9025 : substitution de '/Ox' par '/O1'" and "pkeyutl.c
.\apps\pkeyutl.c(350): warning C4267: 'fonction' : conversion de 'size_t' en 'long', perte possible de données" (possible data loss)
Then, with the command :
b2 -q --with-system --toolset=msvc-15.1 address-model=64 variant=release link=static runtime-link=static include="C:\QBITTORRENT\install_msvc64\base\include" library-path="C:\QBITTORRENT\install_msvc64\base\lib" --prefix="C:\QBITTORRENT\install_msvc64\base" cxxflags="-O1 -Gy -Gw -GL" linkflags="/NOLOGO /DYNAMICBASE /NXCOMPAT /LTCG /OPT:REF /OPT:ICF /MANIFEST:EMBED /INCREMENTAL:NO" --hash -j 6
I've some skipped <pstage\lib>libboost_system-vc151-mt-s-1_68.lib for lack of <pbin.v2\libs\system\build\badf2a7c2adcaef3b3bd2286eed781aa>libboost_system-vc151-mt-s-1_68.lib... along the way.
And when building libtorrent :
b2 -q --without-python --toolset=msvc-15.1 address-model=64 variant=release link=static runtime-link=static debug-symbols=on encryption=on crypto=openssl logging=off resolve-countries=off dht=on character-set=unicode boost-link=static -sBOOST_ROOT="C:\qBittorrent\boost_1_68_0" include="C:\QBITTORRENT\install_msvc64\base\include" library-path="C:\QBITTORRENT\install_msvc64\base\lib" --prefix="C:\QBITTORRENT\install_msvc64\base" cxxflags="-O1 -Gy -Gw -GL" define=BOOST_ASIO_DISABLE_CONNECTEX linkflags="/NOLOGO /DYNAMICBASE /NXCOMPAT /LTCG /OPT:REF /OPT:ICF /MANIFEST:EMBED /INCREMENTAL:NO" --hash -j 6
So, I corrected the ssl settings, but if I put the boost parameter, I've :
boost=source not know
After that :
configure -prefix C:\QBITTORRENT\install_msvc64\qt5 -I C:\QBITTORRENT\install_msvc64\base\include -L C:\QBITTORRENT\install_msvc64\base\lib -platform win32-msvc -release -opensource -confirm-license -strip -no-shared -static -static-runtime -ltcg -make libs -make tools -nomake examples -no-compile-examples -no-dbus -no-qml-debug -no-icu -system-zlib -openssl-linked -no-gtk -no-opengl -no-opengles3 -no-angle -no-sql-sqlite -no-sql-odbc -no-sqlite -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns ZLIB_LIBS="-lzlib" OPENSSL_LIBS="-llibeay32 -lssleay32"
and
jom -j 6
My only warning seems : Generated 457 translation(s) (0 finished and 457 unfinished)
Then, I install QT Creator 4.3.1. When I import the Kits, it warns me about the ABI : QT kits :
Nom :
Qt 5.9.0 (qt5)
ABI :
unknown-unknown-unknown-unknown-unknown
But, ok, I go on.
Then, all is alright, until I try to adapt the path in conf.pri.windows. Since I used boost 1.68 , my guess is libboost_system-vc140-mt-sgd-1_64.lib is not right, and I should put the name of the file I should find in C:\qbittorrent\boost_1_68_0\stage\lib at this stage right ? Should look like libboost_system-vc151-xxx1_68.lib or something. Well, my C:\qbittorrent\boost_1_68_0\stage\lib is empty, like boost never builds correctly.
The file is not in C:\qbittorrent\install_msvc64\base\lib either. (i've 3 lib file here, libeay32.lib ; ssleay32.lib and zlib.lib)
But nothing there :
LIBS += $$quote(-LC:/qBittorrent/boost/stage/lib)
LIBS += $$quote(-LC:/qBittorrent/libtorrent/lib)
LIBS += $$quote(-LC:/qBittorrent/zlib/lib)
LIBS += $$quote(-LC:/qBittorrent/openssl/lib)
Without that, I don't even try to go further in QT Creator, I guess It would be pointless...
EDIT : If i continue with the wiki, the compilation fail at this step :
linking release\qbittorrent.exe
LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'libtorrent.lib'
jom: C:\qbittorrent\build\src\Makefile.Release [release\qbittorrent.exe] Error 1181
jom: C:\qbittorrent\build\src\Makefile [release] Error 2
jom: C:\qbittorrent\build\Makefile [sub-src-make_first] Error 2
13:12:34: Le processus "C:\Qt\qtcreator-4.3.1\bin\jom.exe" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet qbittorrent (kit : Qt5 msvc2017 x64)
The kit Qt5 msvc2017 x64 has configuration issues which might be the root cause for this problem.
When executing step "Make"
So any update would be appreciated : /
Thx a lot.
[quote="Rootax"]
Hi,
Since the builds are compiled with MSVC 2017, is it possible to update this page please ?
https://github.com/qbittorrent/qBittorr ... linkage%29
I follow this guide, and some stuff doesn't work anymore with the new versions. I don't have a list of error (way to many...) but in the end you always have errors with this "wiki" in qt creator, and the problem seems to lie into the qt version you build during all the process (no surprise here).
Granted I'm not a dev, but I would like sometime to build my own qbittorrent test version, with new builds of libtorrent or modified settings in qbittorrent source without create an "issue" on github...
ads
Thx.
[/quote]