erniberni
erniberni

Reputation: 391

How to use add-on "QtFtp"?

I want to use FTP in my current project, but since Qt5 ftp isn't available (only as add-on).

I downloaded the sources from here: https://github.com/qt/qtftp In Qt's forum, I found a instruction how to use it:

  1. Open Console in the qtftp-folder
  2. Generate the headers: cd qtftp, <QTDIR>/bin/syncqt.pl -version 5.2.0
  3. Run qmake
  4. Run make (mingw32-make)
  5. Run make install (mingw32-make install)
  6. Add QT += ftp in my .pro-file
  7. Run qmake on my project
  8. compile my project.

(https://forum.qt.io/topic/23904/qtftp-and-qthttp-compatibility-add-ons-for-qhttp-and-qftp-classes-in-qt-5)

So, I wanted to try these steps, but it fails on the first step, because the syncqt.pl cant be found, but I looked in the Qt-directory, and the file is there.

Anybody has an idea, how to fix/solve this? I am using Qt5.9.1

Upvotes: 4

Views: 2047

Answers (1)

erniberni
erniberni

Reputation: 391

If you have downloaded the portable version of strawberry-perl like me, just extract .zip somewhere on your disk. After that, open the portableshell.bat (it should open a command prompt window) After that, you can type in the code of step 2, and don't forget to add the -version argument.

Then you can continue with step 3, and everything should work without any problems.

Upvotes: 1

Related Questions