I collected Qt through MSYS2, now I need examples. What is the command in the shell for installing examples? (worth mingw64).

    1 answer 1

    If you have already compiled Qt from source, then also collect examples:

    • Go to the Qt source code directory, then to qtbase/examples ;
    • To collect all the examples at once (it will take a lot of time and disk space):

      $ qmake

      $ make

    (or for Windows: qmake.exe and mingw64-make.exe respectively).

    You can collect examples separately, only interested:

    • Go to the directory of the desired project (for example, qtbase/examples/gui/analogclock );

    • Perform the qmake and make actions described above.

    A little explanation for a newbie:

    qmake - the program creates a Makefile based on the project description file .pro that is characteristic of your system configuration.

    make - actually executes the build script, i.e. collects the executable module (application, library) from the source code (runs the compiler and linker).

    • Thanks for the advice, but you did not quite understand me. To build Qt, I used the msys2 installer, where through the console it is fully automated that you can build Qt from the floor with both dynamics and statics. It's just that my rating is not enough to put the msys2 tag. Everything works fine for me, but now I’ve started to learn OpenGL and I need examples - this is certainly not critical, but still unpleasant. - Tony Estakado