Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: typicalc on May 22, 2016, 08:55:13 am

Title: How to install GTK+ for use in codeblocks
Post by: typicalc on May 22, 2016, 08:55:13 am
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.
Title: Re: How to install GTK+ for use in codeblocks
Post by: oBFusCATed on May 22, 2016, 10:41:31 am
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.
Title: Re: How to install GTK+ for use in codeblocks
Post by: typicalc on May 22, 2016, 01:59:49 pm
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?
Title: Re: How to install GTK+ for use in codeblocks
Post by: BlueHazzard on May 22, 2016, 11:36:36 pm
Quote
I 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...


Quote
Should 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

Title: Re: How to install GTK+ for use in codeblocks
Post by: stahta01 on June 12, 2016, 12:49:57 am
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.