{"id":9485,"date":"2019-04-20T07:50:02","date_gmt":"2019-04-20T07:50:02","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=9485"},"modified":"2019-04-23T08:32:28","modified_gmt":"2019-04-23T08:32:28","slug":"clion-with-msys2","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=9485","title":{"rendered":"CLion with MSYS2 and Qt"},"content":{"rendered":"<h1>MinGW-w64<\/h1>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/36375081\/how-to-run-clion-with-msys2-on-windows\">How to run CLion with msys2 on windows<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ pacman -S mingw-w64-x86_64-toolchain\r\n\r\n( 1\/43) installing mingw-w64-x86_64-libiconv\r\n( 2\/43) installing mingw-w64-x86_64-gmp\r\n( 3\/43) installing mingw-w64-x86_64-mpfr\r\n( 4\/43) installing mingw-w64-x86_64-mpc\r\n( 5\/43) installing mingw-w64-x86_64-libwinpthread-git\r\n( 6\/43) installing mingw-w64-x86_64-gcc-libs\r\n( 7\/43) installing mingw-w64-x86_64-bzip2\r\n( 8\/43) installing mingw-w64-x86_64-zlib\r\n( 9\/43) installing mingw-w64-x86_64-binutils\r\n(10\/43) installing mingw-w64-x86_64-headers-git\r\n(11\/43) installing mingw-w64-x86_64-crt-git\r\n(12\/43) installing mingw-w64-x86_64-isl\r\n(13\/43) installing mingw-w64-x86_64-windows-default-manifest\r\n(14\/43) installing mingw-w64-x86_64-winpthreads-git\r\n(15\/43) installing mingw-w64-x86_64-gcc\r\n(16\/43) installing mingw-w64-x86_64-gcc-ada\r\n(17\/43) installing mingw-w64-x86_64-gcc-libgfortran\r\n(18\/43) installing mingw-w64-x86_64-gcc-fortran\r\n(19\/43) installing mingw-w64-x86_64-gcc-objc\r\n(20\/43) installing mingw-w64-x86_64-expat\r\n(21\/43) installing mingw-w64-x86_64-libffi\r\n(22\/43) installing mingw-w64-x86_64-mpdecimal\r\n(23\/43) installing mingw-w64-x86_64-gettext\r\n(24\/43) installing mingw-w64-x86_64-libtre-git\r\n(25\/43) installing mingw-w64-x86_64-libsystre\r\n(26\/43) installing mingw-w64-x86_64-ncurses\r\n(27\/43) installing mingw-w64-x86_64-libtasn1\r\n(28\/43) installing mingw-w64-x86_64-p11-kit\r\n(29\/43) installing mingw-w64-x86_64-ca-certificates\r\n(30\/43) installing mingw-w64-x86_64-openssl\r\n(31\/43) installing mingw-w64-x86_64-tcl\r\n(32\/43) installing mingw-w64-x86_64-tk\r\n(33\/43) installing mingw-w64-x86_64-xz\r\n(34\/43) installing mingw-w64-x86_64-termcap\r\n(35\/43) installing mingw-w64-x86_64-readline\r\n(36\/43) installing mingw-w64-x86_64-sqlite3\r\n(37\/43) installing mingw-w64-x86_64-python3\r\n(38\/43) installing mingw-w64-x86_64-gdb\r\n(39\/43) installing mingw-w64-x86_64-libmangle-git\r\n(40\/43) installing mingw-w64-x86_64-make\r\n(41\/43) installing mingw-w64-x86_64-pkg-config\r\n(42\/43) installing mingw-w64-x86_64-tools-git\r\n(43\/43) installing mingw-w64-x86_64-winstorecompat-git\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nC:\\Qt\\Tools\\mingw730_64\r\n\r\n&quot;C:\\Program Files\\JetBrains\\CLion 2019.1.2\\bin\\cmake\\win\\bin\\cmake.exe&quot; -DCMAKE_BUILD_TYPE=Debug -G &quot;CodeBlocks - MinGW Makefiles&quot; C:\\Users\\andreas\\CLionProjects\\abc\r\n-- The C compiler identification is GNU 7.3.0\r\n-- The CXX compiler identification is GNU 7.3.0\r\n-- Check for working C compiler: C:\/Qt\/Tools\/mingw730_64\/bin\/gcc.exe\r\n-- Check for working C compiler: C:\/Qt\/Tools\/mingw730_64\/bin\/gcc.exe -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Check for working CXX compiler: C:\/Qt\/Tools\/mingw730_64\/bin\/g++.exe\r\n-- Check for working CXX compiler: C:\/Qt\/Tools\/mingw730_64\/bin\/g++.exe -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\n-- Detecting CXX compile features\r\n-- Detecting CXX compile features - done\r\n-- Configuring done\r\n-- Generating done\r\n-- Build files have been written to: C:\/Users\/andreas\/CLionProjects\/abc\/cmake-build-debug\r\n&#x5B;Finished]\r\n<\/pre>\n<h1>CLion Qt Support<\/h1>\n<p><a href=\"https:\/\/blog.jetbrains.com\/clion\/2014\/09\/clion-answers-frequently-asked-questions\/\">CLion answers frequently asked questions<\/a><br \/>\n<a href=\"https:\/\/youtrack.jetbrains.com\/issue\/CPP-494\">Support Makefile projects<\/a><br \/>\n<a href=\"https:\/\/youtrack.jetbrains.com\/issue\/CPP-318\">Support Qt Projects<\/a><br \/>\n<a href=\"https:\/\/youtrack.jetbrains.com\/issue\/CPP-193\">Support Autotools-based projects<\/a><\/p>\n<h1>CMake and Qt<\/h1>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/47754952\/linking-qt-on-clion\">Linking Qt on CLion<\/a><br \/>\n<a href=\"https:\/\/doc.qt.io\/qt-5\/cmake-manual.html\">CMake Manual<\/a><br \/>\n<a href=\"https:\/\/intellij-support.jetbrains.com\/hc\/en-us\/community\/posts\/206607545-How-to-use-Qt-in-CLion\">How to use Qt in CLion<\/a><br \/>\n<a href=\"https:\/\/github.com\/pbek\/QOwnNotes\/blob\/develop\/src\/CMakeLists.txt\">github.com\/pbek\/QOwnNotes\/src\/CMakeLists.txt<\/a><br \/>\n<a href=\"https:\/\/www.youtube.com\/watch?v=4YGdJdfG6y4\">Lion + Qt<\/a><\/p>\n<h3><code>CMAKE_PREFIX_PATH<\/code><\/h3>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/37025763\/using-clion-with-qt\">using CLion with QT<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nset(CMAKE_PREFIX_PATH C:\/Qt\/5.12.3\/mingw73_64)\r\n<\/pre>\n<h3>Verbose<\/h3>\n<p><a href=\"https:\/\/superuser.com\/questions\/1065550\/show-full-build-output-in-clion\">Show full build output in CLion<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nset(CMAKE_VERBOSE_MAKEFILE ON)\r\n<\/pre>\n<h3>DLL not found<\/h3>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/28331722\/undefined-qt5-references-in-c-using-cmake-mingw-in-windows-with-clion\">Undefined Qt5 references in C++ using CMake (mingw) in Windows with CLion<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9485","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9485"}],"version-history":[{"count":9,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9485\/revisions"}],"predecessor-version":[{"id":9506,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/9485\/revisions\/9506"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}