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

Using GTK+ with Code::Blocks

Started by Art in Music, February 07, 2014, 08:32:12 PM

Previous topic - Next topic

Art in Music

Hello,

So, I have recently downloaded the GTK+ (3.0) Package from their site, added the bin folder to the Path in Advanced System Settings, and verified that GTK is working. However, when I try to create a project in Code::Blocks with GTK+ and refer GTK's location to the folder that GTK was installed in, it gives me the following error:

I checked for where the gtk.h file is, and found it in *\include\gtk-3.0\gtk, and tried copying it into the *\include folder, but Code::Block's wizard still says it can't find the file. I'm not sure where that file is supposed to be located according to the wizard, either, so I can't simply put it there. I have the Base, Include, lib, and bin directories referenced properly in the Global Variable editor under the "gtk" variable as well, I believe, so other than creating this help post, I am unsure where to go from here.

Thank you for your assistance,
Dylan

stahta01

IIRC, Right click on Wizard it will allow you to edit the script.

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]

Art in Music

Sorry,

When I right click on the Wizard, nothing happens, except a basic drop down menu on the... Thing I can't remember. That!

stahta01

In the window where you pick the wizard to be ran, instead of after you have started the 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]

Art in Music

Okay,

I see what you mean now. Where do I edit this script to fix it?

stahta01

Quote from: Art in Music on February 07, 2014, 09:31:36 PM
Okay,

I see what you mean now. Where do I edit this script to fix it?

IIRC, right there.
It saves it somewhere in the user app data area.

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]

Art in Music

Right,

Only, I don't know what I should be editing within the script.

stahta01

Quote from: Art in Music on February 07, 2014, 09:55:44 PM
Right,

Only, I don't know what I should be editing within the script.

You can do changes or just look; it saves a local copy of the changes so, you can revert the changes.

But, I have only slight knowledge of scripting in CB.
The Wiki has info; but, not enough to help me without a lot of trial and error.

I would just try to find where the script is looking for the header file.

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]

Art in Music

Thanks!

I got it to work by editing the three places where it mentioned the folder "gtk-2.0" to instead look for "gkt-3.0". I was able to find those three places using the CTR + F function. Then, when it gave me a different error, looking for "gtk-win32-2.0", which it said was a lib file, I went and looked for it in the *\lib for GTK, and found "gtk-win32-3.0" instead, so I changed the two places it mentioned that file in the script accordingly, and now it doesn't give me errors.

Thanks for the help,
Dylan