qBittorrent official forums

qBittorrent => Windows - QA Department => Topic started by: sledgehammer_999 on May 05, 2018, 11:27:27 AM

Title: [official]qBittorrent 4.1.4 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 05, 2018, 11:27:27 AM
Link to 4.1.4 post-> https://qbforums.shiki.hu/index.php/topic,5916.msg29518.html#msg29518






*****ORIGINAL POST BELOW****


Here is qBittorrent 4.1.0 built with MSVC 2017.

4.1.0 link-> http://www.fosshub.com/qBittorrent.html
Changelog: http://www.qbittorrent.org/news.php

Libraries's version used:
Libtorrent: 1.1.7+git8808eb7cdd
Qt: 5.6.3 (32-bit) / 5.10.1 (64-bit)
Boost: 1.67.0
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: Nemo on May 06, 2018, 01:54:00 AM
Thanks sledge.

Very nice release, fixes every report I had on Github previously.
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: Ryrynz on May 06, 2018, 01:50:37 PM
Hi Sledge, could you see if in the next release you can make qBittorrent more robust finding files when rechecking?
If I don't have the directory in my 'default save path' it just won't pick up the files, doing a recheck yields no results. The save path is corrent (folder containing sub folder of torrent name)
This is the issue I commented on in the previous beta thread and appears to be a rather long standing issue.
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 06, 2018, 01:53:15 PM
Hi Sledge, could you see if in the next release you can make qBittorrent more robust finding files when rechecking?
If I don't have the directory in my 'default save path' it just won't pick up the files, doing a recheck yields no results. The save path is corrent (folder containing sub folder of torrent name)
This is the issue I commented on in the previous beta thread and appears to be a rather long standing issue.

Do you use the "keep incomplete torrents in" option?
Care to rewrite the steps to reproduce?
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: Madoka on May 08, 2018, 12:01:59 AM
Hi Sledge, could you see if in the next release you can make qBittorrent more robust finding files when rechecking?
If I don't have the directory in my 'default save path' it just won't pick up the files, doing a recheck yields no results. The save path is corrent (folder containing sub folder of torrent name)
This is the issue I commented on in the previous beta thread and appears to be a rather long standing issue.
I have the same issue. I do not have "Keep incomplete torrent" activated.

My default folder is called "Bittorrent". Brilliant, right? I download a six episode video series, and qB puts it in a subfolder in "Bittorrent": say the "TV Show" folder in "Bittorrent." This is from a public tracker.

I can also seed this on a private tracker, as the uploader posts on multiple trackers. I download the torrent from the private tracker. If I leave the "TV show" folder in my default folder "Bittorrent", it finds and rechecks it just fine and I'm off to seed.

However, I like to keep my seeds for private trackers in subfolders, so I move the TV show folder before downloading the torrent from the private tracker. Now it's in Bittorrent>Private seeds>TV Show. I download the torrent from the private tracker, pause it, and set the download folder to "Private seeds", and start the torrent. Now qB cannot find the video files. It says I'm at 0% and will try to redownload the video files.

But, if I leave the "TV Show" folder in "Bittorrent", qB finds the folder and videos just fine and rechecks them. I can then set the download directory in the contextual menu to "Private seeds". qB will move the video files into a new subfolder in "Private Seed", but will leave the original folder in "Bittorrent" but it's now empty. Both have the exact same name. So it's like qB wants to create the folder in the "Private Seed" folder itself, and does not recognize a pre-made folder already placed there as it left the pre-made folder empty.
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: Ryrynz on May 09, 2018, 09:24:50 AM
Yeah that's exactly it. I just now had some semi torrent downloaded files in a folder, lets called it c:\1\1, now I had downloaded the entire content from elsewhere to c:\1\2, so of course I want to change the location and recheck to full. I renamed the torrent name from 1 to 2 within qBitorrent so it matched the folder name but of course that didn't update the directory link internally so I 'set location' to c:\1 and you would think that because the torrent name is 2 and the directory 2 is there under c:\1 it would pick it up, but it doesn't, it's still stuck linked to c:\1\1. So I deleted c:\1\1 and renamed c:\1\2 to c:\1\1 and of course it rechecked fine.

Alternatively like I said I probably could've moved c:\1\2 to my default download directory and it would have it picked it up there but that was 30GB so I took a shortcut.
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 11, 2018, 11:59:16 PM
Hi Sledge, could you see if in the next release you can make qBittorrent more robust finding files when rechecking?
If I don't have the directory in my 'default save path' it just won't pick up the files, doing a recheck yields no results. The save path is corrent (folder containing sub folder of torrent name)
This is the issue I commented on in the previous beta thread and appears to be a rather long standing issue.
I have the same issue. I do not have "Keep incomplete torrent" activated.

My default folder is called "Bittorrent". Brilliant, right? I download a six episode video series, and qB puts it in a subfolder in "Bittorrent": say the "TV Show" folder in "Bittorrent." This is from a public tracker.

I can also seed this on a private tracker, as the uploader posts on multiple trackers. I download the torrent from the private tracker. If I leave the "TV show" folder in my default folder "Bittorrent", it finds and rechecks it just fine and I'm off to seed.

However, I like to keep my seeds for private trackers in subfolders, so I move the TV show folder before downloading the torrent from the private tracker. Now it's in Bittorrent>Private seeds>TV Show. I download the torrent from the private tracker, pause it, and set the download folder to "Private seeds", and start the torrent. Now qB cannot find the video files. It says I'm at 0% and will try to redownload the video files.

But, if I leave the "TV Show" folder in "Bittorrent", qB finds the folder and videos just fine and rechecks them. I can then set the download directory in the contextual menu to "Private seeds". qB will move the video files into a new subfolder in "Private Seed", but will leave the original folder in "Bittorrent" but it's now empty. Both have the exact same name. So it's like qB wants to create the folder in the "Private Seed" folder itself, and does not recognize a pre-made folder already placed there as it left the pre-made folder empty.

Yeah that's exactly it. I just now had some semi torrent downloaded files in a folder, lets called it c:\1\1, now I had downloaded the entire content from elsewhere to c:\1\2, so of course I want to change the location and recheck to full. I renamed the torrent name from 1 to 2 within qBitorrent so it matched the folder name but of course that didn't update the directory link internally so I 'set location' to c:\1 and you would think that because the torrent name is 2 and the directory 2 is there under c:\1 it would pick it up, but it doesn't, it's still stuck linked to c:\1\1. So I deleted c:\1\1 and renamed c:\1\2 to c:\1\1 and of course it rechecked fine.

Alternatively like I said I probably could've moved c:\1\2 to my default download directory and it would have it picked it up there but that was 30GB so I took a shortcut.

I've reproduced it locally, and now I reported the bug to libtorrent. Follow this bug report: https://github.com/arvidn/libtorrent/issues/3021

I hadn't noticed the bug because I never follow your workflow.
In the meantime I suggest the following workflow (where applicable):
If you already have data of a torrent, then, when you are adding the torrent, point it to the correct path and let it recheck after you add it. Don't point it to the default path and then change location to where the files actually are.
The "Add new torrent" dialog is there for a reason. Use it.
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: Madoka on May 12, 2018, 04:42:42 AM
Thank you for looking into this and your advice.

When I download a torrent I have the option to "Open it in qB" which I do. But that brought up the Add torrent dialog box every time. Since for 99.9% of my torrents I just want it to start, when I first installed qB I turned off the "Display torrent options box" and forgot all about it.

Now I'll save the torrent in the monitored folder to avoid that dialog box, but have the dialog box activated when I Open a torrent with qB.
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: Ryrynz on May 16, 2018, 12:49:39 AM
Nice. On another note, I got a few of these in my log. 11-May-18 1:55 AM - 54.193.141.44 was blocked due to IP filter.
I'm not using an IP filter though, is this some auto blocking feature? If so could it be clarified in the log?
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 19, 2018, 10:57:45 AM
Nice. On another note, I got a few of these in my log. 11-May-18 1:55 AM - 54.193.141.44 was blocked due to IP filter.
I'm not using an IP filter though, is this some auto blocking feature? If so could it be clarified in the log?

Tools->Options->Connection->IP Filtering->Manually banned IP addresses...

Is the list empty?
Also in the same section is the "Filter path (.dat, .p2p, .p2b)" checkbox unchecked?
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: Ryrynz on May 24, 2018, 04:29:08 AM
Yeah empty and unchecked. Looked before posting, also I've never used them. Haven't seen any further log entries like this though.

On another note, could you copy the below layout for qbittorrent's mouse over the tray icon? I think ATM it's a bit spartan and can be improved by mirroring uTorrent's mouse over info. Cheers.

(https://i.imgur.com/4gPxmLS.jpg)
Title: Re: [official]qBittorrent 4.1.0 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 28, 2018, 12:19:49 AM
Here is qBittorrent 4.1.1 built with MSVC 2017.

4.1.1 link-> http://www.fosshub.com/qBittorrent.html
Changelog: http://www.qbittorrent.org/news.php

Libraries's version used:
Libtorrent: 1.1.7+git6ec6c1b340
Qt: 5.6.3 (32-bit) / 5.10.1 (64-bit)
Boost: 1.67.0
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: freesolo on May 28, 2018, 03:08:02 AM
Hi, would it be possible to have more details on the following feature for v4.1.1:

FEATURE: Relax behavior of "Download first and last piece first". It applies to all files and not only to the previewable. (Chocobo1)

I can't find what exactly has been modified. Thanks.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 28, 2018, 03:54:34 AM
Hi, would it be possible to have more details on the following feature for v4.1.1:

FEATURE: Relax behavior of "Download first and last piece first". It applies to all files and not only to the previewable. (Chocobo1)

I can't find what exactly has been modified. Thanks.

Till now, qbt fetched the 1st and last piece only of previewable files (think media files, avi, mkv, mp4 etc). Now it does it for all kinds of file types.
PR: https://github.com/qbittorrent/qBittorrent/pull/8954
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on May 28, 2018, 02:20:12 PM
Where can I find the changes applicable to 4.1.1 The change log lists everything.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 28, 2018, 03:53:33 PM
Where can I find the changes applicable to 4.1.1 The change log lists everything.

Damn it. There was a hickup with the site update. I'll fix it now. Check the news page again in a few moments.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on May 30, 2018, 04:31:17 AM
I expected 'run external program' to work for me now with 4.1.1 to move a completed torrent, but cmd robocopy "%D" "f:/%L/" isn't working for me.
Would really like to see this built in but until then can you provide a command that will succeed with this?
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 30, 2018, 02:32:34 PM
I expected 'run external program' to work for me now with 4.1.1 to move a completed torrent, but cmd robocopy "%D" "f:/%L/" isn't working for me.
Would really like to see this built in but until then can you provide a command that will succeed with this?

You probably need to pass the /c switch to cmd
Code: [Select]
cmd /c robocopy "%D" "f:/%L/"
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on May 31, 2018, 12:20:21 PM
Can't get anything to work, if you get the time can you hammer out a solution? Seems like there's quite a few people online that can't get this working, with uTorrent it's simple.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: sledgehammer_999 on May 31, 2018, 04:15:05 PM
Can't get anything to work, if you get the time can you hammer out a solution? Seems like there's quite a few people online that can't get this working, with uTorrent it's simple.

Can you post a screenshot of how have configured the setting in the Options dialog?
Can you also post the entry of the log? IIRC, each time the external command is invoked, the exact command is printed into the log too.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on June 07, 2018, 02:46:31 AM
Actually, don't worry, I realized that isn't going to do what I want any way. I'm simply after 'Move completed torrents to'  + 'Append the torrent's label' feature that's in uTorrent.
Potentially you could add a sub option to that that only does this once the seeding time/ratio is met.

Few other things.

It would be cool to be able to run external programs on completion only for certain categories too, so one can auto extract archives for example.

Having saved 'Set Locations' expand out on right click would be neat, I can add locations into Explorers Quick Access, it's just not as quick. Quite often we want to move things the same few places.

Is there a way of distinguishing a torrent that has trackers 'not working' especially those that have no working trackers? If not, please look into it, thanks!
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on June 08, 2018, 02:04:40 PM
Regarding the recheck issue, I've got a torrent that just won't get checked. The filenames are right, the directory is right and yet nothing.
I downloaded a few files from it because the torrent wasn't complete and added everything together, I've deleted the torrent (including ticking delete files) and readded many times
and it only checks the files I downloaded and stops.

Fixed it, thanks Explorer.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Madoka on June 08, 2018, 05:13:30 PM
I found that there is a hidden folder named .unwanted in your downloads subfolder (assuming that you have make subfolder for multiple files checked). There can be stuff in there that sometimes messes with rechecking. I've deleted that folder before a recheck and qB seems to do better.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on June 09, 2018, 09:35:28 AM
Never mind. I found the file name extensions were wrong so files weren't being picked up.
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on June 25, 2018, 09:48:37 AM
Sledge if selecting multiple torrents to move, could you make em move sequentially? It's not readily apparent how things are being moved, but the hdd is grinding more with multiple moves as long as it's all being done within the same category.

Also if it encounters another directory with the same name could you please prompt to overwrite rather than just blitzing what's already there?
Just had a BDMV overwritten with another BDMV moved to the same location.. :(

Also, please get someone to update the screenshots over at https://sourceforge.net/projects/qbittorrent/#screenshots

The issue you raised here has since been closed. https://github.com/arvidn/libtorrent/issues/3021
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: sledgehammer_999 on August 13, 2018, 01:06:44 AM
Here is qBittorrent 4.1.2 built with MSVC 2017.

4.1.2 link-> http://www.fosshub.com/qBittorrent.html
Changelog: http://www.qbittorrent.org/news.php

Libraries's version used:
Libtorrent: 1.1.9+git0bcf6cef23
Qt: 5.6.3 (32-bit) / 5.11.1 (64-bit)
Boost: 1.68.0
Title: Re: [official]qBittorrent 4.1.1 installer - Built with MSVC 2017
Post by: Ryrynz on August 15, 2018, 03:03:29 AM
Is there a way of distinguishing a torrent that has trackers 'not working' especially those that have no working trackers?

https://github.com/qbittorrent/qBittorrent/issues/8408

Sledge could someone add this? it would be a pretty quick job and would help a lot, thanks!

This one too, https://github.com/qbittorrent/qBittorrent/issues/8658

I feel like this client is really starting to come together now, what was the result of the torrent moving issue? Fixed in 4.1.2?
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: Peter on August 17, 2018, 11:01:38 AM
Quote
I feel like this client is really starting to come together now

Don't know about yuo mate, but been using it since version 2 happily on every hardware from x86, x86_64, ARM, on Linux, BSD, Windows... on servers with gbps or better connection, on home, on NAS, on routers... so yeah. I do agree, I like the continuous improvements, but the client has been very good for a long while now IMO.
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: Nemo on August 17, 2018, 07:36:37 PM
Quote
I feel like this client is really starting to come together now

The great thing is you get new features and improvments on qBittorrent side but also from libtorrent at the same time.
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: Rootax on August 22, 2018, 04:48:51 PM
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.
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: Rootax on August 24, 2018, 09:19:47 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.



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.
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: parry_hotter on August 26, 2018, 12:21:43 AM
I give up. I've already spent 15+ hrs trying to compile this thing. I thought all was going well until I get to actually compiling with Qt Creator & I get tons and tons of errors. The tutorial is not written very friendly whatsoever. I've compiled plenty of other projects perfectly fine so following directions isn't the problem. It's a poorly written guide and needs to be redone.

Edit: Mainly I feel what needs to be done is listing what additional modules need to be installed during the MSVC 2017 x64 setup. The guide states "The MSVC 2017 compiler. The Community Edition(free) will do fine.", but does not make any mention of the additional boxes that need to be checked during setup to ensure everything will work properly. The default installation will NOT work.

Secondly, the guide states "latest version of openssl", which if a user does in fact use the latest version (1.1.x), it will result in an error due to starting with 1.1.0 there are no more ms\do_*.bat files. The latest 1.0.2 version needs to be used.

Third, "Install and Configure Qt Creator" needs fixing. The dialoge boxes/layout have evidently changed since the guide was written. For example:

Select the Build & Run item from the left and select the Qt Versions tab.
Click the Add... button and select the qmake.exe you just build. It should be in G:\QBITTORRENT\install_msvc64\qt5\bin\qmake.exe

But there is no Qt Versions tab under Build & Run, hense also no "Add" button there to click on.

There may have been other changes as well, but I can't remember for sure. The entire section could be re-written with more precise steps inb correlation to the changed layout/tabs in 4.7.0.

Lastly, the Compiling qBittorrent section needs some fixes as well. "If you are compiling qBittorrent v3_3_x branch, open the winconf.pri file and adjust the paths. If v4_0_x branch is used, open conf.pri.windows, save it as conf.pri and adjust the paths."

What about 4_1_x branches?

"If you are compiling v4_0_x branch against libtorrent 1.0.x, uncomment the following line in conf.pri"

No changes needed for 1.1.x?
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: Rootax on August 26, 2018, 07:46:16 AM
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.
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: parry_hotter on August 26, 2018, 09:35:59 AM
The guide should be edited to reflect everything in the last couple of posts. ;)
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: Arby on September 05, 2018, 12:06:47 PM
Well, Everyone here is quite advanced with qB and generally. I've been using qB for a while now. I learned early on to 'not' upgrade. I just had too much trouble, for whatever reason (which others could have guessed perhaps) and found that if the program was working, Why did I need the grief?

I just got a new laptop and I'm having a harder time than I've ever had with qB. I watched a dozen YouTube vids, most which were unwatchable. Nothing here clues me in. One YouTube vid I watched showed how to simply click on search via view and it would automatically download python, which I'm missing. It worked great for him. I just got a msg saying that my python version is unknown. But if I don't have it, Isn't that a meaningless statement? At this point, I'm going to either get an answer from someone here that I can understand or just try downloading another qB because I'm certainly never going to use utorrent again.

Sorry to be whiney. Thanks in advance.

ASUS VivoBook, windows 10, 64 bit.
Title: Re: [official]qBittorrent 4.1.2 installer - Built with MSVC 2017
Post by: sledgehammer_999 on September 19, 2018, 01:37:48 AM
Here is qBittorrent 4.1.3 built with MSVC 2017.

4.1.3 link-> http://www.fosshub.com/qBittorrent.html
Changelog: http://www.qbittorrent.org/news.php

Libraries's version used:
Libtorrent: 1.1.9+git8cc93e9855
Qt: 5.6.3 (32-bit) / 5.11.1 (64-bit)
Boost: 1.68.0
Title: Re: [official]qBittorrent 4.1.3 installer - Built with MSVC 2017
Post by: sledgehammer_999 on November 19, 2018, 03:05:06 AM
Here is qBittorrent 4.1.4 built with MSVC 2017.

4.1.4 link-> http://www.fosshub.com/qBittorrent.html
Changelog: http://www.qbittorrent.org/news.php

Libraries's version used:
Libtorrent: 1.1.1
Qt: 5.6.3 (32-bit) / 5.11.2 (64-bit)
Boost: 1.68.0
Title: Re: [official]qBittorrent 4.1.4 installer - Built with MSVC 2017
Post by: Ryrynz on November 21, 2018, 11:42:44 PM
Both main page and your link still show 4.1.3, having been a couple of days I expect that this should be showing now. Nevermind, read about the crashing of the 64bit build though I haven't experienced any issues.

I have one small issue with 4.1.3 where the CPU sits at about 20% or so and the app needs to be closed every week or so to fix it, any ideas on if that's been fixed? Guess I'll find out shortly, I have it installed.