News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Windows 10, msys2 and GTK

Started by tumanovalex, September 16, 2022, 05:35:21 PM

Previous topic - Next topic

tumanovalex

I installed msys2 on disk C in the default directory msys64. Using the commands: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?

tumanovalex

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.

tumanovalex

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.

PB

#3
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
[url="https://github.com/PBfordev/wxpbguide"]https://github.com/PBfordev/wxpbguide[/url]

stahta01

I would try installing or re-installing GTK3.


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