GTK error yet GIMP Toolkit is installed...

Hey guys I’m getting a weird error. I have the gimp toolkit installed as well as the devel. Any ideas?

Error:

g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/pstats_composite1.o -I"/usr/include/python2.5" -I"/usr/include/gtk-2.0" -I"/usr/include/cairo" -I"/usr/include/glib-2.0" -I"/usr/lib/glib-2.0/include" -I"/usr/include/pango-1.0" -I"/usr/lib/gtk-2.0/include" -I"/usr/include/atk-1.0" -I"built/tmp" -I"built/include" -Ipandatool/src/gtk-stats -O2 pandatool/src/gtk-stats/gtkstats_composite1.cxx
In file included from pandatool/src/gtk-stats/gtkStats.cxx:20,
                 from pandatool/src/gtk-stats/gtkstats_composite1.cxx:1:
pandatool/src/gtk-stats/gtkStats.h:24:21: error: gtk/gtk.h: No such file or directory
In file included from built/include/time_base.h:114,
                 from built/include/socket_fdset.h:16,
                 from built/include/connectionReader.h:30,
                 from built/include/connectionListener.h:24,
                 from built/include/pStatListener.h:24,
                 from built/include/pStatServer.h:23,
                 from pandatool/src/gtk-stats/gtkStats.h:22,
                 from pandatool/src/gtk-stats/gtkStats.cxx:20,
                 from pandatool/src/gtk-stats/gtkstats_composite1.cxx:1:
built/include/time_general.h: In function ‘std::string GetTimeStr(const Time_Clock&)’:
built/include/time_general.h:130: warning: deprecated conversion from string constant to ‘char*’
In file included from pandatool/src/gtk-stats/gtkStats.cxx:20,
                 from pandatool/src/gtk-stats/gtkstats_composite1.cxx:1:
pandatool/src/gtk-stats/gtkStats.h: At global scope:
pandatool/src/gtk-stats/gtkStats.h:26: error: expected initializer before ‘*’ token
In file included from pandatool/src/gtk-stats/gtkstats_composite1.cxx:1:
pandatool/src/gtk-stats/gtkStats.cxx:25: error: expected constructor, destructor, or type conversion before ‘*’ token
pandatool/src/gtk-stats/gtkStats.cxx:28: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStats.cxx:37: error: variable or field ‘destroy’ declared void
pandatool/src/gtk-stats/gtkStats.cxx:37: error: ‘GtkWidget’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:37: error: ‘widget’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:37: error: ‘gpointer’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:41: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStats.cxx: In function ‘int main(int, char**)’:
pandatool/src/gtk-stats/gtkStats.cxx:64: error: ‘gtk_init’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:66: error: ‘main_window’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:66: error: ‘GTK_WINDOW_TOPLEVEL’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:66: error: ‘gtk_window_new’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:68: error: ‘GTK_WINDOW’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:68: error: ‘gtk_window_set_title’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:72: error: ‘G_OBJECT’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:73: error: ‘delete_event’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:73: error: ‘G_CALLBACK’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:73: error: ‘g_signal_connect’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:76: error: ‘destroy’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:81: error: ‘GtkWidget’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:81: error: ‘label’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:81: error: ‘gtk_label_new’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:82: error: ‘GTK_CONTAINER’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:82: error: ‘gtk_container_add’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:83: error: ‘gtk_widget_show’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:95: error: ‘dialog’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:97: error: ‘GTK_DIALOG_DESTROY_WITH_PARENT’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:98: error: ‘GTK_MESSAGE_ERROR’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:99: error: ‘GTK_BUTTONS_CLOSE’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:100: error: ‘gtk_message_dialog_new’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:101: error: ‘GTK_DIALOG’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:101: error: ‘gtk_dialog_run’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:102: error: ‘gtk_widget_destroy’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:109: error: ‘timer’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:109: error: ‘g_timeout_add’ was not declared in this scope
pandatool/src/gtk-stats/gtkStats.cxx:112: error: ‘gtk_main’ was not declared in this scope
In file included from pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:19,
                 from pandatool/src/gtk-stats/gtkstats_composite1.cxx:2:
pandatool/src/gtk-stats/gtkStatsChartMenu.h: At global scope:
pandatool/src/gtk-stats/gtkStatsChartMenu.h:40: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsChartMenu.h:40: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsChartMenu.h:41: error: ‘GtkWidget’ has not been declared
pandatool/src/gtk-stats/gtkStatsChartMenu.h:47: error: ‘GtkWidget’ has not been declared
pandatool/src/gtk-stats/gtkStatsChartMenu.h:50: error: ‘gpointer’ has not been declared
pandatool/src/gtk-stats/gtkStatsChartMenu.h:51: error: ‘GtkWidget’ has not been declared
pandatool/src/gtk-stats/gtkStatsChartMenu.h:51: error: ‘gpointer’ has not been declared
pandatool/src/gtk-stats/gtkStatsChartMenu.h:57: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsChartMenu.h:57: error: expected ‘;’ before ‘*’ token
In file included from pandatool/src/gtk-stats/gtkStatsGraph.h:23,
                 from pandatool/src/gtk-stats/gtkStatsMonitor.h:24,
                 from pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:20,
                 from pandatool/src/gtk-stats/gtkstats_composite1.cxx:2:
pandatool/src/gtk-stats/gtkStatsLabelStack.h:41: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsLabelStack.h:41: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsLabelStack.h:43: error: ‘GtkWidget’ has not been declared
pandatool/src/gtk-stats/gtkStatsLabelStack.h:55: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsLabelStack.h:55: error: expected ‘;’ before ‘*’ token
In file included from pandatool/src/gtk-stats/gtkStatsMonitor.h:24,
                 from pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:20,
                 from pandatool/src/gtk-stats/gtkstats_composite1.cxx:2:
pandatool/src/gtk-stats/gtkStatsGraph.h:65: error: ISO C++ forbids declaration of ‘GdkGC’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:65: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:71: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:73: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:74: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:78: error: ‘GdkGC’ was not declared in this scope
pandatool/src/gtk-stats/gtkStatsGraph.h:78: error: template argument 2 is invalid
pandatool/src/gtk-stats/gtkStatsGraph.h:82: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:82: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:83: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:83: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:84: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:84: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:85: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:85: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:86: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:86: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:87: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:87: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:88: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:88: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:91: error: ISO C++ forbids declaration of ‘GdkCursor’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:91: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:93: error: ISO C++ forbids declaration of ‘GdkPixmap’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:93: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:94: error: ISO C++ forbids declaration of ‘GdkGC’ with no type
pandatool/src/gtk-stats/gtkStatsGraph.h:94: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsGraph.h:114: error: ‘GdkColor’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:115: error: ‘GdkColor’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:116: error: ‘GdkColor’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:117: error: ‘GdkColor’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:118: error: ‘GdkColor’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:124: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:126: error: ‘GtkWidget’ has not been declared
pandatool/src/gtk-stats/gtkStatsGraph.h:126: error: ‘gpointer’ has not been declared
pandatool/src/gtk-stats/gtkStatsGraph.h:127: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:129: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:133: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:136: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsGraph.h:139: error: ‘gboolean’ does not name a type
In file included from pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:20,
                 from pandatool/src/gtk-stats/gtkstats_composite1.cxx:2:
pandatool/src/gtk-stats/gtkStatsMonitor.h:72: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsMonitor.h:72: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsMonitor.h:88: error: ‘gboolean’ does not name a type
pandatool/src/gtk-stats/gtkStatsMonitor.h:90: error: ‘GtkWidget’ has not been declared
pandatool/src/gtk-stats/gtkStatsMonitor.h:90: error: ‘gpointer’ has not been declared
pandatool/src/gtk-stats/gtkStatsMonitor.h:93: error: ‘gpointer’ has not been declared
pandatool/src/gtk-stats/gtkStatsMonitor.h:93: error: ‘guint’ has not been declared
pandatool/src/gtk-stats/gtkStatsMonitor.h:93: error: ‘GtkWidget’ has not been declared
pandatool/src/gtk-stats/gtkStatsMonitor.h:104: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsMonitor.h:104: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsMonitor.h:105: error: ISO C++ forbids declaration of ‘GtkItemFactory’ with no type
pandatool/src/gtk-stats/gtkStatsMonitor.h:105: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsMonitor.h:107: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsMonitor.h:107: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsMonitor.h:108: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
pandatool/src/gtk-stats/gtkStatsMonitor.h:108: error: expected ‘;’ before ‘*’ token
pandatool/src/gtk-stats/gtkStatsMonitor.h:114: error: ‘GtkItemFactoryEntry’ does not name a type
In file included from pandatool/src/gtk-stats/gtkstats_composite1.cxx:2:
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx: In constructor ‘GtkStatsChartMenu::GtkStatsChartMenu(GtkStatsMonitor*, int)’:
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:32: error: ‘_menu’ was not declared in this scope
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:32: error: ‘gtk_menu_new’ was not declared in this scope
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:33: error: ‘gtk_widget_show’ was not declared in this scope
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx: At global scope:
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:52: error: expected constructor, destructor, or type conversion before ‘*’ token
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:63: error: variable or field ‘add_to_menu_bar’ declared void
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:63: error: ‘GtkWidget’ was not declared in this scope
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:63: error: ‘menu_bar’ was not declared in this scope
pandatool/src/gtk-stats/gtkStatsChartMenu.cxx:63: error: expected primary-expression before ‘int’
Storing dependency cache.
Elapsed Time: 4 sec

Thanks,
nomb

Probably not, or else it would have found the missing file (gtk/gtk.h).
Can you double-check whether you have the gtk2-dev package installed, and whether you have the file gtk.h in your include directory?