在Qt 5.0中添加QFtp [英] Add QFtp in Qt 5.0
本文介绍了在Qt 5.0中添加QFtp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在我的项目中使用QFtp类。
当我使用Qt 5.0进行开发时,我需要从godious仓库下载类:
当我尝试编译项目时,出现以下错误:
19:45:25:Exécutiondes étapespour le projet qtftp ...
19:45:25:Configurationinchangée,étapeQMakesautée。
19:45:25:Débute:C:\ Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe
cd src\& &安培; (如果不存在Makefile C:\ Qt \ Qt5.0.1\5.0.1\mingw47_32\bin\qmake.exe C:\ Qt\Qt5.0.1\src\qt-qtftp\\ \\ src \src.pro -o Makefile)&& C:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make -f Makefile
mingw32-make [1]:进入目录'C:/Qt/Qt5.0.1/src/qt-qtftp/ src'
cd qftp \&& (如果不存在Makefile C:\ Qt \ Qt5.0.1\5.0.1\mingw47_32\bin\qmake.exe C:\ Qt\Qt5.0.1\src\qt-qtftp\\ \\ src \qftp\qftp.pro -o Makefile)&& C:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make -f Makefile
'perl.exe'n'est pas reconnu en tant que commande interne ou externe,un program executable or un fichier de commandes。
项目MESSAGE:C:\ Qt \ Qt5.0.1\5.0.1\mingw47_32\bin\syncqt.bat -module QtFtp -mkspecsdir C:\ Qt\Qt5.0.1\ 5.0.1\mingw47_32 / mkspecs -outdir C:/Qt/Qt5.0.1/src/qt-qtftp C:/Qt/Qt5.0.1/src/qt-qtftp
项目错误:无法运行:C :\ Qt \ Qt5.0.1\5.0.1\wimw47_32\bin\syncqt.bat -module QtFtp -mkspecsdir C:\ Qt\Qt5.0.1\5.0.1\mingw47_32 / mkspecs -outdir C:/Qt/Qt5.0.1/src/qt-qtftp C:/Qt/Qt5.0.1/src/qt-qtftp
Makefile:38:目标'sub-qftp-make_first'的配方失败
mingw32-make [1]:*** [sub-qftp-make_first]错误3
mingw32-make [1]:离开目录'C:/Qt/Qt5.0.1/src/qt-qtftp / src'
makefile:40:recipe'sub-src-make_first'失败
mingw32-make:*** [sub-src-make_first]错误2
19:45: 27:Le processusC:\ Qt \ Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe代码2.
构建/部署时出错项目qtftp(套件:桌面Qt 5.0.1 MinGW 32bit)
解决方案
<下载,编译并安装该附加组件;然后在应用程序的 .pro
文件中使用
QT + = ftp
使QFtp类可用。
I need to use the QFtp class in my project.
As I develop with Qt 5.0, I have needed to download the class from the gitorious repository : https://qt.gitorious.org/qt/qtftp
When I try to compile the project, I have these errors :
19:45:25: Exécution des étapes pour le projet qtftp...
19:45:25: Configuration inchangée, étape QMake sautée.
19:45:25: Débute : "C:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe"
cd src\ && ( if not exist Makefile C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\qmake.exe C:\Qt\Qt5.0.1\src\qt-qtftp\src\src.pro -o Makefile ) && C:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make -f Makefile
mingw32-make[1]: Entering directory 'C:/Qt/Qt5.0.1/src/qt-qtftp/src'
cd qftp\ && ( if not exist Makefile C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\qmake.exe C:\Qt\Qt5.0.1\src\qt-qtftp\src\qftp\qftp.pro -o Makefile ) && C:/Qt/Qt5.0.1/Tools/MinGW/bin/mingw32-make -f Makefile
'perl.exe' n'est pas reconnu en tant que commande interne ou externe, un programme executable ou un fichier de commandes.
Project MESSAGE: C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\syncqt.bat -module QtFtp -mkspecsdir C:\Qt\Qt5.0.1\5.0.1\mingw47_32/mkspecs -outdir C:/Qt/Qt5.0.1/src/qt-qtftp C:/Qt/Qt5.0.1/src/qt-qtftp
Project ERROR: Failed to run: C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\syncqt.bat -module QtFtp -mkspecsdir C:\Qt\Qt5.0.1\5.0.1\mingw47_32/mkspecs -outdir C:/Qt/Qt5.0.1/src/qt-qtftp C:/Qt/Qt5.0.1/src/qt-qtftp
Makefile:38: recipe for target 'sub-qftp-make_first' failed
mingw32-make[1]: *** [sub-qftp-make_first] Error 3
mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.0.1/src/qt-qtftp/src'
makefile:40: recipe for target 'sub-src-make_first' failed
mingw32-make: *** [sub-src-make_first] Error 2
19:45:27: Le processus "C:\Qt\Qt5.0.1\Tools\MinGW\bin\mingw32-make.exe" s'est terminé avec le code 2.
Error while building/deploying project qtftp (kit: Desktop Qt 5.0.1 MinGW 32bit)
解决方案
Download, compile and install that add-on; then in your application's .pro
file use
QT += ftp
to make the QFtp class available.
这篇关于在Qt 5.0中添加QFtp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文