News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How to install GTK+ for use in codeblocks

Started by typicalc, May 22, 2016, 08:55:13 AM

Previous topic - Next topic

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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

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


QuoteShould I be at the MSYS2 terminal and type something to download and install it?
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.
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]