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. Help with make of qmake makefile
Forum Updated to NodeBB v4.3 + New Features

Help with make of qmake makefile

Scheduled Pinned Locked Moved Solved General and Desktop
qmake
11 Posts 3 Posters 3.5k 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.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #2

    I know this is not really helpful but are you adamant that you need QtFtp and you cannot use QNetworkAccessManager?

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    M 1 Reply Last reply
    0
    • M Offline
      M Offline
      mar0029
      wrote on last edited by
      #3

      I know it is deprecated :/

      For speed and simplicity's sake, I used the example FTP client that was developed for QFtp and built off of that. I had no trouble getting QFtp to work on one box. But when porting to another OS, I'm having trouble.

      TL;DR
      I'm lazy.

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

        Hi,

        Where did you get the sources of QtFtp ?

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

        M 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Where did you get the sources of QtFtp ?

          M Offline
          M Offline
          mar0029
          wrote on last edited by
          #5

          @SGaist
          git://code.qt.io/qt/qtftp.git

          1 Reply Last reply
          0
          • VRoninV VRonin

            I know this is not really helpful but are you adamant that you need QtFtp and you cannot use QNetworkAccessManager?

            M Offline
            M Offline
            mar0029
            wrote on last edited by
            #6

            @VRonin
            One serious reason I would prefer to use QtFtp over QNetworkAccessManager is to list files on a server. QNetworkAccessManager has no such capability, while QFtp does.

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

              Unless I'm mistaken you are using a standard instal of Qt, right ?

              If so, it will be simpler to open the QtFtp module project with Qt Creator and build it directly from there. You will likely have less problems.

              Otherwise, what version of Qt did you install ?

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

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                Unless I'm mistaken you are using a standard instal of Qt, right ?

                If so, it will be simpler to open the QtFtp module project with Qt Creator and build it directly from there. You will likely have less problems.

                Otherwise, what version of Qt did you install ?

                M Offline
                M Offline
                mar0029
                wrote on last edited by
                #8

                @SGaist
                That is correct

                @SGaist said:

                Unless I'm mistaken you are using a standard instal of Qt, right ?

                That is correct. It is a Windows 7 machine, non-static build of Qt 5.5.1 MinGW 32bit, with Qt Creator 3.5.1

                If so, it will be simpler to open the QtFtp module project with Qt Creator and build it directly from there. You will likely have less problems.

                You mean just include the .h and .cpp files and build? The readme of the QtFtp class states that I need to run a perl script (syncqt.pl), qmake, and make.

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mar0029
                  wrote on last edited by mar0029
                  #9

                  So I've made some progress.
                  Instead of using cygwin to make, I installed this make

                  Running the perl script was fine and qmake didn't produce any output.
                  I don't know if the output produced by running make is normal or not. If someone could take a look and tell me what they see, I'd be greatly appreciative. Link to imgur upload.

                  Thank you for your time!

                  EDIT: here is a .txt version of the output.

                  M 1 Reply Last reply
                  0
                  • M mar0029

                    So I've made some progress.
                    Instead of using cygwin to make, I installed this make

                    Running the perl script was fine and qmake didn't produce any output.
                    I don't know if the output produced by running make is normal or not. If someone could take a look and tell me what they see, I'd be greatly appreciative. Link to imgur upload.

                    Thank you for your time!

                    EDIT: here is a .txt version of the output.

                    M Offline
                    M Offline
                    mar0029
                    wrote on last edited by mar0029
                    #10

                    @mar0029

                    there is a problem with MinGW and inline functions. see here
                    https://github.com/g-truc/glm/issues/300

                    thanks for the help!

                    EDIT:
                    somebody somewhere is going to get this error again. So how to solve the issue?
                    Edit the .pro file located at /yourQtSource/yourQtVersion/Src/qtftp/src/qftp
                    Add the line QMAKE_CXXFLAGS += -D__NO_INLINE__
                    also in your own .pro file for your project, add
                    include(/yourQtFtpLocation/mkspecs/modules/qt_lib_ftp.pri
                    as well as
                    INCLUDEPATH += "/path/to/your/qtftp/"
                    INCLUDEPATH += "/path/to/your/qtftp/include/QtFtp"

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

                      Once you installed QtFtp there should be no need to modify INCLUDEPATH. Adding QT += ftp should be enough.

                      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

                      • Login

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