Unsolved Add QFTP module in qt5
-
What did you try exactly? What did not work?
I would simply trying to run qmake inside the source dir and/or create a separate build dir and call qmake from there with the path to the qtftp.pro file -
@Zunneh
I cannot help you with how to get QFtp working, but....I know your question here comes as a result of your https://forum.qt.io/topic/104526/download-a-folder-with-qnetworkaccessmanager-instead-of-file. Before you have to commit to getting
QFtp
to work, I did ask you there:That means you won't be able to get a list of folder contents from server so that you can then ask it to download each one. (Unless your attempt to
get()
the folder URL returned anything like a list of files?)Did you check what your attempt to
get()
the folder URL actually returns? You said "it diidn't work (to do the download)", but does it return anything? -
@JonB said in Add QFTP module in qt5:
That means you won't be able to get a list of folder contents from server so that you can then ask it to download each one. (Unless your attempt to get() the folder URL returned anything like a list of files?)
get() didn't return anything, i saw in other post that the only solution for my problem is to install QFTP
-
@Christian-Ehrlicher i dowloaded this file, i put the directory in my desktop and i open the qtftp.pro ,then i tried Qmake no error , but when i try to build it says error
-
@Zunneh
Just to let you know: once someone has helped you to get this compiled, for sample code which will copy a directory recursively viaQFtp
see http://www.informit.com/articles/article.aspx?p=1405552 (search forrecursively
; code is old but principle is correct, hopefully it still works). Listing is also covered in https://stackoverflow.com/questions/23067695/qt-4-7-how-to-iterate-through-files-in-an-ftp-directory. -
@JonB Thank you , hope now someone help me to install the QFtp module
-
The readme states:
"Note: If you downloaded the source package from a hosting service
such as Gitorious, the package does not contain the generated headers
under the ./include directory. Before building, you'll need to generate
them manually by running the syncqt Perl script. For example:cd qtftp
<QTDIR>/bin/syncqt.pl -version 5.x.y" -
@Christian-Ehrlicher
I wonder how many Windows users will have Perl installed?! :) -
@JonB : if you want to compile Qt then you have to. And since QtFtp was a part of Qt and is now deprecated it's buildsystem was never ported away from this.
-
@Christian-Ehrlicher
OIC, I have never compiled Qt, I did wonder whether that process might require Perl.
I remember when Perl was first invented, I had to compile it then :) -
@JonB I installed perl, and python. Even switched my old laptop completely over to linux.
The things Qt made me do over the years. Stuff I swore I wouldn't ever touch again, yet here I am ...
-_- -
@J.Hilk i need to install perl to execute that script ? thanks
-
@Zunneh
Hi
yes it seems so to generate some important headers.
You can get it from here
http://downloads.activestate.com/ActivePerl/releases/5.14.2.1402/ -
Hi
Had to try it.
You can call it likeE:\qtftp-master>perl C:\Qt\5.12.3\msvc2017_64\bin\syncqt.pl -version 5.12.3
make sure to change the path to right one and also the Qt version
and it did create the include folder. -
This post is deleted!