Help with make of qmake makefile
-
I know this is not really helpful but are you adamant that you need QtFtp and you cannot use QNetworkAccessManager?
-
I know it is deprecated :/
For speed and simplicity's sake, I used the example FTP client that was developed for QFtp and built off of that. I had no trouble getting QFtp to work on one box. But when porting to another OS, I'm having trouble.
TL;DR
I'm lazy. -
Hi,
Where did you get the sources of QtFtp ?
-
I know this is not really helpful but are you adamant that you need QtFtp and you cannot use QNetworkAccessManager?
-
Unless I'm mistaken you are using a standard instal of Qt, right ?
If so, it will be simpler to open the QtFtp module project with Qt Creator and build it directly from there. You will likely have less problems.
Otherwise, what version of Qt did you install ?
-
Unless I'm mistaken you are using a standard instal of Qt, right ?
If so, it will be simpler to open the QtFtp module project with Qt Creator and build it directly from there. You will likely have less problems.
Otherwise, what version of Qt did you install ?
@SGaist
That is correct@SGaist said:
Unless I'm mistaken you are using a standard instal of Qt, right ?
That is correct. It is a Windows 7 machine, non-static build of Qt 5.5.1 MinGW 32bit, with Qt Creator 3.5.1
If so, it will be simpler to open the QtFtp module project with Qt Creator and build it directly from there. You will likely have less problems.
You mean just include the .h and .cpp files and build? The readme of the QtFtp class states that I need to run a perl script (syncqt.pl), qmake, and make.
-
So I've made some progress.
Instead of using cygwin to make, I installed this makeRunning the perl script was fine and qmake didn't produce any output.
I don't know if the output produced by running make is normal or not. If someone could take a look and tell me what they see, I'd be greatly appreciative. Link to imgur upload.Thank you for your time!
-
So I've made some progress.
Instead of using cygwin to make, I installed this makeRunning the perl script was fine and qmake didn't produce any output.
I don't know if the output produced by running make is normal or not. If someone could take a look and tell me what they see, I'd be greatly appreciative. Link to imgur upload.Thank you for your time!
there is a problem with MinGW and inline functions. see here
https://github.com/g-truc/glm/issues/300thanks for the help!
EDIT:
somebody somewhere is going to get this error again. So how to solve the issue?
Edit the .pro file located at /yourQtSource/yourQtVersion/Src/qtftp/src/qftp
Add the lineQMAKE_CXXFLAGS += -D__NO_INLINE__
also in your own .pro file for your project, add
include(/yourQtFtpLocation/mkspecs/modules/qt_lib_ftp.pri
as well as
INCLUDEPATH += "/path/to/your/qtftp/"
INCLUDEPATH += "/path/to/your/qtftp/include/QtFtp" -
Once you installed QtFtp there should be no need to modify INCLUDEPATH. Adding
QT += ftpshould be enough.