Linux under compilation QBittorrent-3.1.9.2

Source: Internet
Author: User

Preface

Qbittorrent is a new lightweight BitTorrent client that can run on Linux, Windows, and other possible systems, it's easy to use, beautiful look, and powerful, it's a great BT download tool under Linux. But want to use it is not simple, waste my two days to finally fix, record the process of settlement, for two days a summary of the hard!

configuration information and required software

Operating system: CentOS 6.5 32-bit

QT version:Qt4.6.2, comes with the system when installed.

Compiler: gcc4.8.2, you need to compile it yourself.

Debugger: gdb7.7, you need to compile yourself.

qbittorrent compilation relies on Libtorrent-rasterbar, boost library, version information is as follows:

Boost version: Boost_1_55_0

Note: The boost4.x version of CentOS is not full, when compiling libtorrent-rasterbar-0.16.0, will not find multi-threaded so files, uninstall boost, re-compiled version 1.55.0.

libtorrent-rasterbar Version: libtorrent-rasterbar-0.16.0.tar.gz

Note: Thelibtorrent-rasterbar version can not be too high, I have tested the latest 1.0.1 version compilation will be problematic, and the low version of 0.15.0 compiled however, this is a long time wasted.

1. First compile gcc and gdb.

gcc4.8.2 compile see previously written centos offline installation gcc4.8.2

gdb7.7 compilation is relatively simple, do not say. But must compile because the system comes with the compiler when debugging with Qtctreator because the version is too low, there is no debugging information.

2, compile boos when t need to pay attention to things.

Before compiling boost, try to uninstall the system comes with the boost library, otherwise, the program may refer to the old version of the boost caused some messy errors, I have eaten on this. Uninstall command

Yum remove boost or rpm-e boost. (I seem to use the first kind of)

3.qbittorrentCompile.

Configure the Qtcreator build kit, using Qt4.6.2.

Modify the/qbittorrent-3.1.9.2/src/src.pro file to add the following comments to the file in the middle of the code

TEMPLATE = AppCONFIG + = qt thread############## #文章来自: http://blog.csdn.net/windows_nt######### #DEFINES +=boost_asio_ Separate_compilationdefines + = Boost_asio_dyn_linklibs + $ (boost_lib)/libtorrent-rasterbar.so.6libs + =-L$ (BOOST_ LIB)         -lboost_thread         -lboost_system         -lboost_filesystem         -lssl-lcrypto-lidn-lpthread-lz########## ######################################################### Windows specific Configurationwin32 {  include (.. /WINCONF.PRI)  }


You can now compile the qbittorrent with Qtcreator, which takes about a minute or so. The interface runs as follows



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.