Code::Blocks Forums
User forums => Help => Topic started by: Art in Music on February 07, 2014, 08:32:12 pm
-
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:
(http://puu.sh/6Nrq4.png)
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
-
IIRC, Right click on Wizard it will allow you to edit the script.
Tim S.
-
Sorry,
When I right click on the Wizard, nothing happens, except a basic drop down menu on the... Thing I can't remember. That!
(http://puu.sh/6NusH.png)
-
In the window where you pick the wizard to be ran, instead of after you have started the wizard.
Tim S.
-
Okay,
I see what you mean now. Where do I edit this script to fix it?
-
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.
-
Right,
Only, I don't know what I should be editing within the script.
-
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.
-
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