Installing the latest gtk2



All:

I have successfully installed the latest gtk2.  When running my build
files, I get the following error:

checking for gtk+-2.0 >= 2.2.0... Requested 'gtk+-2.0 >= 2.2.0' but
version of GTK+ is 2.0.6

configure: error: Library requirements (gtk+-2.0 >= 2.2.0) not met;
consider adjusting the PKG_CONFIG_PATH environment variable if your
libraries are in a nonstandard prefix so pkg-config can find them.

Originally, my configure.in looked like this:

pkg_modules="gtk+-2.0 >= 2.0.0"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)

After making some changes, it looks like this:

dnl pkg_modules="gtk+-2.0 >= 2.0.0"
pkg_modules="gtk+-2.0 >= 2.2.0"

dnl I tried setting the following line to
dnl /opt/gtk+-2.2.1
dnl /opt/gtk+-2.2.1/lib
dnl /opt/gtk+-2.2.1/lib/pkgconfig
dnl and none of those worked
PKG_CONFIG_PATH=/opt/gtk+-2.2.1/lib
AC_SUBST(PKG_CONFIG_PATH)

PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)

But I can't seem to get past that error.  Any ideas?

Thanks.

Neil





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]