package gtk+-2.0 not found by glade, even though installed

Asked by Dean Courtney

I have a problem configuring Glade. Even though the Synaptic Package Manager reports this library is installed, when I run autogen.sh I get the error message:

No package 'gtk+-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables PACKAGE_CFLAGS and PACKAGE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

I would prefer to have the package installed in a standard prefix.

Any help please? Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Luca Falavigna (dktrkranz) said :
#1

You should install libgtk1.2-dev and libgtk2.0-dev.

Revision history for this message
Dean Courtney (courtney-bitwind) said :
#2

Thank you, sir, the necessary libraries seem to be in place now and
autogen.sh runs to completion and says "Now type 'make' to compile" but
make ends this way:

/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libgtk-x11-2.0.so:
undefined reference to `g_object_compat_control'
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/libpango-1.0.so:
undefined reference to `g_slice_free_chain_with_offset'
collect2: ld returned 1 exit status
make[2]: *** [project2] Error 1
make[2]: Leaving directory `/home/dean/Projects/project2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dean/Projects/project2'
make: *** [all-recursive-am] Error 2

I don't get it. can you enlighten me? Thanks again,

Dean Courtney

Revision history for this message
Luca Falavigna (dktrkranz) said :
#3

Are libgtk1.2, libgtk2.0 (and related such as libgtk2.0-common and libgtk2.0-bin) installed properly? You may want to install libpango1.0.0 and libglade2-0 packages too. Hope this helps.

Revision history for this message
Dean Courtney (courtney-bitwind) said :
#4

Thank you for your help, sir. The problem was resolved by updating to
newer versions of Pango and Glib.
Dean

Can you help with this problem?

Provide an answer of your own, or ask Dean Courtney for more information if necessary.

To post a message you must log in.