Code::Blocks Forums

User forums => Help => Topic started by: tumanovalex on September 16, 2022, 05:35:21 pm

Title: Windows 10, msys2 and GTK
Post by: tumanovalex on September 16, 2022, 05:35:21 pm
I installed msys2 on disk C in the default directory msys64. Using the commands:
Code
pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-gdb
pacman -S make
pacman -S mingw-w64-x86_64-cmake
pacman -S mingw-w64-x86_64-pkg-config
pacman -S --needed mingw-w64-x86_64-toolchain
installed the compiler and GTK.
When creating a GTK application and selecting a directory C:\msys64\mingw64\include\gtk-3.0 a message appears that include was not detected. Which directory msys2 should I specify for the project to be created?
Title: Re: Windows 10, msys2 and GTK
Post by: tumanovalex on September 17, 2022, 04:48:58 pm
I tried to set up the project. Previously, there were the following libraries in the project settings in Linker settings->Link libraries:
      <Linker>
         <Add library="gtk-win32-3.0" />
         <Add library="gobject-2.0" />
         <Add library="glib-2.0" />
      </Linker>
I didn't find these libraries in msys2. Please tell me which libraries from msys2 need to be connected.
Title: Re: Windows 10, msys2 and GTK
Post by: tumanovalex on September 17, 2022, 04:57:00 pm
Maybe I need to post this question in another forum topic? For example, in Using Code::Blocks? I really need to configure Code::Blocks to create GTK applications, and in this topic the answer is no.
Title: Re: Windows 10, msys2 and GTK
Post by: PB on September 18, 2022, 09:10:07 am
I know nothing about GTK and little about MSYS2.

Still, I do not see any GTK MSYS2 packaged installed. Should you not install something like (for GTK3) https://packages.msys2.org/package/mingw-w64-x86_64-gtk3?repo=mingw64
Title: Re: Windows 10, msys2 and GTK
Post by: stahta01 on September 18, 2022, 10:25:18 pm
I would try installing or re-installing GTK3.

Code
pacman -S mingw-w64-x86_64-gtk3