Solved How can i use QFtp on Qt5.5
-
HI, everyone:
I installed Qt5.5 on my computer which is based on Linux.
When i compile my program it can't find QFtp.
I don't know what to do.Please help.
-
@victor-wang
Did you add header#include <QFtp>
to it?
And also did you includeQT += network
in .Pro file?
For Qt5 and aboveQT += ftp
. -
-
@victor-wang
can you show me your code? -
@victor-wang QFtp is not par of Qt5 any-more, you will need to build it from source.
-
@Ratzz
Sure, but i can't post all of it cause it's too many. -
@jsulm
I just figure it out on internet.
I had download the source already but i do not know how to do.
Please help! -
@victor-wang In a terminal got to the directory where qtftp.pro file is located, call qmake there (the one from your Qt5.5), then call make and then make install. For make install you probably will need root if you install Qt from your Linux repository.
Alternative: in QtCreator open qtftp.pro file and build the project. -
@jsulm
I got this error
what should i do ?
-
@victor-wang Image sharing is not working in this forum. Please just copy/paste the text.
-
@jsulm
I had solve the problem from your step.
I think the reason why i will get the error is because the path of the compiler i didn't set well.
Thanks for your help!
Appreciate!