User forums > General (but related to Code::Blocks)

How to install GTK+ for use in codeblocks

(1/1)

typicalc:
Everytime I try create a GTK+ project it fails at "Please select the location of GTK ..".
and then "The patch you entered seem valid, but this wizard can't locate.."

How do I download and install newest GTK+? Most tutorial want you to download a zip file, but unfortunately the links are down and it appears that the developers prefer using an MSYS2 system for download.

I've downloaded ans used MSYS2 a bit but I am howing trouble with how to install GTK+ for use in codeblocks? What are the commands to enter to the MSYS2 command prompt?

My platform is Windows 7.

oBFusCATed:
The wizard is implemented as a squirrel script.
You can modify it to make it suite your installation.
To do so right click -> edit script in the wizard selection dialog.

Otherwise you can make console project and start modifying it to add gtk+ options.

typicalc:
I don't think I have GTK+ installed yet. I Thought it was installed along with MINGW & Codeblocks.
I searched my HD and found a folder
C:\gtk342_static\include\gtk-3.0\gtk
.. that had gtk.h. No gtk.lib found.
Should I be at the MSYS2 terminal and type something to download and install it?

BlueHazzard:

--- Quote ---I don't think I have GTK+ installed yet. I Thought it was installed along with MINGW & Codeblocks.
--- End quote ---
Codeblocks does not ship any third party library... You always have to install them by yourself...



--- Quote ---Should I be at the MSYS2 terminal and type something to download and install it?
--- End quote ---
there are tons of ways how to download and install gtk, but that is not a topic for this forum...
you can search with google for tutorials like:
https://youtu.be/xzNOgVQJPxU

if you have any problems integrate it in codeblocks you can ask again, but specific questions please...

greetings

stahta01:
FYI: Most of the CB Wizards have issues working with MSys2 libs.
It might be easier to start a empty project instead of using a wizard.

Tim S.

Navigation

[0] Message Index

Go to full version