Author Topic: Windows 10, msys2 and GTK  (Read 2755 times)

Offline tumanovalex

  • Multiple posting newcomer
  • *
  • Posts: 23
Windows 10, msys2 and GTK
« 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?

Offline tumanovalex

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Windows 10, msys2 and GTK
« Reply #1 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.

Offline tumanovalex

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Windows 10, msys2 and GTK
« Reply #2 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.

Offline PB

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: Windows 10, msys2 and GTK
« Reply #3 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
« Last Edit: September 18, 2022, 09:11:39 am by PB »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Windows 10, msys2 and GTK
« Reply #4 on: September 18, 2022, 10:25:18 pm »
I would try installing or re-installing GTK3.

Code
pacman -S mingw-w64-x86_64-gtk3
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org