Compiling non-QT library with QT/MinGW. Where's the Qt shell/terminal for using the MinGW toolchain?
-
I want to compile an open source project, portmidi, with the toolchain provided with Qt on Windows (MinGW). The project does have a cmake build script. Does Qt have a shell/terminal with access to the toolchain like msys/mingw? I see the mingw directory in C:\Qt\Tools\mingw1120_64 but no shell. Thanks!
-
You have a link to cmd which sets up the environment in your start menu.
-
Just open a terminal and then:
$ set PATH=C:\Qt\Tools\mingw1120_64\bin;%PATH% $ gcc --version
You are all set.
But if you want to build it, I would suggest using
vcpkg
since it has a port https://vcpkg.roundtrip.dev/ports/portmidi