Search code examples
c++qtmoduleqtftp

Installing the qtftp module in Qt 5.6.0


I'm trying to install qftp but it does not really work. I first recovered the sources on github. Then I copied the sources to Qt's src folder and renamed the "qtftp" folder, then run the Perl syncqt.pl file to generate the headers and others. Then I did a qmake, then a make.

I then copied the QFtp folder created in the qtftp include folder into the Qt include folder. Then in the .pro file of my project, I made an include of the qt_ftp.pri file created in the qtftp folder and I added QT + = ftp. I did a qmake, everything is fine. #include does not output any error.

The self completion completes nickel for Qftp. But when compiling my project I have an error of the type "undefined reference to 'Qqft :: qftp (Qobject *)". I'm stuck, I do not know what to do.


Solution

  • I found the solution. You just had to modify the qt_ftp.pri file located in the \ modules folder by putting "include (.. \ mkspecs \ modules \ qt_lib_ftp.pri)" in the first line of the file