Author Topic: How to install GTK+ for use in codeblocks  (Read 6760 times)

Offline typicalc

  • Multiple posting newcomer
  • *
  • Posts: 18
How to install GTK+ for use in codeblocks
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12006
    • Travis build status
Re: How to install GTK+ for use in codeblocks
« Reply #1 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.
(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!]

Offline typicalc

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: How to install GTK+ for use in codeblocks
« Reply #2 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?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2493
Re: How to install GTK+ for use in codeblocks
« Reply #3 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


Online stahta01

  • Lives here!
  • ****
  • Posts: 6639
    • My Best Post
Re: How to install GTK+ for use in codeblocks
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org