0
votes

I want to integrate GTK+3.24.21 (Glade) libs with Codeblocks 17.12 for compiling of GTK+ C apps. I installed mingw64 compiler, Glade, and GKT via MSYS2 MSYS (from official website) using these commands pacman -S mingw-w64-x86_64-gtk3 pacman -S mingw-w64-x86_64-gtkmm3 pacman -S mingw-w64-x86_64-glade. I've tried to create GTK project through "GTK+ project" category and it failed cos I just can't point to the right directory of GTK libs. I've tried this one: "C:\msys64\mingw64\include\gtk-3.0\gtk" ,but it failed cos there is no "include" folder. The only way I managed to reach the goal was to choose mingw64 as compiler and to create "Console project", change "Build options" to the following: other compiler options - pkg-config gtk+-3.0 --cflags, other linker options - pkg-config gtk+-3.0 --libs. So now compiler is able to get libs. The result of compilation and running of the program is UI window and console behind it. So I'm looking for the way to create project through "GTK+ project" category or if the first is impossible to conceal the console window behind the main UI window.

1

1 Answers

1
votes

I've found out that it's quite complicated to make Codeblocks' wizard find GTK libs. So the solution is to create "Empty project" in Codeblocks and change these settings (look at the pic) of the project. enter image description here