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. Qt build a project / create an .exe file
QtWS25 Last Chance

Qt build a project / create an .exe file

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 4 Posters 4.9k Views
  • 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.
  • H Offline
    H Offline
    hello
    wrote on 20 Jun 2016, 15:05 last edited by
    #1

    Hey,

    i am absolutely new to Qt. And all I would like to do is to change program code and compile / build it again and finally create a .exe file out of the code.

    I am using win10 and QT Creator 4.02

    Here is the source code I would like to build:
    https://github.com/JensReimann/RTKLIB/tree/rtklib_2.4.3

    Now to start I would like to build the application RTKNAVI.
    That is why I opened

    Jens\RTKLIB-rtklib_2.4.3\app\rtknavi_qt

    with Qt Creator. Next step I pressed right click in my projects and Run -> qmake

    This was my output:
    17:02:16: Running steps for project rtknavi_qt...
    17:02:16: Starting: "C:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe" C:\Users...\Desktop\Jens\RTKLIB-rtklib_2.4.3\app\rtknavi_qt\rtknavi_qt.pro -r -spec win32-g++ "CONFIG+=qtquickcompiler"
    17:02:18: The process "C:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe" exited normally.
    17:02:18: Elapsed time: 00:02.

    Afterwards I pressed right click and Build

    This was my output:
    17:03:03: Running steps for project rtknavi_qt...
    17:03:03: Configuration unchanged, skipping qmake step.
    17:03:03: Starting: "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe"
    C:/Qt/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory 'C:/Users/Markus/Desktop/Jens/RTKLIB-rtklib_2.4.3/app/build-rtknavi_qt-Desktop_Qt_5_7_0_MinGW_32bit-Release'
    mingw32-make[1]: Leaving directory 'C:/Users/Markus/Desktop/Jens/RTKLIB-rtklib_2.4.3/app/build-rtknavi_qt-Desktop_Qt_5_7_0_MinGW_32bit-Release'
    mingw32-make[1]: *** No rule to make target '../../src/debug/libRTKLib.a', needed by 'release\rtknavi_qt.exe'. Stop.
    Makefile:34: recipe for target 'release' failed
    mingw32-make: *** [release] Error 2
    17:03:04: The process "C:\Qt\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project rtknavi_qt (kit: Desktop Qt 5.7.0 MinGW 32bit)
    When executing step "Make"
    17:03:04: Elapsed time: 00:01.

    So I guess my main error is:
    mingw32-make[1]: *** No rule to make target '../../src/debug/libRTKLib.a', needed by 'release\rtknavi_qt.exe'. Stop.

    I do not know how to solve that error. I would appreciate it if somebody can check building the code avilable at the above mentioned Link. And explain me a little bit more detailed what to do in order to create a .exe file out of the code.

    Best
    hello

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 20 Jun 2016, 16:03 last edited by mrjj
      #2

      Hi and welcome
      I just tried with Qt 5.6 on win 10.

      I just open the RTKLib.pro and pressed run.

      then i got ( after 600 warnings :)

      1 Reply Last reply
      2
      • V Offline
        V Offline
        VRonin
        wrote on 20 Jun 2016, 16:07 last edited by VRonin
        #3

        try skipping QtCreator all together, open the command prompt, type:

        "C:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qtenv2.bat"
        echo on
        cd "C:\Users\Markus\Desktop\Jens\RTKLIB-rtklib_2.4.3"
        qmake
        mingw32-make
        

        qtenv2.bat might have a different name ( I use MSVC )

        "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 20 Jun 2016, 16:13
        2
        • V VRonin
          20 Jun 2016, 16:07

          try skipping QtCreator all together, open the command prompt, type:

          "C:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qtenv2.bat"
          echo on
          cd "C:\Users\Markus\Desktop\Jens\RTKLIB-rtklib_2.4.3"
          qmake
          mingw32-make
          

          qtenv2.bat might have a different name ( I use MSVC )

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 20 Jun 2016, 16:13 last edited by
          #4

          @VRonin
          i use mingw
          i have
          "C:\Qt\Qt5.5.0\5.6\mingw49_32\bin\qtenv2.bat"
          so seems ok.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hello
            wrote on 21 Jun 2016, 07:30 last edited by
            #5

            Wow thanks for that fast help!
            I tried this one again but it did not work (got some errors)
            "C:\Qt\Qt5.7.0\5.7\mingw53_32\bin\qtenv2.bat"
            echo on
            cd "C:\Users\Markus\Desktop\Jens\RTKLIB-rtklib_2.4.3"
            qmake

            however I just downloaded all the files again and just
            "open the RTKLib.pro and pressed run.
            then i got ( after 600 warnings :)
            mingw32-make
            "
            -> it worked!

            One more question here. I have a Qt account which will expire within 30 days.
            What Qt account / license do you guys have is there any license which is unlimited allowing me to use Qt creator?

            Thanks again!

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 21 Jun 2016, 07:33 last edited by
              #6

              Hi
              The open source will not expire
              https://www.qt.io/download-open-source/

              Not sure if commercial will become open when expire.

              1 Reply Last reply
              2
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 21 Jun 2016, 20:13 last edited by
                #7

                Hi,

                No it doesn't automagically become Open Source.

                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
                2

                5/7

                21 Jun 2016, 07:30

                • Login

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