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. QFtp under Qt 5
Forum Updated to NodeBB v4.3 + New Features

QFtp under Qt 5

Scheduled Pinned Locked Moved Unsolved General and Desktop
28 Posts 3 Posters 11.1k 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.
  • M Offline
    M Offline
    magguz
    wrote on 20 Dec 2017, 19:38 last edited by
    #1

    Hi,

    I want to use the Qftp class under Qt 5, because I want to get the list of files from a directory on a FTP-Server. Could anyone tell me how I can add the Qftp class in Qt 5.10.0? I'm using the Qt Creator 4.5.0 under Windows 10. I have read already some instructions here in the forum, but it doesn't work.

    I hope someone can help me.

    Thanks in advance.

    A 1 Reply Last reply 20 Dec 2017, 20:04
    0
    • M magguz
      20 Dec 2017, 19:38

      Hi,

      I want to use the Qftp class under Qt 5, because I want to get the list of files from a directory on a FTP-Server. Could anyone tell me how I can add the Qftp class in Qt 5.10.0? I'm using the Qt Creator 4.5.0 under Windows 10. I have read already some instructions here in the forum, but it doesn't work.

      I hope someone can help me.

      Thanks in advance.

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 20 Dec 2017, 20:04 last edited by
      #2

      Hi @magguz,

      I have read already some instructions here in the forum, but it doesn't work.

      At which point exactly do you encounter problems? Please provide more (and exact) information so we can help you.

      Thanks.

      Qt has to stay free or it will die.

      M 1 Reply Last reply 20 Dec 2017, 20:39
      2
      • A aha_1980
        20 Dec 2017, 20:04

        Hi @magguz,

        I have read already some instructions here in the forum, but it doesn't work.

        At which point exactly do you encounter problems? Please provide more (and exact) information so we can help you.

        Thanks.

        M Offline
        M Offline
        magguz
        wrote on 20 Dec 2017, 20:39 last edited by
        #3

        @aha_1980 said in QFtp under Qt 5:

        Hi @magguz,

        I have read already some instructions here in the forum, but it doesn't work.

        At which point exactly do you encounter problems? Please provide more (and exact) information so we can help you.

        Thanks.

        Hi,

        I followed these steps: https://forum.qt.io/topic/64412/how-to-add-qftp-in-qt5

        The first step I have done. But the other steps are not detailed enouqh. For example which qmake is meant? There are more than one qmake.exe in the qt-Folder.

        A 1 Reply Last reply 20 Dec 2017, 20:41
        0
        • M magguz
          20 Dec 2017, 20:39

          @aha_1980 said in QFtp under Qt 5:

          Hi @magguz,

          I have read already some instructions here in the forum, but it doesn't work.

          At which point exactly do you encounter problems? Please provide more (and exact) information so we can help you.

          Thanks.

          Hi,

          I followed these steps: https://forum.qt.io/topic/64412/how-to-add-qftp-in-qt5

          The first step I have done. But the other steps are not detailed enouqh. For example which qmake is meant? There are more than one qmake.exe in the qt-Folder.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 20 Dec 2017, 20:41 last edited by
          #4

          @magguz said in QFtp under Qt 5:

          There are more than one qmake.exe in the qt-Folder.

          Then choose the one from the Qt version you want to use the QFtp class afterwards.

          Qt has to stay free or it will die.

          M 1 Reply Last reply 20 Dec 2017, 21:52
          2
          • A aha_1980
            20 Dec 2017, 20:41

            @magguz said in QFtp under Qt 5:

            There are more than one qmake.exe in the qt-Folder.

            Then choose the one from the Qt version you want to use the QFtp class afterwards.

            M Offline
            M Offline
            magguz
            wrote on 20 Dec 2017, 21:52 last edited by
            #5

            @aha_1980 said in QFtp under Qt 5:

            @magguz said in QFtp under Qt 5:

            There are more than one qmake.exe in the qt-Folder.

            Then choose the one from the Qt version you want to use the QFtp class afterwards.

            I have chosen the following qmake-file: c:\Qt\Qt5.10.0\5.10.0\winrt_x64_msvc2017\bin\qmake

            But I get this error: "Project ERROR: Cannot run target compiler 'cl'. Maybe you forgot to setup the environment?"

            A 1 Reply Last reply 20 Dec 2017, 21:59
            0
            • M magguz
              20 Dec 2017, 21:52

              @aha_1980 said in QFtp under Qt 5:

              @magguz said in QFtp under Qt 5:

              There are more than one qmake.exe in the qt-Folder.

              Then choose the one from the Qt version you want to use the QFtp class afterwards.

              I have chosen the following qmake-file: c:\Qt\Qt5.10.0\5.10.0\winrt_x64_msvc2017\bin\qmake

              But I get this error: "Project ERROR: Cannot run target compiler 'cl'. Maybe you forgot to setup the environment?"

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 20 Dec 2017, 21:59 last edited by
              #6

              @magguz said in QFtp under Qt 5:

              I have chosen the following qmake-file: c:\Qt\Qt5.10.0\5.10.0\winrt_x64_msvc2017\bin\qmake

              But I get this error: "Project ERROR: Cannot run target compiler 'cl'. Maybe you forgot to setup the environment?"

              You get this error at the command prompt? To setup the environment for MSVC you have to open a "Visual Studio Command Prompt" (not sure how it is called exactly) from the Start Menu. Note that this compile has to match the Qt version.

              I'm also not sure if WinRT is the best choice...

              Qt has to stay free or it will die.

              M 1 Reply Last reply 20 Dec 2017, 22:03
              0
              • A aha_1980
                20 Dec 2017, 21:59

                @magguz said in QFtp under Qt 5:

                I have chosen the following qmake-file: c:\Qt\Qt5.10.0\5.10.0\winrt_x64_msvc2017\bin\qmake

                But I get this error: "Project ERROR: Cannot run target compiler 'cl'. Maybe you forgot to setup the environment?"

                You get this error at the command prompt? To setup the environment for MSVC you have to open a "Visual Studio Command Prompt" (not sure how it is called exactly) from the Start Menu. Note that this compile has to match the Qt version.

                I'm also not sure if WinRT is the best choice...

                M Offline
                M Offline
                magguz
                wrote on 20 Dec 2017, 22:03 last edited by
                #7

                @aha_1980 said in QFtp under Qt 5:

                @magguz said in QFtp under Qt 5:

                I have chosen the following qmake-file: c:\Qt\Qt5.10.0\5.10.0\winrt_x64_msvc2017\bin\qmake

                But I get this error: "Project ERROR: Cannot run target compiler 'cl'. Maybe you forgot to setup the environment?"

                You get this error at the command prompt? To setup the environment for MSVC you have to open a "Visual Studio Command Prompt" (not sure how it is called exactly) from the Start Menu. Note that this compile has to match the Qt version.

                I'm also not sure if WinRT is the best choice...

                Yes, I get this error at the command prompt. Which qmake do you recommend to choose?

                A 1 Reply Last reply 20 Dec 2017, 22:06
                0
                • M magguz
                  20 Dec 2017, 22:03

                  @aha_1980 said in QFtp under Qt 5:

                  @magguz said in QFtp under Qt 5:

                  I have chosen the following qmake-file: c:\Qt\Qt5.10.0\5.10.0\winrt_x64_msvc2017\bin\qmake

                  But I get this error: "Project ERROR: Cannot run target compiler 'cl'. Maybe you forgot to setup the environment?"

                  You get this error at the command prompt? To setup the environment for MSVC you have to open a "Visual Studio Command Prompt" (not sure how it is called exactly) from the Start Menu. Note that this compile has to match the Qt version.

                  I'm also not sure if WinRT is the best choice...

                  Yes, I get this error at the command prompt. Which qmake do you recommend to choose?

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 20 Dec 2017, 22:06 last edited by
                  #8

                  @magguz said in QFtp under Qt 5:

                  Yes, I get this error at the command prompt. Which qmake do you recommend to choose?

                  At this point it would be interesting to know which Compilers (version and bitness) you have and which Qt-Versions (version, compiler and bitness).

                  At the end, your choice depends on the target platform your application will run on.

                  Qt has to stay free or it will die.

                  M 1 Reply Last reply 20 Dec 2017, 22:13
                  0
                  • A aha_1980
                    20 Dec 2017, 22:06

                    @magguz said in QFtp under Qt 5:

                    Yes, I get this error at the command prompt. Which qmake do you recommend to choose?

                    At this point it would be interesting to know which Compilers (version and bitness) you have and which Qt-Versions (version, compiler and bitness).

                    At the end, your choice depends on the target platform your application will run on.

                    M Offline
                    M Offline
                    magguz
                    wrote on 20 Dec 2017, 22:13 last edited by
                    #9

                    @aha_1980 said in QFtp under Qt 5:

                    @magguz said in QFtp under Qt 5:

                    Yes, I get this error at the command prompt. Which qmake do you recommend to choose?

                    At this point it would be interesting to know which Compilers (version and bitness) you have and which Qt-Versions (version, compiler and bitness).

                    At the end, your choice depends on the target platform your application will run on.

                    Qt-Version is 5.10.0, Compiler is MinGW 5.3.0
                    I want to run the application on Windows 10 / 64 bit

                    M 1 Reply Last reply 20 Dec 2017, 22:21
                    0
                    • M magguz
                      20 Dec 2017, 22:13

                      @aha_1980 said in QFtp under Qt 5:

                      @magguz said in QFtp under Qt 5:

                      Yes, I get this error at the command prompt. Which qmake do you recommend to choose?

                      At this point it would be interesting to know which Compilers (version and bitness) you have and which Qt-Versions (version, compiler and bitness).

                      At the end, your choice depends on the target platform your application will run on.

                      Qt-Version is 5.10.0, Compiler is MinGW 5.3.0
                      I want to run the application on Windows 10 / 64 bit

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 20 Dec 2017, 22:21 last edited by
                      #10

                      @magguz
                      winrt_x64_msvc2017 ?
                      Are you make a modern app ?
                      Not a Desktop app?

                      M 1 Reply Last reply 20 Dec 2017, 22:23
                      0
                      • M mrjj
                        20 Dec 2017, 22:21

                        @magguz
                        winrt_x64_msvc2017 ?
                        Are you make a modern app ?
                        Not a Desktop app?

                        M Offline
                        M Offline
                        magguz
                        wrote on 20 Dec 2017, 22:23 last edited by
                        #11

                        @mrjj said in QFtp under Qt 5:

                        @magguz
                        winrt_x64_msvc2017 ?
                        Are you make a modern app ?
                        Not a Desktop app?

                        I want to make a Desktop app.

                        M 1 Reply Last reply 20 Dec 2017, 22:25
                        0
                        • M magguz
                          20 Dec 2017, 22:23

                          @mrjj said in QFtp under Qt 5:

                          @magguz
                          winrt_x64_msvc2017 ?
                          Are you make a modern app ?
                          Not a Desktop app?

                          I want to make a Desktop app.

                          M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 20 Dec 2017, 22:25 last edited by
                          #12

                          @magguz
                          ok did you install Qt for Desktop app also?
                          you should use qmake from that folder. not winrt

                          M 1 Reply Last reply 20 Dec 2017, 22:30
                          0
                          • M Offline
                            M Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on 20 Dec 2017, 22:25 last edited by
                            #13

                            mine is
                            "C:\Qt\5.9.2\msvc2015_64\bin\qmake.exe"

                            1 Reply Last reply
                            0
                            • M mrjj
                              20 Dec 2017, 22:25

                              @magguz
                              ok did you install Qt for Desktop app also?
                              you should use qmake from that folder. not winrt

                              M Offline
                              M Offline
                              magguz
                              wrote on 20 Dec 2017, 22:30 last edited by
                              #14

                              @mrjj said in QFtp under Qt 5:

                              @magguz
                              ok did you install Qt for Desktop app also?

                              Yes.

                              you should use qmake from that folder. not winrt

                              I have installed Qt under C:\Qt\

                              In the directory c:\Qt\Qt5.10.0\5.10.0\ there are different folders which contain a qmake-file. Can you tell me which is the right one?

                              M 1 Reply Last reply 20 Dec 2017, 22:33
                              0
                              • M magguz
                                20 Dec 2017, 22:30

                                @mrjj said in QFtp under Qt 5:

                                @magguz
                                ok did you install Qt for Desktop app also?

                                Yes.

                                you should use qmake from that folder. not winrt

                                I have installed Qt under C:\Qt\

                                In the directory c:\Qt\Qt5.10.0\5.10.0\ there are different folders which contain a qmake-file. Can you tell me which is the right one?

                                M Offline
                                M Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on 20 Dec 2017, 22:33 last edited by
                                #15

                                @magguz
                                Well i dont know mow much extra besides for Desktop you have installed.

                                how many qmake.exe do you have ?

                                M 1 Reply Last reply 20 Dec 2017, 22:35
                                0
                                • M mrjj
                                  20 Dec 2017, 22:33

                                  @magguz
                                  Well i dont know mow much extra besides for Desktop you have installed.

                                  how many qmake.exe do you have ?

                                  M Offline
                                  M Offline
                                  magguz
                                  wrote on 20 Dec 2017, 22:35 last edited by
                                  #16

                                  @mrjj said in QFtp under Qt 5:

                                  @magguz
                                  Well i dont know mow much extra besides for Desktop you have installed.

                                  how many qmake.exe do you have ?

                                  There are 14 folders with a qmake-file. Is "msvc2017_64" perhaps the right directory?

                                  M 1 Reply Last reply 20 Dec 2017, 22:40
                                  0
                                  • M magguz
                                    20 Dec 2017, 22:35

                                    @mrjj said in QFtp under Qt 5:

                                    @magguz
                                    Well i dont know mow much extra besides for Desktop you have installed.

                                    how many qmake.exe do you have ?

                                    There are 14 folders with a qmake-file. Is "msvc2017_64" perhaps the right directory?

                                    M Offline
                                    M Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on 20 Dec 2017, 22:40 last edited by
                                    #17

                                    @magguz
                                    it looks right yes.
                                    And make sure you run in a visual command prompt so it can find its nmake.exe etc.

                                    M 1 Reply Last reply 20 Dec 2017, 22:53
                                    0
                                    • M mrjj
                                      20 Dec 2017, 22:40

                                      @magguz
                                      it looks right yes.
                                      And make sure you run in a visual command prompt so it can find its nmake.exe etc.

                                      M Offline
                                      M Offline
                                      magguz
                                      wrote on 20 Dec 2017, 22:53 last edited by
                                      #18

                                      @mrjj said in QFtp under Qt 5:

                                      @magguz
                                      it looks right yes.
                                      And make sure you run in a visual command prompt so it can find its nmake.exe etc.

                                      I used the "Developer Command Prompt for VS 2017" and I run the qmake in the folder "msvc2017_64". Now it created a stash-file. Is that correct?

                                      M 1 Reply Last reply 20 Dec 2017, 22:55
                                      0
                                      • M magguz
                                        20 Dec 2017, 22:53

                                        @mrjj said in QFtp under Qt 5:

                                        @magguz
                                        it looks right yes.
                                        And make sure you run in a visual command prompt so it can find its nmake.exe etc.

                                        I used the "Developer Command Prompt for VS 2017" and I run the qmake in the folder "msvc2017_64". Now it created a stash-file. Is that correct?

                                        M Offline
                                        M Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on 20 Dec 2017, 22:55 last edited by
                                        #19

                                        @magguz
                                        Yes sounds good. should also have created a makefile for the next step

                                        M 1 Reply Last reply 20 Dec 2017, 22:58
                                        1
                                        • M mrjj
                                          20 Dec 2017, 22:55

                                          @magguz
                                          Yes sounds good. should also have created a makefile for the next step

                                          M Offline
                                          M Offline
                                          magguz
                                          wrote on 20 Dec 2017, 22:58 last edited by
                                          #20

                                          @mrjj said in QFtp under Qt 5:

                                          @magguz
                                          Yes sounds good. should also have created a makefile for the next step

                                          Yes, there is a makefile.

                                          M 1 Reply Last reply 20 Dec 2017, 23:02
                                          0

                                          6/28

                                          20 Dec 2017, 21:59

                                          topic:navigator.unread, 22
                                          • Login

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