Author Topic: Package gtk+-2.0 was not found in the pkg-config search path.  (Read 41000 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Package gtk+-2.0 was not found in the pkg-config search path.
« on: August 12, 2006, 05:09:55 pm »
SVN 2839; Ubuntu Breezy

I'm getting the following compile errors:
note: the "’" does not show up on Linux, I copy/pasted/posted to windows.
Code
-------------- Build: Debugger in Code::Blocks - Unix ---------------
Compiling: plugins/debuggergdb/gdb_tipwindow.cpp
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
plugins/debuggergdb/gdb_tipwindow.cpp:40:25: error: gtk/gtk.h: No such file or directory
plugins/debuggergdb/gdb_tipwindow.cpp: In constructor ‘GDBTipWindow::GDBTipWindow(wxWindow*, const wxString&, const wxString&, const wxString&, const wxString&, wxCoord, GDBTipWindow**, wxRect*)’:
plugins/debuggergdb/gdb_tipwindow.cpp:190: error: ‘GTK_WIDGET_HAS_GRAB’ was not declared in this scope
plugins/debuggergdb/gdb_tipwindow.cpp:191: error: ‘gtk_grab_add’ was not declared in this scope
plugins/debuggergdb/gdb_tipwindow.cpp: In destructor ‘virtual GDBTipWindow::~GDBTipWindow()’:
plugins/debuggergdb/gdb_tipwindow.cpp:207: error: ‘GTK_WIDGET_HAS_GRAB’ was not declared in this scope
plugins/debuggergdb/gdb_tipwindow.cpp:208: error: ‘gtk_grab_remove’ was not declared in this scope
plugins/debuggergdb/gdb_tipwindow.cpp: In member function ‘void GDBTipWindow::Close()’:
plugins/debuggergdb/gdb_tipwindow.cpp:261: error: ‘GTK_WIDGET_HAS_GRAB’ was not declared in this scope
plugins/debuggergdb/gdb_tipwindow.cpp:262: error: ‘gtk_grab_remove’ was not declared in this scope


Process terminated with status 1 (0 minutes, 44 seconds)
7 errors, 0 warnings

Is this legit? If so, how do I find "gtk+-2.0.pc" directory, and add it to PKG_CONFIG_PATH?


Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Package gtk+-2.0 was not found in the pkg-config search path.
« Reply #1 on: August 12, 2006, 06:40:55 pm »
You need the gtk2 development package, and we need to test for it in configure...
Be patient!
This bug will be fixed soon...

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Package gtk+-2.0 was not found in the pkg-config search path.
« Reply #2 on: August 12, 2006, 07:08:31 pm »
You need the gtk2 development package, and we need to test for it in configure...

Does this mean I have to rebuild CB all over again, ie, the ./bootstrap thingie?

When did all this change? I've been compiling CB with CB for 6 months now. I thought I'd followed the wiki correctly.

How do I get the gtk2 development package. I'm not very Ubuntu savy.

thanks


I've just searched the wiki again. There is no info on how to get a gtk2 dev package. And there are only 3 messages on the forum about PKG_CONFIG_PATH; which seem to apply only to fedora.

« Last Edit: August 12, 2006, 07:23:32 pm by Pecan »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Package gtk+-2.0 was not found in the pkg-config search path.
« Reply #3 on: August 12, 2006, 07:21:20 pm »
Quote
Does this mean I have to rebuild CB all over again, ie, the ./bootstrap thingie?

No, no...
What I meant was that we should add a check for it in configure (the gtk2 devel files).

Quote
How do I get the gtk2 development package. I'm not very Ubuntu savy.
sudo apt-get install libgtk2.0-dev
« Last Edit: August 12, 2006, 07:23:56 pm by mandrav »
Be patient!
This bug will be fixed soon...

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Package gtk+-2.0 was not found in the pkg-config search path.
« Reply #4 on: August 22, 2006, 01:23:11 am »

What I meant was that we should add a check for it in configure (the gtk2 devel files).

Sounds like a good idea, as it shows the same thing for wxMac too... :-)

Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found


Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: Package gtk+-2.0 was not found in the pkg-config search path.
« Reply #5 on: August 22, 2006, 05:26:07 am »
That is probably a broken define check, you shouldn't need GTK for the wxMac version just like I assume you don't need GTK for the wxMSW.

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: Package gtk+-2.0 was not found in the pkg-config search path.
« Reply #6 on: August 22, 2006, 09:19:39 am »
I don't need GTK+ for wxMac, but it is hardcoded into the Makefiles.
(then again it doesn't really hurt either, it just looks a bit funny...)