Cannot build QtFtp in the QT5.3
-
I download QFTP from : https://qt.gitorious.org/qt/qtftp, then open the qftp.pro use QtCreater, but can't build the pro file.
The message is :
-1: error: Failed to run: perl -w D:\qt5\qtbase\bin\syncqt.pl -module QtFtp -version 5.0.0 -outdir D:/qt5/qtbase D:/GIT/qtftp.
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”. -
Hi and welcome to devnet,
First thing to check is: do you have perl installed ?
-
You have "here":http://qt-project.org/wiki/Building_Qt_5_from_Git#aea23489ce3aa9b6406ebb28e0cda430 the reference for perl
-
thank you, I complie the lib successfully, but when I use the lib
there is something wrong,
The message is:
Qt5Ftpd.lib(qurlinfo.obj) : error LNK2005: "public: class QString __cdecl QUrlInfo::name(void)const " (?name@QUrlInfo@@QEBA?AVQString@@XZ) already defined in Qt5Networkd.libQt5Ftpd.lib(qurlinfo.obj) : error LNK2005: "public: __int64 __cdecl QUrlInfo::size(void)const " (?size@QUrlInfo@@QEBA_JXZ) already defined in Qt5Networkd.lib(Qt5Networkd.dll)
1>Qt5Ftpd.lib(qurlinfo.obj) : error LNK2005: "public: class QDateTime __cdecl QUrlInfo::lastModified(void)const " (?lastModified@QUrlInfo@@QEBA?AVQDateTime@@XZ) already defined in Qt5Networkd.lib(Qt5Networkd.dll)
1>Qt5Ftpd.lib(qurlinfo.obj) : error LNK2005: "public: bool __cdecl QUrlInfo::isFile(void)const " (?isFile@QUrlInfo@@QEBA_NXZ) already defined in Qt5Networkd.lib(Qt5Networkd.dll)
1>Qt5Ftpd.lib(qurlinfo.obj) : error LNK2005: "public: bool __cdecl QUrlInfo::isReadable(void)const " (?isReadable@QUrlInfo@@QEBA_NXZ) already defined in Qt5Networkd.lib(Qt5Networkd.dll)
-
Did you compiled QtFtp statically ?
-
I use QtCreater to compile.
This is qftp.pro
load(qt_build_config)TARGET = QtFtp
CONFIG += static shared
#CONFIG -= shared
QT = core networkMODULE_PRI = ../../modules/qt_ftp.pri
MODULE = ftpload(qt_module)
Input
HEADERS += qftp.h qurlinfo.h
SOURCES += qftp.cpp qurlinfo.cpp -
Remove the static and rebuild all