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. Add QFTP module in qt5
Forum Updated to NodeBB v4.3 + New Features

Add QFTP module in qt5

Scheduled Pinned Locked Moved Unsolved General and Desktop
16 Posts 5 Posters 3.2k Views 2 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.
  • Z Offline
    Z Offline
    Zunneh
    wrote on 4 Jul 2019, 10:39 last edited by
    #1

    Hello guys, i want to add QFTP module to qt5, after download the source file from github, what is the next steps ?

    0_1562236616517_Qtmou.png

    please try to be the most explicit step by step, 4 days past and i m blocked to add this module , thanks

    note : don't tell me there is QNetworkAcessManager because i need the QFtp for list() method

    J 1 Reply Last reply 4 Jul 2019, 10:47
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 4 Jul 2019, 10:47 last edited by
      #2

      What did you try exactly? What did not work?
      I would simply trying to run qmake inside the source dir and/or create a separate build dir and call qmake from there with the path to the qtftp.pro file

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      Z 1 Reply Last reply 4 Jul 2019, 10:58
      0
      • Z Zunneh
        4 Jul 2019, 10:39

        Hello guys, i want to add QFTP module to qt5, after download the source file from github, what is the next steps ?

        0_1562236616517_Qtmou.png

        please try to be the most explicit step by step, 4 days past and i m blocked to add this module , thanks

        note : don't tell me there is QNetworkAcessManager because i need the QFtp for list() method

        J Offline
        J Offline
        JonB
        wrote on 4 Jul 2019, 10:47 last edited by
        #3

        @Zunneh
        I cannot help you with how to get QFtp working, but....

        I know your question here comes as a result of your https://forum.qt.io/topic/104526/download-a-folder-with-qnetworkaccessmanager-instead-of-file. Before you have to commit to getting QFtp to work, I did ask you there:

        That means you won't be able to get a list of folder contents from server so that you can then ask it to download each one. (Unless your attempt to get() the folder URL returned anything like a list of files?)

        Did you check what your attempt to get() the folder URL actually returns? You said "it diidn't work (to do the download)", but does it return anything?

        Z 1 Reply Last reply 4 Jul 2019, 10:56
        0
        • J JonB
          4 Jul 2019, 10:47

          @Zunneh
          I cannot help you with how to get QFtp working, but....

          I know your question here comes as a result of your https://forum.qt.io/topic/104526/download-a-folder-with-qnetworkaccessmanager-instead-of-file. Before you have to commit to getting QFtp to work, I did ask you there:

          That means you won't be able to get a list of folder contents from server so that you can then ask it to download each one. (Unless your attempt to get() the folder URL returned anything like a list of files?)

          Did you check what your attempt to get() the folder URL actually returns? You said "it diidn't work (to do the download)", but does it return anything?

          Z Offline
          Z Offline
          Zunneh
          wrote on 4 Jul 2019, 10:56 last edited by
          #4

          @JonB said in Add QFTP module in qt5:

          That means you won't be able to get a list of folder contents from server so that you can then ask it to download each one. (Unless your attempt to get() the folder URL returned anything like a list of files?)

          get() didn't return anything, i saw in other post that the only solution for my problem is to install QFTP

          1 Reply Last reply
          1
          • C Christian Ehrlicher
            4 Jul 2019, 10:47

            What did you try exactly? What did not work?
            I would simply trying to run qmake inside the source dir and/or create a separate build dir and call qmake from there with the path to the qtftp.pro file

            Z Offline
            Z Offline
            Zunneh
            wrote on 4 Jul 2019, 10:58 last edited by
            #5

            @Christian-Ehrlicher i dowloaded this file, i put the directory in my desktop and i open the qtftp.pro ,then i tried Qmake no error , but when i try to build it says error 0_1562237829063_qtmarche.png

            J 1 Reply Last reply 4 Jul 2019, 11:11
            0
            • Z Zunneh
              4 Jul 2019, 10:58

              @Christian-Ehrlicher i dowloaded this file, i put the directory in my desktop and i open the qtftp.pro ,then i tried Qmake no error , but when i try to build it says error 0_1562237829063_qtmarche.png

              J Offline
              J Offline
              JonB
              wrote on 4 Jul 2019, 11:11 last edited by
              #6

              @Zunneh
              Just to let you know: once someone has helped you to get this compiled, for sample code which will copy a directory recursively via QFtp see http://www.informit.com/articles/article.aspx?p=1405552 (search for recursively; code is old but principle is correct, hopefully it still works). Listing is also covered in https://stackoverflow.com/questions/23067695/qt-4-7-how-to-iterate-through-files-in-an-ftp-directory.

              Z 1 Reply Last reply 4 Jul 2019, 11:19
              3
              • J JonB
                4 Jul 2019, 11:11

                @Zunneh
                Just to let you know: once someone has helped you to get this compiled, for sample code which will copy a directory recursively via QFtp see http://www.informit.com/articles/article.aspx?p=1405552 (search for recursively; code is old but principle is correct, hopefully it still works). Listing is also covered in https://stackoverflow.com/questions/23067695/qt-4-7-how-to-iterate-through-files-in-an-ftp-directory.

                Z Offline
                Z Offline
                Zunneh
                wrote on 4 Jul 2019, 11:19 last edited by
                #7

                @JonB Thank you , hope now someone help me to install the QFtp module

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  Christian Ehrlicher
                  Lifetime Qt Champion
                  wrote on 4 Jul 2019, 15:40 last edited by
                  #8

                  The readme states:

                  "Note: If you downloaded the source package from a hosting service
                  such as Gitorious, the package does not contain the generated headers
                  under the ./include directory. Before building, you'll need to generate
                  them manually by running the syncqt Perl script. For example:

                  cd qtftp
                  <QTDIR>/bin/syncqt.pl -version 5.x.y"

                  Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                  Visit the Qt Academy at https://academy.qt.io/catalog

                  J 1 Reply Last reply 4 Jul 2019, 19:27
                  2
                  • C Christian Ehrlicher
                    4 Jul 2019, 15:40

                    The readme states:

                    "Note: If you downloaded the source package from a hosting service
                    such as Gitorious, the package does not contain the generated headers
                    under the ./include directory. Before building, you'll need to generate
                    them manually by running the syncqt Perl script. For example:

                    cd qtftp
                    <QTDIR>/bin/syncqt.pl -version 5.x.y"

                    J Offline
                    J Offline
                    JonB
                    wrote on 4 Jul 2019, 19:27 last edited by
                    #9

                    @Christian-Ehrlicher
                    I wonder how many Windows users will have Perl installed?! :)

                    J.HilkJ 1 Reply Last reply 5 Jul 2019, 05:14
                    0
                    • C Offline
                      C Offline
                      Christian Ehrlicher
                      Lifetime Qt Champion
                      wrote on 4 Jul 2019, 19:29 last edited by
                      #10

                      @JonB : if you want to compile Qt then you have to. And since QtFtp was a part of Qt and is now deprecated it's buildsystem was never ported away from this.

                      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                      Visit the Qt Academy at https://academy.qt.io/catalog

                      J 1 Reply Last reply 4 Jul 2019, 19:31
                      2
                      • C Christian Ehrlicher
                        4 Jul 2019, 19:29

                        @JonB : if you want to compile Qt then you have to. And since QtFtp was a part of Qt and is now deprecated it's buildsystem was never ported away from this.

                        J Offline
                        J Offline
                        JonB
                        wrote on 4 Jul 2019, 19:31 last edited by
                        #11

                        @Christian-Ehrlicher
                        OIC, I have never compiled Qt, I did wonder whether that process might require Perl.
                        I remember when Perl was first invented, I had to compile it then :)

                        1 Reply Last reply
                        0
                        • J JonB
                          4 Jul 2019, 19:27

                          @Christian-Ehrlicher
                          I wonder how many Windows users will have Perl installed?! :)

                          J.HilkJ Offline
                          J.HilkJ Offline
                          J.Hilk
                          Moderators
                          wrote on 5 Jul 2019, 05:14 last edited by
                          #12

                          @JonB I installed perl, and python. Even switched my old laptop completely over to linux.
                          The things Qt made me do over the years. Stuff I swore I wouldn't ever touch again, yet here I am ...
                          -_-


                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                          Q: What's that?
                          A: It's blue light.
                          Q: What does it do?
                          A: It turns blue.

                          Z 1 Reply Last reply 6 Jul 2019, 15:40
                          2
                          • J.HilkJ J.Hilk
                            5 Jul 2019, 05:14

                            @JonB I installed perl, and python. Even switched my old laptop completely over to linux.
                            The things Qt made me do over the years. Stuff I swore I wouldn't ever touch again, yet here I am ...
                            -_-

                            Z Offline
                            Z Offline
                            Zunneh
                            wrote on 6 Jul 2019, 15:40 last edited by
                            #13

                            @J.Hilk i need to install perl to execute that script ? thanks

                            mrjjM 1 Reply Last reply 6 Jul 2019, 15:56
                            0
                            • Z Zunneh
                              6 Jul 2019, 15:40

                              @J.Hilk i need to install perl to execute that script ? thanks

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on 6 Jul 2019, 15:56 last edited by
                              #14

                              @Zunneh
                              Hi
                              yes it seems so to generate some important headers.
                              You can get it from here
                              http://downloads.activestate.com/ActivePerl/releases/5.14.2.1402/

                              Z 1 Reply Last reply 8 Jul 2019, 08:23
                              3
                              • mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on 6 Jul 2019, 16:19 last edited by
                                #15

                                Hi
                                Had to try it.
                                You can call it like

                                E:\qtftp-master>perl C:\Qt\5.12.3\msvc2017_64\bin\syncqt.pl -version 5.12.3

                                make sure to change the path to right one and also the Qt version

                                alt text
                                and it did create the include folder.

                                1 Reply Last reply
                                4
                                • mrjjM mrjj
                                  6 Jul 2019, 15:56

                                  @Zunneh
                                  Hi
                                  yes it seems so to generate some important headers.
                                  You can get it from here
                                  http://downloads.activestate.com/ActivePerl/releases/5.14.2.1402/

                                  Z Offline
                                  Z Offline
                                  Zunneh
                                  wrote on 8 Jul 2019, 08:23 last edited by Zunneh 7 Aug 2019, 13:57
                                  #16
                                  This post is deleted!
                                  1 Reply Last reply
                                  0

                                  1/16

                                  4 Jul 2019, 10:39

                                  • Login

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