Installing Kazehakase 0.5.1 on Slackware 12

I recently decided to install Kazehakase 0.5.1 on my computer. As with any software installation of Slackware my first step was to check for a SlackBuild on SlackBuilds.org. There is one but it is for version 0.4.7. OK, that's often not a problem, you just change the $VERSION variable to the version you actually want. So I tried that, the SlackBuild printed out the usual range of progress reports, etc, then gave me this:

gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src/bookmarks -I../../src/libegg/pixbufthumbnail -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1 -DG_LOG_DOMAIN=\"Kazehakase-Utils\" -DG_DISABLE_DEPRECATED=1 -O2 -march=i486 -mtune=i686 -Wall -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wcast-align -MT glib-utils.lo -MD -MP -MF .deps/glib-utils.Tpo -c glib-utils.c -fPIC -DPIC -o .libs/glib-utils.o
In file included from glib-utils.c:27:
glib-utils.h:24:18: error: glib.h: No such file or directory
glib-utils.h:25:21: error: gtk/gtk.h: No such file or directory
In file included from glib-utils.c:27:
glib-utils.h:32: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'G_END_DECLS'
make[5]: *** [glib-utils.lo] Error 1
make[5]: Leaving directory `/tmp/SBo/kazehakase-0.5.1/src/utils'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/SBo/kazehakase-0.5.1/src/utils'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/SBo/kazehakase-0.5.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/SBo/kazehakase-0.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/kazehakase-0.5.1'
make: *** [all] Error 2

What the? It can't find the libraries? Isn't that what configure is supposed to do? Oh, well I guess I'll just modify the SlackBuild to pass the locations of the libraries required. It can't find some others as well? Darn, I guess I'll have to add them as well.

Fortunately before I went through adding a dozen different libraries locations to the SlackBuild, I noticed to following way up in the configure output:

checking for GTK+ - version >= 2.12.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.

Wait so one of the required libraries is not present (or in my case the version was too low), but configure happily lets my continue with the build process anyhow? It should just return an error and quit.

Fortunately, this is not going to stop me, I'll simply upgrade GTK, so I go to the Slackware FTP site find the GTK+2 official SlackBuild and change the $VERSION to 2.12.5 and compile the source from ftp.gtk.org. There now I should be able to compile Kazehakase, wait no I need to upgrade glib2 and pango before I can upgrade GTK+, so I upgrade them to 2.14.5 and 1.18.4 respectively and now I can compile GTK+ 2.12.5, and then finally compile Kazehakase 0.5.1.

Aaah, the joy of a job well done.

Categories: Howto, Linux, Computers
Date: 2008-01-30 23:03:54, 16 years and 84 days ago

Leave reply

No html allowed in reply

Notify me of follow-up comments via email.