Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QTFtp
Forum Updated to NodeBB v4.3 + New Features

QTFtp

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 380 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • whilajiW Offline
    whilajiW Offline
    whilaji
    wrote on last edited by whilaji
    #1

    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.lib

    Qt5Ftpd.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_1980A 1 Reply Last reply
    0
    • whilajiW whilaji

      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.lib

      Qt5Ftpd.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_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by aha_1980
      #2

      Hi @whilaji,

      that was already answered by @sgaist in the other topic:

      Remove the static [from qftp.pro] and rebuild all

      Regards

      Qt has to stay free or it will die.

      whilajiW 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @whilaji,

        that was already answered by @sgaist in the other topic:

        Remove the static [from qftp.pro] and rebuild all

        Regards

        whilajiW Offline
        whilajiW Offline
        whilaji
        wrote on last edited by
        #3

        @aha_1980
        Yes, I saw it before. But that doesn't work. Do I need to modify some code?

        1 Reply Last reply
        0
        • whilajiW Offline
          whilajiW Offline
          whilaji
          wrote on last edited by whilaji
          #4
          This post is deleted!
          aha_1980A 1 Reply Last reply
          0
          • whilajiW whilaji

            This post is deleted!

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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

            Qt has to stay free or it will die.

            1 Reply Last reply
            3
            • whilajiW Offline
              whilajiW Offline
              whilaji
              wrote on last edited by whilaji
              #6

              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

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved