You mean you've been letting a
real life get in the way of your btnx work?
Yes, I have. How careless of me .
I am getting the following error when I attempt ./configure:
No package 'gtk+-2.0' found
I do have gtk+2.0 (2.12.0-7) installed. The issue seems to be that the config file is looking for a gtk+-2.0, namely with a hyphen in the name. I have none of those environment variables set (would have no idea what to set them to).
There could be two problems. Either you don't have the necessary GTK+ source package installed on your distro, or the location of the library has not been registered with pkg-config correctly.
First, make sure the library isn't registered with a different name, like without the hyphen.
Code:
pkg-config --list-all | grep gtk
If it is named something other than gtk+-2.0, then edit the configure.ac file in the top source directory of btnx-config.
Replace the line
Code:
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.10.11)
with
Code:
PKG_CHECK_MODULES(GTK, package_name >= 2.10.11)
or remove the whole line.
EDIT: removing will just delay the problem, pkg-config will not be able to give the correct CFLAGS etc. when compiling btnx-config. And changing the package name might not work unless you also edit the Makefile.am files, changing the gtk package name there as well. Try the last step instead (checking that the gtk dev files, headers etc, have been installed correctly). But tell me if the package name is different (or has changed in v. 2.12)
Then, hoping you have autotools, autoconf, and automake, you could run the following commands in the top source directory::
Code:
aclocal
autoconf
autoheader
automake --add-missing
./configure
If this works, I will add another check to the configure.ac to take care of it.
If the above wasn't the case, then see if there is anything in your distro's repository that refers to libgtk2.0 sources. On Ubuntu the debian package is libgtk2.0-dev, and installing it automatically registers the package with pkg-config.
If it doesn't register it automatically with pkg-config, then its a more difficult problem.
Bookmarks