Author Topic: [official]qBittorrent 3.3.16 installer - Built with MSVC 2017  (Read 47181 times)

Nemo

  • qBittorrent Forum
  • Administrator
  • Forum addict
  • *****
  • Posts: 1468
  • Karma: +90/-0
    • View Profile
Re: [official]qBittorrent 3.3.1 installer - Built with MSVC 2013
« Reply #30 on: February 02, 2016, 07:43:48 PM »
Interesting Github issue here: https://github.com/qbittorrent/qBittorrent/pull/4253#issuecomment-177006712

Would be good to close this topic and open a new one with qBittorrent v3.3.3 (sledge ::)?)
« Last Edit: February 02, 2016, 08:02:09 PM by Nemo »
Forum Rules and Guidelines

Forum Admin.
Dutch & Turkish Translator.




Nemo

  • qBittorrent Forum
  • Administrator
  • Forum addict
  • *****
  • Posts: 1468
  • Karma: +90/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #31 on: February 09, 2016, 07:49:22 PM »
Here is the official release from qBittorrent v3.3.3.

qBittorrent v3.3.3:
http://www.fosshub.com/qBittorrent.html

Changelog:
http://qbittorrent.sourceforge.net/news.php

Libraries's version used:
Libtorrent: 1.0.8+git08d19b5
Qt: 5.5.1
Boost: 1.60.0

Sidenote:
Its not my build/release. All the credits go to sledge and the guys at Github for their hard work and contributions. I only updated this page with the current stable release.
« Last Edit: February 09, 2016, 07:55:17 PM by Nemo »
Forum Rules and Guidelines

Forum Admin.
Dutch & Turkish Translator.




Papanikles

  • Member
  • **
  • Posts: 65
  • Karma: +2/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #32 on: February 12, 2016, 02:49:42 AM »
I saw QT/Boost/Libttorrent are different from wiki page. If someone can update the page will be great: https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2013-%28static-linkage%29
« Last Edit: February 13, 2016, 04:27:48 PM by Papanikles »

ciaobaby

  • Forum addict
  • ****
  • Posts: 2778
  • Karma: +98/-24
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #33 on: February 13, 2016, 01:29:36 PM »
Quote
If someone can update the page will be great:

Provided you have a 'github' account you can edit or update pages on the 'wiki' for yourself, should you find errors or inaccuracies..
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

Papanikles

  • Member
  • **
  • Posts: 65
  • Karma: +2/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #34 on: February 13, 2016, 06:48:13 PM »
I like to help but I don't know how was configured QT5. I tried follow steps that wiki indicated for QT4 but QT5 have a different struct.

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #36 on: February 13, 2016, 06:51:43 PM »
PS: Don't edit that wiki page. Create a new one.

Papanikles

  • Member
  • **
  • Posts: 65
  • Karma: +2/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #37 on: February 13, 2016, 09:07:43 PM »
Thank you sledgehammer_999.

So, qBittorrent is now build with MSVC 2015, QT5.5.1, libttorrent 1.0.8, boost 1.60 and openssl 1.0.2e.

Qtcreater? Perl? NASM?

I'll try later compile. If I succeed I'll create a new wiki page.

Isabelxxx

  • Member
  • **
  • Posts: 25
  • Karma: +3/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #38 on: March 06, 2016, 04:09:30 AM »
Any final official info about how to compile things with all the new changes?

Need it for testing qbit+libtorrent 1.1 with the last cache bug-fix.

https://github.com/arvidn/libtorrent/issues/456#issuecomment-192729019

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #39 on: March 07, 2016, 01:12:07 AM »
Any final official info about how to compile things with all the new changes?

Need it for testing qbit+libtorrent 1.1 with the last cache bug-fix.

https://github.com/arvidn/libtorrent/issues/456#issuecomment-192729019

I just wrote a detailed guide. It describes the method used for the official build.
However, libtorent 1.1.x needs slightly different configure options:

Code: [Select]
b2 -q --without-python --toolset=msvc-14.0 variant=release link=static runtime-link=static debug-symbols=on encryption=on crypto=openssl logging=off resolve-countries=off dht=on windows-version=xp character-set=unicode boost-link=static -sBOOST_ROOT="G:\qBittorrent\boost_1_60_0" include="G:\QBITTORRENT\install_msvc\base\include" library-path="G:\QBITTORRENT\install_msvc\base\lib" --prefix="G:\QBITTORRENT\install_msvc\base" define=_USING_V110_SDK71_ define=BOOST_ASIO_DISABLE_CONNECTEX define=BOOST_USE_WINAPI_VERSION=0x0501 cxxflags=/arch:IA32 --hash -j 12
Also in winconf-msvc.pri file you need to add the chrono and random boost libs. It should look like this:

Code: [Select]
# Adapt the lib names/versions accordingly
CONFIG(debug, debug|release) {
  LIBS += libtorrentd.lib \
          libboost_system-vc90-mt-sgd-1_51.lib
} else {
  LIBS += libtorrent.lib \
          libboost_system-vc140-mt-s-1_60.lib \
          libboost_chrono-vc140-mt-s-1_60.lib \
          libboost_random-vc140-mt-s-1_60.lib
}

Here is the wiki page. Atm, github errors out when I try to link it to the main wiki page. I'll try again later.

Papanikles

  • Member
  • **
  • Posts: 65
  • Karma: +2/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #40 on: March 08, 2016, 01:11:33 AM »
Great job, sledgehammer_999! The problem with boost 1.60 is fixed? I remember you recommend boost 1.55 for some reason.

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #41 on: March 09, 2016, 09:27:34 PM »
It probably is fixed.

Isabelxxx

  • Member
  • **
  • Posts: 25
  • Karma: +3/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #42 on: March 11, 2016, 12:53:54 AM »
Thanks sledgehammer_999 it finally worked for me

Found some little issues if you follow the guide as it is, maybe this helps to others.

At some point when building qBit in the Qtcreator in some of the includes in the .h files it looks for "install_msvc\base\include\boost" not boost-1_60 so it will not work.

Found the best approach is to rename all libs after copying them to Qbitorrent workdir and remove version numbers in all steps, like here:
https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2013-%28static-linkage%29

In winconf.pri it would be:
Code: [Select]
# Point this to the libtorrent include folder
INCLUDEPATH += $$quote(C:/qBittorrent/install_msvc/base/include/boost)

And also renaming the appropriate folder within include to "boost" too. For the guide, better that approach so every command is not version number related but more general, like the other guide. As soon as you update one lib you have to look through all the commands slowly to not miss a wrong name.
Apart from that the updated guide is perfect.

Can anyone edit the wiki? I mean, could I add those changes?

Also not sure why but zlib.pdb is not created at all with zlib-1.2.8 (although there is a zlib1.pdb); so I followed the guide without it and it worked. Not sure if that's important.
« Last Edit: March 11, 2016, 12:57:04 AM by Isabelxxx »

sledgehammer_999

  • qBittorrent maintainer
  • Administrator
  • Forum addict
  • *****
  • Posts: 2397
  • Karma: +148/-1
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #43 on: March 13, 2016, 09:19:32 PM »
Thanks sledgehammer_999 it finally worked for me

Found some little issues if you follow the guide as it is, maybe this helps to others.

At some point when building qBit in the Qtcreator in some of the includes in the .h files it looks for "install_msvc\base\include\boost" not boost-1_60 so it will not work.

Found the best approach is to rename all libs after copying them to Qbitorrent workdir and remove version numbers in all steps, like here:
https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2013-%28static-linkage%29

In winconf.pri it would be:
Code: [Select]
# Point this to the libtorrent include folder
INCLUDEPATH += $$quote(C:/qBittorrent/install_msvc/base/include/boost)

And also renaming the appropriate folder within include to "boost" too. For the guide, better that approach so every command is not version number related but more general, like the other guide. As soon as you update one lib you have to look through all the commands slowly to not miss a wrong name.
Apart from that the updated guide is perfect.

Can anyone edit the wiki? I mean, could I add those changes?

Also not sure why but zlib.pdb is not created at all with zlib-1.2.8 (although there is a zlib1.pdb); so I followed the guide without it and it worked. Not sure if that's important.

I specifically say what lines to edit and what lines to comment out in the .pri files. It means that you need to put the correct boost folder name and boost .lib names.
I removed zlib.pdb because that was a remnant from my old instructions.

Isabelxxx

  • Member
  • **
  • Posts: 25
  • Karma: +3/-0
    • View Profile
Re: [official]qBittorrent 3.3.3 installer - Built with MSVC 2013
« Reply #44 on: March 13, 2016, 11:00:04 PM »
This is what you suggest
Quote
INCLUDEPATH += $$quote(G:/qBittorrent/install_msvc/base/include/boost-1_60)
This is what it should be
Quote
INCLUDEPATH += $$quote(C:/qBittorrent/install_msvc/base/include/boost)

Quote
I specifically say what lines to edit and what lines to comment out in the .pri files. It means that you need to put the correct boost folder name and boost .lib names.

I did it and independently to how yo edit that pri file, MSVC looks for "boost"at some point when compiling, not boost-1_60.

You can name the .../qBittorrent/boost-XXX folder whatever you want though as you suggest, but the subfolder within include must be boost.  That's why I say is not right as it is.

And then if you need that extra renaming step at the end because you added the version numbers to the folder names from the start, it simply makes more sense to remove them  from the names like the old guide workflow.


Not sure if I'm explaining it right.