Qt build a project / create an .exe file



  • 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


  • Qt Champions 2016

    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 :)



  • 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 )


  • Qt Champions 2016

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



  • 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!


  • Qt Champions 2016

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

    Not sure if commercial will become open when expire.


  • Lifetime Qt Champion

    Hi,

    No it doesn't automagically become Open Source.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.