Allow me to reiterate what must be done before running the two build scripts:
-- Install Xcode or Command Line Tools (part of Xcode distribution) according to details I have given at beginning of this thread.
-- Install MacPorts package management system and details are given in this thread as well.
-- Once MacPorts has been in place, install necessary/extra third-party Unix packages not bundled with Mac OS X. Note svn Unix client is packaged in subversion package and there is no such thing as svn package (sorry for causing confusion). There may be dependancies among these packages but MacPorts will take care of them automatically (likely qt4-mac depends on boost thus boost does not have to be included in port command line but it won't hurt specifying boost in command line). Note since the version of libtorrent installed through MacPorts is too old, do not specify it in the port command line, instead use the build script build-qbittorrent to build any version (refer to early portion of this thread for usage information). The compiler cache ccache is for accelerate compilation process and is optional (time saved is not too much). Use command "port installed" to confirm all installed packages.
sudo port install qt4-mac boost pkgconfig subversion ccache
port installed
To update MacPorts system and all installed Unix packages, run following command sequence regularly:
sudo port selfupdate
sudo port upgrade outdated
sudo port uninstall inactive
-- Download following three files from my Dropbox site for latest copies: https://www.dropbox.com/sh/45qkagvurvxh3tp/UX0Ni-BVK3
Take note of release dates of these three files (YYYY/MM/DD format):
build-libtorrent -- 2014/08/04
build-qbittorrent -- 2014/08/04
macxconf.pri.autotools -- 2014/07/21
-- used by build-qbittorrent temporary until maintainer has committed these changes into online GitHub repository https://github.com/qbittorrent/qBittorrent
-- Gather these three files in same directory and execute the two build scripts to build libtorrent library and qbittorrent application. Just type name of the scripts and press return when you can not remember command line syntax. After execution of build-qbittorrent script, a disk image file qbittorrent-<version>.dmg will appear in the same directory for standard installation in Mac OS X.
build-libtorrent -t libtorrent-1_0_2
-- Latest libtorrent version 1.0.2 only work with latest alpha version 3.2.0 but not release version 3.1.9.2 of libtorrent (requires libtorrent version 0.16.x).
build-qbittorrent -t master
-- master version means latest alpha version 3.2.0, use "-t release-3.1.9.2" for release version 3.1.9.2 of qbittorrent application.
Followings are what I have just done to build latest versions of qbittorrent with latest versions of libtorrent library and resultant disk image files can be downloaded from the Dropbox site. Peer discovery seems improved when qbittorrent 3.2.0 is built with latest version 1.0.2 of libtorrent library. Following is a log of compilation process for release version 3.1.9.2 of qbittorrent application when build script build-qbittorrent was executed:
Code: Select all
Wangs-iMac:~/project/qbittorrent$ ./build-qbittorrent -t release-3.1.9.2
You might be prompted for administrator password.
- Compilation date: Mon Sep 15 06:46:07 SGT 2014
- Build version: release-3.1.9.2
- Source directory: release-3.1.9.2
- Environment variables during compilation:
ccache (compiler cache to enhance compilation speed):
CC=ccache clang
CXX=ccache clang++
CCACHE_PATH=/usr/bin
CCACHE_SLOPPINESS=file_macro,include_file_mtime,time_macros
CCACHE_DIR=/Users/littletree/Library/Caches/ccache
CCACHE_LOGFILE=/Users/littletree/Library/Caches/ccache.log
CCACHE_CPP2=
CCACHE_DISABLE=
pkg-config (executed in configure script):
QT_QMAKE=/opt/local/bin/qmake
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
Version of libtorrent-rasterbar library in use: 0.16.9
------------------------------------------------------------------------------------------------
Be patient, building process is on going ..................
Processor cores for multi-threading: 4
+ case $TAG in
+ /opt/local/bin/svn checkout --depth infinity https://github.com/qbittorrent/qBittorrent/tags/release-3.1.9.2 release-3.1.9.2
+ STATUS=0
+ set +x
Source code checked out successfully from svn repository.
Checked out revision 6005.
+ /opt/local/bin/port -q deactivate libtorrent-rasterbar
++ echo http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
++ /usr/bin/sed 's/^..*\/\([^/][^/]*\)$/\1/'
+ GEOIP_FILE=GeoIP.dat.gz
+ /bin/rm -f GeoIP.dat.gz
+ /usr/bin/curl -LO http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 403k 100 403k 0 0 125k 0 0:00:03 0:00:03 --:--:-- 125k
+ case $TAG in
+ /usr/bin/gzip -cd GeoIP.dat.gz
+ case $TAG in
+ cd /Users/littletree/project/qbittorrent/release-3.1.9.2
+ /opt/local/bin/qmake qbittorrent.pro
+ /usr/bin/make --silent clean
Project MESSAGE: On Mac OS X, GeoIP database must be embedded.
Project MESSAGE: Project is built in RELEASE mode.
Project MESSAGE: Disabling debug output.
Project MESSAGE: GeoIP.dat was found in src/geoip/.
Project MESSAGE: qtAddLibrary: found framework QtXml in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtGui in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtNetwork in directory /opt/local/Library/Frameworks
Project MESSAGE: qtAddLibrary: found framework QtCore in directory /opt/local/Library/Frameworks
+ /usr/bin/make -j4
+ STATUS=0
+ set +x
WARNING:
WARNING: "qbittorrent.app/Contents/Resources/qt.conf" already exists, will not overwrite.
WARNING: To make sure the plugins are loaded from the correct location,
WARNING: please make sure qt.conf contains the following lines:
WARNING: [Paths]
WARNING: Plugins = PlugIns
cache directory /Users/littletree/Library/Caches/ccache
cache hit (direct) 9
cache hit (preprocessed) 0
cache miss 212
called for link 2
called for preprocessing 13
preprocessor error 1
bad compiler arguments 2
autoconf compile/link 26
no input file 11
files in cache 795
cache size 36.9 Mbytes
max cache size 500.0 Mbytes
------------------------------------------------------------------------------------------------------------------------------
All done, resultant log files and application installation file are located in directory /Users/littletree/project/qbittorrent
------------------------------------------------------------------------------------------------------------------------------