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 10.7k 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 magguz

    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.

    aha_1980A Offline
    aha_1980A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on 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
    2
    • aha_1980A aha_1980

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

      aha_1980A 1 Reply Last reply
      0
      • M magguz

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

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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
        2
        • aha_1980A aha_1980

          @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 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?"

          aha_1980A 1 Reply Last reply
          0
          • M magguz

            @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?"

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 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
            0
            • aha_1980A aha_1980

              @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 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?

              aha_1980A 1 Reply Last reply
              0
              • M magguz

                @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?

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 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
                0
                • aha_1980A aha_1980

                  @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 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

                  mrjjM 1 Reply Last reply
                  0
                  • M magguz

                    @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

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

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

                    M 1 Reply Last reply
                    0
                    • mrjjM mrjj

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

                      M Offline
                      M Offline
                      magguz
                      wrote on 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.

                      mrjjM 1 Reply Last reply
                      0
                      • M magguz

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

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 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
                        0
                        • mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #13

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

                          1 Reply Last reply
                          0
                          • mrjjM mrjj

                            @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 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?

                            mrjjM 1 Reply Last reply
                            0
                            • M magguz

                              @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?

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on 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
                              0
                              • mrjjM mrjj

                                @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 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?

                                mrjjM 1 Reply Last reply
                                0
                                • M magguz

                                  @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?

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on 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
                                  0
                                  • mrjjM mrjj

                                    @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 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?

                                    mrjjM 1 Reply Last reply
                                    0
                                    • M magguz

                                      @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?

                                      mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #19

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

                                      M 1 Reply Last reply
                                      1
                                      • mrjjM mrjj

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

                                        M Offline
                                        M Offline
                                        magguz
                                        wrote on 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.

                                        mrjjM 1 Reply Last reply
                                        0
                                        • M magguz

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

                                          mrjjM Offline
                                          mrjjM Offline
                                          mrjj
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #21

                                          @magguz
                                          Ok, then you can run nmake

                                          M 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