Hi,
This is the 3rd day of me searching for a solution. I have recently installed qt5 after reading all those pages telling me how fabulous it is. To my surprize QFtp has been removed. I’m not sure if I understand why qftp was removed considering there is no equivalent (QNetworkAccessManager is not a equivalent, try and remove a file through an FTP connection with it).
Yesterday it turns out that QFtp is still available, but it needs to be downloaded and installed seperately. So I downloaded the source code. And now I’m pretty much stuck. I was sure I read somewhere that QT has the most help when it comes to helping people to learn. It turns out I must be wrong because the only actual solution I could find during the last 3 days was this:
http://qt-project.org/forums/viewthread/24466
After reading the replies from that thread, I did the following:
downloaded QFTP from : https://qt.gitorious.org/qt/qtftp
extracted in my C:\Qt\Qt5.1.0\QFtp
opened the QT Command prompt by searching QT in the start menu.
navigated to the directory where i extracted QFtp
run qmake and got this warning
C:/Qt/Qt5.1.0/QFtp/mkspecs/modules/qt_lib_ftp.pri:9: WARNING: Include file C:/Qt/mkspecs/modules-inst/qt_lib_ftp.pri not found
run mingw32-make and got this output:
cd src\ && ( if not exist Makefile C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin\qmake.exe
C:\Qt\Qt5.1.0\QFtp\src\src.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src'
cd qftp\ && ( if not exist Makefile C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin\qmake.exe
C:\Qt\Qftp\src\qftp\qftp.pro -o Makefile ) && mingw32-make -f Makefile
mingw32-make[2]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin\qmake.exe -o Makefile qftp.pro
C:/Qt/Qt5.1.0/QFtp/mkspecs/modules/qt_lib_ftp.pri:9: WARNING: Include file C:/Qt
/mkspecs/modules-inst/qt_lib_ftp.pri not found
mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make[2]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make -f Makefile.Release all
mingw32-make[3]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make[3]: Nothing to be done for 'all'.
mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make -f Makefile.Debug all
mingw32-make[3]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make[3]: Nothing to be done for 'all'.
mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src'@@
run mingw32-make install and got this output:
cd src\ && ( if not exist Makefile C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin\qmake.exe
C:\Qt\Qt5.1.0\QFtp\src\src.pro -o Makefile ) && mingw32-make -f Makefile install
mingw32-make[1]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src'
cd qftp\ && ( if not exist Makefile C:\Qt\Qt5.1.0\5.1.0\mingw48_32\bin\qmake.exe
C:\Qt\Qftp\src\qftp\qftp.pro -o Makefile ) && mingw32-make -f Makefile install
mingw32-make[2]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make -f Makefile.Release install
mingw32-make[3]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
copy /y "..\..\lib\Qt5Ftp.prl" "C:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib\Qt5Ftp.prl"
1 file(s) copied.
copy /y "..\..\lib\pkgconfig\Qt5Ftp.pc" "C:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib\pkgc
onfig\Qt5Ftp.pc"
1 file(s) copied.
copy /y "..\..\lib\libQt5Ftp.a" "C:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib\libQt5Ftp.a"
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\include\QtFtp\QtFtpDepends C:\Qt\Qt5.1.0\\5.1.0\mingw
48_32\include\QtFtp
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\mkspecs\modules-inst\qt_lib_ftp.pri C:\Qt\Qt5.1.0\\5.
1.0\mingw48_32\mkspecs\modules
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\lib\cmake\Qt5Ftp\Qt5FtpConfig.cmake C:\Qt\Qt5.1.0\\5.
1.0\mingw48_32\lib\cmake\Qt5Ftp
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\lib\cmake\Qt5Ftp\Qt5FtpConfigVersion.cmake C:\Qt\Qt5.
1.0\\5.1.0\mingw48_32\lib\cmake\Qt5Ftp
1 file(s) copied.
mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make -f Makefile.Debug install
mingw32-make[3]: Entering directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
copy /y "..\..\lib\Qt5Ftpd.prl" "C:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib\Qt5Ftpd.prl"
1 file(s) copied.
copy /y "..\..\lib\pkgconfig\Qt5Ftp.pc" "C:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib\pkgc
onfig\Qt5Ftp.pc"
1 file(s) copied.
copy /y "..\..\lib\libQt5Ftpd.a" "C:\Qt\Qt5.1.0\5.1.0\mingw48_32\lib\libQt5Ftpd.
a"
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\include\QtFtp\QtFtpDepends C:\Qt\Qt5.1.0\\5.1.0\mingw
48_32\include\QtFtp
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\mkspecs\modules-inst\qt_lib_ftp.pri C:\Qt\Qt5.1.0\\5.
1.0\mingw48_32\mkspecs\modules
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\lib\cmake\Qt5Ftp\Qt5FtpConfig.cmake C:\Qt\Qt5.1.0\\5.
1.0\mingw48_32\lib\cmake\Qt5Ftp
1 file(s) copied.
copy /y C:\Qt\Qt5.1.0\QFtp\lib\cmake\Qt5Ftp\Qt5FtpConfigVersion.cmake C:\Qt\Qt5.
1.0\\5.1.0\mingw48_32\lib\cmake\Qt5Ftp
1 file(s) copied.
mingw32-make[3]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make[2]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src/qftp'
mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.1.0/QFtp/src'
opened my project and included QT += ftp
run qmake in my project
tried to build and run but got this error
C:\Users\Dachckol\Dropbox\programs\c++\QT\CWMods\CWMods\ftpwritter.h:13: error: QFtp: No such file or directory
Please tell me how to actually install QFtp and please provide me with details. Tell me exactly what to do instead of things like “build and install QFtp”.
Thank You,
↧