Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Qt build a project / create an .exe file

    General and Desktop
    4
    7
    4224
    Loading More Posts
    • 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.
    • hello
      hello last edited by

      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 Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by mrjj

        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 Reply Quote 2
        • V
          VRonin last edited by VRonin

          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

          mrjj 1 Reply Last reply Reply Quote 2
          • mrjj
            mrjj Lifetime Qt Champion @VRonin last edited by

            @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 Reply Quote 0
            • hello
              hello last edited by

              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 Reply Quote 0
              • mrjj
                mrjj Lifetime Qt Champion last edited by

                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 Reply Quote 2
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  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 Reply Quote 2
                  • First post
                    Last post