CLion with MSYS2 and Qt

MinGW-w64

How to run CLion with msys2 on windows

$ pacman -S mingw-w64-x86_64-toolchain

( 1/43) installing mingw-w64-x86_64-libiconv
( 2/43) installing mingw-w64-x86_64-gmp
( 3/43) installing mingw-w64-x86_64-mpfr
( 4/43) installing mingw-w64-x86_64-mpc
( 5/43) installing mingw-w64-x86_64-libwinpthread-git
( 6/43) installing mingw-w64-x86_64-gcc-libs
( 7/43) installing mingw-w64-x86_64-bzip2
( 8/43) installing mingw-w64-x86_64-zlib
( 9/43) installing mingw-w64-x86_64-binutils
(10/43) installing mingw-w64-x86_64-headers-git
(11/43) installing mingw-w64-x86_64-crt-git
(12/43) installing mingw-w64-x86_64-isl
(13/43) installing mingw-w64-x86_64-windows-default-manifest
(14/43) installing mingw-w64-x86_64-winpthreads-git
(15/43) installing mingw-w64-x86_64-gcc
(16/43) installing mingw-w64-x86_64-gcc-ada
(17/43) installing mingw-w64-x86_64-gcc-libgfortran
(18/43) installing mingw-w64-x86_64-gcc-fortran
(19/43) installing mingw-w64-x86_64-gcc-objc
(20/43) installing mingw-w64-x86_64-expat
(21/43) installing mingw-w64-x86_64-libffi
(22/43) installing mingw-w64-x86_64-mpdecimal
(23/43) installing mingw-w64-x86_64-gettext
(24/43) installing mingw-w64-x86_64-libtre-git
(25/43) installing mingw-w64-x86_64-libsystre
(26/43) installing mingw-w64-x86_64-ncurses
(27/43) installing mingw-w64-x86_64-libtasn1
(28/43) installing mingw-w64-x86_64-p11-kit
(29/43) installing mingw-w64-x86_64-ca-certificates
(30/43) installing mingw-w64-x86_64-openssl
(31/43) installing mingw-w64-x86_64-tcl
(32/43) installing mingw-w64-x86_64-tk
(33/43) installing mingw-w64-x86_64-xz
(34/43) installing mingw-w64-x86_64-termcap
(35/43) installing mingw-w64-x86_64-readline
(36/43) installing mingw-w64-x86_64-sqlite3
(37/43) installing mingw-w64-x86_64-python3
(38/43) installing mingw-w64-x86_64-gdb
(39/43) installing mingw-w64-x86_64-libmangle-git
(40/43) installing mingw-w64-x86_64-make
(41/43) installing mingw-w64-x86_64-pkg-config
(42/43) installing mingw-w64-x86_64-tools-git
(43/43) installing mingw-w64-x86_64-winstorecompat-git
C:\Qt\Tools\mingw730_64

"C:\Program Files\JetBrains\CLion 2019.1.2\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\andreas\CLionProjects\abc
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: C:/Qt/Tools/mingw730_64/bin/gcc.exe
-- Check for working C compiler: C:/Qt/Tools/mingw730_64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Qt/Tools/mingw730_64/bin/g++.exe
-- Check for working CXX compiler: C:/Qt/Tools/mingw730_64/bin/g++.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/andreas/CLionProjects/abc/cmake-build-debug
[Finished]

CLion Qt Support

CLion answers frequently asked questions
Support Makefile projects
Support Qt Projects
Support Autotools-based projects

CMake and Qt

Linking Qt on CLion
CMake Manual
How to use Qt in CLion
github.com/pbek/QOwnNotes/src/CMakeLists.txt
Lion + Qt

CMAKE_PREFIX_PATH

using CLion with QT

set(CMAKE_PREFIX_PATH C:/Qt/5.12.3/mingw73_64)

Verbose

Show full build output in CLion

set(CMAKE_VERBOSE_MAKEFILE ON)

DLL not found

Undefined Qt5 references in C++ using CMake (mingw) in Windows with CLion

Leave a Reply

Your email address will not be published. Required fields are marked *