Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Rootax

Pages: [1]
1
Any of you have compiled qbittorrent under msvc with openssl 1.1.0 or 1.1.1 ? The tutorials are for 1.0.2, and 1.1.x seems to change the process of building it, and the lib names...

Code: [Select]
===openssl 1.1.x===
1. perl Configure VC-WIN64A no-shared 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
3. CFLAGS(end): -O1 -GL -MT /guard:cf
5. LFLAGS=/NOLOGO /SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /LTCG /OPT:REF /OPT:ICF=5 /MANIFEST:EMBED /INCREMENTAL:NO /guard:cf /NODEFAULTLIB:MSVCRT

==qt5==
at the end of configure
OPENSSL_LIBS="-llibssl -llibcrypto"

But I encountered crashes with latest Qt5 so I stayed in the 1.0.x series.

Thx for help. Sucks about Qt5 :/

2
Any of you have compiled qbittorrent under msvc with openssl 1.1.0 or 1.1.1 ? The tutorials are for 1.0.2, and 1.1.x seems to change the process of building it, and the lib names...

3
Damn, I've a lot of compilation error in session.cpp with 4.1.5, about can't convert libtorrent::string_view' in 'const std::string'... And it fails in the end :/ I'm using libtorrent 1.1.11 as usual...



EDIT : or the master is 1.2, and not 1.1.11 with latest fix...

qBittorrent isn't compatible yet with libtorrent master/RC_1_2/1.2.x series

Yeap, sorry for my first dumb post, I know that QB was not 1.2 ready yet, but I screwed up my libtorrent source donwload. 100% my fault.

But thx you for the answer :)   

1.2 seems to change a lot of things, any ETA about an 1.2 QB version ? Thx.

4
Damn, I've a lot of compilation error in session.cpp with 4.1.5, about can't convert libtorrent::string_view' in 'const std::string'... And it fails in the end :/ I'm using libtorrent 1.1.11 as usual...



EDIT : or the master is 1.2, and not 1.1.11 with latest fix...

5
Yeah, you need 1.0.2.

1.0.2k if you want the wiki version.

For the Microsoft 2017 VS, using the defaut setup when you choose desktop c++ application (something like that) is enough.

For the Qt creator version, use 4.3.1 and you will find the options back where they are.

For the last part, use conf.pri.windows (then rename it like it says on the wiki). The commented / uncommented BOOST lines are already good with the 4.1.x source version.

You just have to adjust paths, comment the unwanted one (the wiki is right about that), and do the CONFIG(debug, debug|release) {
     LIBS += libtorrentd.lib \
             libboost_system-vc141-mt-sgd-x64-1_68.lib
 }
 else {
     LIBS += libtorrent.lib \
             libboost_system-vc141-mt-s-x64-1_68.lib

thing, so the filenames are ok.

I compiled 2 versions in 16 hours (one with O1 flags like in the wiki, another with O2) both are working fine.

Oh, and yes, for the libtorrent compilation :

b2 -q --without-python --toolset=msvc-14.1 address-model=64 variant=release link=static runtime-link=static debug-symbols=on encryption=on logging=of resolve-countries=off dht=on character-set=unicode boost-link=static -sBOOST_ROOT="G:\QBITTORRENT\boost_1_68_0" include="G:\QBITTORRENT\install_msvc64\base\include" library-path="G:\QBITTORRENT\install_msvc64\base\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 /MANIFEST:EMBED /INCREMENTAL:NO" --hash -j %NUMBER_OF_PROCESSORS%

an F is missing, should be logging=off  with "of", it won't compile correctly so the other steps will fail at one point . You can add crypto=openssl  too, to force the use of openssl instead of the buildin one.

6
Well, it's working !

Some warning here and here, but I've a functionnal release !

Of  course what I changed into the code didn't work, but that another subject :)

Thx a lot man !

7
Oh man. I'll test that soon.

As you can see, I was having trouble : https://qbforums.shiki.hu/index.php/topic,5916.msg29009.html#msg29009


If it's working with your updates, I'll love you :o   (no homo).    Working or not, thx for the updates in anycase :)

8
BTW, do you build using MSVC 2017  ? If so, have you a working wiki / guide please ?

Thx.

9
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.



Hi,

Since the builds are compiled with MSVC 2017, is it possible to update this page please ?

https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2017-x64-%28static-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.

10
Windows - QA Department / Re: Unofficial 64-bit installer/archive 3.3.x
« on: August 23, 2018, 09:27:57 pm »
Stupid question but how does this project on github build x64 versions since the appveyor.yml points to 32bit libs ?

11
Hi,

Since the builds are compiled with MSVC 2017, is it possible to update this page please ?

https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2017-x64-%28static-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...

Thx.

12
Thx a lot !

No lib1.1.x version ?

13
Windows - QA Department / Re: Unofficial 64-bit installer/archive 3.3.x
« on: September 19, 2016, 08:24:14 am »
Thx !

14
Windows - QA Department / Re: Unofficial 64-bit installer/archive 3.3.x
« on: September 18, 2016, 01:18:46 pm »
I would like that too :D

15
Windows - QA Department / Re: Unofficial 64-bit installer/archive 3.3.x
« on: August 19, 2016, 01:31:18 pm »
Hi, it's my first post here, so, hello everyone :) I'm french, so, I'm sorry for my broken english.

I just migrated forum utorrent 2.2.1, and I love qBittorrent, mainly because on my setup, the cache seems to be better used. Anyway, I encouter a bug with the 3.3.6 x64 version. Every time I activate the ip filter, then close the client, It crash when I want to launch it again later. I've to edit the .ini conf file, and set ipfilter to false, and then It starts again.

Kind of like this bug : https://github.com/qbittorrent/qBittorrent/issues/5428

It this normal that the bug still exist on the lastet 3.3.6 downloaded here ?

Thx a lot :)


EDIT : Well, it's working with 3.3.6 + lib 1.0  So I guess It's a problem with lib 1.1, so, my bad, you warned us about using it.

Pages: [1]