Unsolved QTFtp
-
Re: Cannot build QtFtp in the QT5.8
, I complie the lib successfully, but when I use the lib in VS2015
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)
-
-
@aha_1980
Yes, I saw it before. But that doesn't work. Do I need to modify some code? -
This post is deleted! -
Hi @whilaji,
so it seems to run now?
You should probably use a ftp site that is active (ftp.qt.nokia.com is not).
Regards
-
I solved the problem temporarily.
When you want to compile with visual studio 2015, you need to open vs2015 and use "Qt VS Tools"-->"Open Qt Project.pro" to open qtftp(src) .That will create a vs solution and change "property Pages-->general-->configuration Type -->lib/dll" . Not use QtCreator to compile lib/dll .The two schemes will generate different mkspecs folder and different modules/qt_ftp.pri