CLion to build Gtk3 app on Windows

已回答

Has anyone had success building an application using Gtk3 with CLion on Windows? If so, how did you set it up? Using mingw64?

0

According to this, you can either use GTK from vcpkg packages with MSVC toolchain, or use GTK from MSYS2 packages with corresponding MinGW toolchain (Step 5 in the mentioned instruction).

About using packages from vscpkg in CLion: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003891219/comments/360000525599. 

About linking libraries in CMake projects in general: https://www.jetbrains.com/help/clion/quick-cmake-tutorial.html#link-libs.

About using GTK in CMake projects, for example: https://stackoverflow.com/questions/45091927/building-gtk-application-with-cmake-on-windows.

1

请先登录再写评论。