Bug #18665 2012-07-18 15:11

heupete

gtk does not work with newer releases

On windows developing with gtk uses the downloadable gtk bundle from the website.

Recently the gtk developers have added a library that needs to be included by default. The Code::Blocks start project does not work without including it.

The first version needing it is:

gtk+-bundle_2.22.0-20101016_win32

Solution is to adapt gtk template/plugin:

The script file in question on a windows install is:

<install dir>\CodeBlocks\share\CodeBlocks\templates\wizard\gtk\wizard.script

The gdk-pixbuf-2.0 library needs to be added.

(In the file after line 124.)

Code does a check on the relative path name and if it's there adds it. This approach works with new and old versions of the gtk library.

Code that needs to be added:

(The following code has been tested and found to work as it should.)

Code:

if( IO.DirectoryExists(GtkPathDefaultInc + wxFILE_SEP_PATH + _T("gdk-pixbuf-2.0")) ){

project.AddIncludeDir(GtkPathDefaultInc + wxFILE_SEP_PATH + _T("gdk-pixbuf-2.0"));

}

Category
 
Group
Platform:Windows
Status
Closed
Close date
2012-07-24 05:21
Assigned to
mortenmacfly
mortenmacfly 2012-07-24 05:21

This bug is now fixed in HEAD.

Thank you for reporting it.