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. Cannot build QtFtp in the QT5.3
Forum Updated to NodeBB v4.3 + New Features

Cannot build QtFtp in the QT5.3

Scheduled Pinned Locked Moved General and Desktop
9 Posts 3 Posters 3.9k 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.
  • C Offline
    C Offline
    chz0405
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      First thing to check is: do you have perl installed ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • C Offline
        C Offline
        chz0405
        wrote on last edited by
        #3

        no, but how to install the perl?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You have "here":http://qt-project.org/wiki/Building_Qt_5_from_Git#aea23489ce3aa9b6406ebb28e0cda430 the reference for perl

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • C Offline
            C Offline
            chz0405
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Did you compiled QtFtp statically ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • C Offline
                C Offline
                chz0405
                wrote on last edited by
                #7

                I use QtCreater to compile.
                This is qftp.pro
                load(qt_build_config)

                TARGET = QtFtp
                CONFIG += static shared
                #CONFIG -= shared
                QT = core network

                MODULE_PRI = ../../modules/qt_ftp.pri
                MODULE = ftp

                load(qt_module)

                Input

                HEADERS += qftp.h qurlinfo.h
                SOURCES += qftp.cpp qurlinfo.cpp

                whilajiW 1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Remove the static and rebuild all

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • C chz0405

                    I use QtCreater to compile.
                    This is qftp.pro
                    load(qt_build_config)

                    TARGET = QtFtp
                    CONFIG += static shared
                    #CONFIG -= shared
                    QT = core network

                    MODULE_PRI = ../../modules/qt_ftp.pri
                    MODULE = ftp

                    load(qt_module)

                    Input

                    HEADERS += qftp.h qurlinfo.h
                    SOURCES += qftp.cpp qurlinfo.cpp

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

                    • Login

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