From fa2a1ad6d387b67d2c8dfe12982f46b3a06ea07a Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 21 Feb 2016 04:08:58 +0300 Subject: [PATCH 1/4] winconf.pri: use mask "win32-g++*" Mask "win32-g++" doesn't match MXE. Mask "win32-g++*" match MXE. See http://stackoverflow.com/a/14523545 See http://mxe.cc --- winconf.pri | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winconf.pri b/winconf.pri index 631884355..2e5210106 100644 --- a/winconf.pri +++ b/winconf.pri @@ -53,7 +53,7 @@ CONFIG(debug, debug|release) { # Enable backtrace support CONFIG += strace_win -win32-g++ { +win32-g++* { include(winconf-mingw.pri) } else { From 39d8f09c38083c5c0ff8d1350154a9361f5c050b Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 21 Feb 2016 13:48:19 +0300 Subject: [PATCH 2/4] winconf.pri: change example library path for build Path with "<", ">" causes errors when building in MXE. http://mxe.cc/ Removing or commenting out these hardcoded paths is not desirable, as they serve as a guide (on what to edit) for the newcomers that want to build on windows. See https://github.com/qbittorrent/qBittorrent/pull/4824#issuecomment-186936960 --- winconf.pri | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winconf.pri b/winconf.pri index 2e5210106..d71c33db7 100644 --- a/winconf.pri +++ b/winconf.pri @@ -12,7 +12,7 @@ INCLUDEPATH += $$quote(C:/qBittorrent/openssl/include) # Point this to the boost lib folder LIBS += $$quote(-LC:/qBittorrent/boost_1_51_0/stage/lib) # Point this to the libtorrent lib folder -LIBS += $$quote(-LC:/qBittorrent/RC_0_16/bin/) +LIBS += $$quote(-LC:/qBittorrent/RC_0_16/bin/path-according-to-the-build-options-chosen) # Point this to the zlib lib folder LIBS += $$quote(-LC:/qBittorrent/Zlib/lib) # Point this to the openssl lib folder From e4c8862cc559b55b7ff8d1ec3762529f46f10b92 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 21 Feb 2016 13:44:32 +0300 Subject: [PATCH 3/4] winconf-mingw.pri: clean library names * remove versions from libraries, * remove *.dll from libraries (actual name of library files can be "libfoo.a") --- winconf-mingw.pri | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/winconf-mingw.pri b/winconf-mingw.pri index 0283d23e6..465e4cc98 100644 --- a/winconf-mingw.pri +++ b/winconf-mingw.pri @@ -22,17 +22,17 @@ RC_FILE = qbittorrent_mingw.rc # Adapt the lib names/versions accordingly CONFIG(debug, debug|release) { - LIBS += libtorrent \ - libboost_system-mgw45-mt-d-1_47 \ - libboost_filesystem-mgw45-mt-d-1_47 \ - libboost_thread-mgw45-mt-d-1_47 + LIBS += libtorrent-rasterbar \ + libboost_system-mt \ + libboost_filesystem-mt \ + libboost_thread_win32-mt } else { - LIBS += libtorrent \ - libboost_system-mgw45-mt-1_47 \ - libboost_filesystem-mgw45-mt-1_47 \ - libboost_thread-mgw45-mt-1_47 + LIBS += libtorrent-rasterbar \ + libboost_system-mt \ + libboost_filesystem-mt \ + libboost_thread_win32-mt } LIBS += libadvapi32 libshell32 libuser32 -LIBS += libcrypto.dll libssl.dll libwsock32 libws2_32 libz libiconv.dll +LIBS += libcrypto libssl libwsock32 libws2_32 libz libiconv LIBS += libpowrprof From f4dc5c6809f59b07ee4d10893dfba177357d27a5 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sun, 21 Feb 2016 13:49:28 +0300 Subject: [PATCH 4/4] configure: pass variable QMAKE_LRELEASE to qmake --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index f40f7de13..c8e29ed7a 100755 --- a/configure +++ b/configure @@ -8345,7 +8345,7 @@ fi $as_echo "$as_me: Running qmake to generate the makefile..." >&6;} CONFDIR="$( cd "$( dirname "$0" )" && pwd )" -$QT_QMAKE -r $CONFDIR/qbittorrent.pro +$QT_QMAKE -r $CONFDIR/qbittorrent.pro "QMAKE_LRELEASE=$QMAKE_LRELEASE" ret="$?" diff --git a/configure.ac b/configure.ac index 172072b5f..1ac057207 100644 --- a/configure.ac +++ b/configure.ac @@ -261,7 +261,7 @@ AS_IF([test "x$enable_systemd" = "xyes"], AC_MSG_NOTICE([Running qmake to generate the makefile...]) CONFDIR="$( cd "$( dirname "$0" )" && pwd )" -$QT_QMAKE -r [$CONFDIR]/qbittorrent.pro +$QT_QMAKE -r [$CONFDIR]/qbittorrent.pro "QMAKE_LRELEASE=$QMAKE_LRELEASE" ret="$?"