-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with MXE #4824
compatibility with MXE #4824
Conversation
libboost_system-mgw45-mt-1_47 \ | ||
libboost_filesystem-mgw45-mt-1_47 \ | ||
libboost_thread-mgw45-mt-1_47 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this section & lib section in winconf.pri
cause error for me:
linking release\qbittorrent.exe
LINK : fatal error LNK1181: cannot open input file 'libtorrent.lib'
jom: C:\Users\VM_win7\Desktop\qBittorrent\src\makefile.release [release\qbittorr
ent.exe] Error 1181
This is NOT how it's supposed to be done. First there's a PR for that already. Second you don't edit the configure file, since that is autogenerated. You modify the qbittorrent.m4 file. Second for the libraries: you just can't ditch them. That's crazy. It should be something like this: diff --git a/winconf-mingw.pri b/winconf-mingw.pri
index 0283d23..465e4cc 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 Just removing the file versions it works with MXE. |
It is #4631. I have excluded commit 0365bd1c17aa2bfcc6f264864e6804746cf83d45 (do not check qmake existance).
Fixed. Note that I removed hardcoded paths to libs like "C:/qBittorrent/boost_1_51_0/stage/lib". I added |
I don't understand how configure works in this case. It generates a Also the changes in winconf.pri aren't desired. They serve as a guide (on what to edit) for the newcomers that want to build on windows. |
Maybe comment the paths instead? @qbittorrent/qbittorrent-frequent-contributors is that ok? |
@sledgehammer999, I have excluded commit 62ec26a307a7502ea8aadb6bca0b4ff445e60810, it is not needed for MXE. |
Oops, it is needed:
I have commented paths out. |
Neither do I. I changed it to pass QMAKE_LRELEASE to qmake as a environment variable. Maybe there is a better way to do it. |
IMO it's better to move these to |
Are you sure that nobody uses them with MinGW? By the way, only one path ( |
Nope. They can be used when building with mingw too. |
Well never mind (I think we are not talking about the same thing) and the commits are different since I checked. |
Current version only changes |
Please review this Pull Request. |
I'll try to do it tomorrow. |
@@ -53,7 +53,7 @@ CONFIG(debug, debug|release) { | |||
# Enable backtrace support | |||
CONFIG += strace_win | |||
|
|||
win32-g++ { | |||
*-g++* { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will it work if you have win32-g++*
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not documented. According to SO answers, it will.
I don't know who to get or set this string in qmake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original string is win32-g++
and you change it to *-g++*
. I am talking about changing it to win32-g++*
which means any g++ on Windows.
The question is will win32-g++*
work for MXE? Can you test it? If it does work then change it to what I suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
win32-g++*
works in MXE. The PR was updated.
Use
After you're done |
I am asking you this because I try to keep a clean and short commit history. (but not an overly compacted one) |
Mask "win32-g++" doesn't match MXE. Mask "win32-g++*" match MXE. See http://stackoverflow.com/a/14523545 See http://mxe.cc
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 qbittorrent#4824 (comment)
* remove versions from libraries, * remove *.dll from libraries (actual name of library files can be "libfoo.a")
Rebased. I haven't done it before to keep changes of the PR clear. |
Thank you. |
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 #4824 (comment)
The following patches were included in the upstream: * convert includes like <Windows.h> to lowercase qbittorrent/qBittorrent#4505 * fix library list qbittorrent/qBittorrent#4824
Source: https://github.com/mxe/mxe/blob/master/plugins/apps/qbittorrent-1-fixes.patch
(Change of winconf.pri was improved, commit "convert includes like <Windows.h> to lowercase" is not needed.)