LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-26-2006, 06:16 PM   #1
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Rep: Reputation: 30
Didn't find GTK, but there is GTK, I swear!


Hey all! I tried to install xmms-midi-0.03 (plugin for xmms which plays midi files), but:

bash-3.00# ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... ranlib
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... no
checking if gcc static flag -static works... -static
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache ./config.cache
loading cache ./config.cache
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 0.99.7... 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 was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script: /usr/bin/gtk-config
checking for glib-config... /usr/bin/glib-config
checking for GLIB - version >= 0.99.7... no
*** Could not run GLIB 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 GLIB was incorrectly installed
*** or that you have moved GLIB since it was installed. In the latter case, you
*** may want to edit the glib-config script: /usr/bin/glib-config

checking for XMMS include files... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for malloc.h... yes
checking for strings.h... yes
checking for sys/ioctl.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for pid_t... yes
checking for size_t... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking whether setvbuf arguments are reversed... no
checking for vprintf... yes
checking for a BSD compatible install... /usr/bin/ginstall -c
updating cache ./config.cache
creating ./config.status
creating Makefile
bash-3.00#


But I do have GTK:

bash-3.00# pkg-config --list-all
gaim Gaim - Gaim is a GTK2-based instant messenger application.
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
gnet-2.0 Gnet - A network compatibility layer library
dbh-1.0 dbh - Diskbased Hashtables
pango Pango - Internationalized text handling
libpcre libpcre - PCRE - Perl compatible regular expressions C library
neon neon - HTTP/WebDAV client library
ijs ijs - IJS (InkJet Server) Raster Image Transport Protocol
ogg ogg - ogg is a library for manipulating ogg bitstreams
xrender Xrender - X Render Library
libgtkhtml-2.0 libgtkhtml - libgtkhtml
libpng libpng12 - Loads and saves PNG files
libidn Libidn - IETF stringprep, nameprep, punycode, IDNA text processing.
xevie Xevie - X Event Interceptor Library
glib-2.0 GLib - C Utility Library
librsvg-2.0 librsvg - library that renders svg files
gimpui-2.0 GIMP UI - GIMP User Interface Library
e2p e2p - Ext2fs userpace programs utility library
libpng12 libpng12 - Loads and saves PNG files
libexif libexif - Library for easy access to EXIF data
openssl OpenSSL - Secure Sockets Layer and cryptography libraries and tools
pangoxft Pango Xft - Xft font support for Pango
taglib TagLib - Audio meta-data library
imlib Imlib - An image loading and rendering library for X11R6
libtimidity libtimidity - MIDI to WAVE converter library
ao ao - ao is a cross-platform audio output library
lcms lcms - LCMS Color Management Library
gdk-pixbuf-xlib-2.0 GdkPixbuf Xlib - GdkPixbuf rendering for Xlib
fribidi FriBidi - Unicode BiDirectional algorithm library
gucharmap gucharmap - GTK+ Unicode Character Map
libxslt libxslt - XSLT library version 2.
Wand Wand - MagickWand - Convert, Edit, and Compose Images
libwpd-0.8 libwpd-0.8 - A library for reading and writing Corel WordPerfect(tm) documents
xft Xft - X FreeType library
gtk+ GTK+ - GIMP Tool Kit
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
gtk-doc gtk-doc - API documentation generator
glib GLib - C Utility Library
gmodule-2.0 GModule - Dynamic module loader for GLib
libexslt libexslt - EXSLT Extension library
wrlib wrlib - Image manipulation and conversion library
libgsf-1 libgsf-1 - A library for reading and writing structured files (eg MS OLE and Zip)
esound esound - esound
libxfce4mcs-manager-1.0 libxfce4mcs-manager - libxfce4mcs-manager
ss ss - Subsystem command parsing library
atk Atk - Accessibility Toolkit
xffm-1.0 xffm - XFce4 fast file manager
xfce-mcs-manager xfce-mcs-manager - xfce-mcs-manager
uuid uuid - Universally unique id library
xfce4-session-1.0 xfce4-session - Xfce 4 session manager
xdamage Xdamage - X Damage Library
libIDL-2.0 libIDL - IDL parsing library
libart-2.0 libart - LGPL version of the libart library
gdk-x11-2.0 GDK - GIMP Drawing Kit (x11 target)
libxml-2.0 libXML - libXML library version2.
com_err com_err - Common error description library
gimpthumb-2.0 GIMP Thumb - GIMP Thumbnail Library
wmlib wmlib - FIXME: What do I write here?
xcursor Xcursor - X Cursor Library
libwpd-stream-0.8 libwpd-stream-0.8 - GSFStream support for libwpd, a library for reading and writing Corel WordPerfect(tm) documents
pangoft2 Pango FT2 - Freetype 2.0 font support for Pango
gmodule GModule - Dynamic module loader for GLib
vorbisenc vorbisenc - vorbisenc is a library that provides a convenient API for setting up an encoding environment using libvorbis
WINGs WINGs - Small widget set with the NeXTStep(TM) look and feel
gkrellm GKrellM - Extensible GTK system monitoring application
imlibgdk ImlibGdk - GDK support libraries for Imlib
gdk-2.0 GDK - GIMP Drawing Kit (x11 target)
gthread-2.0 GThread - Thread support for GLib
fontconfig Fontconfig - Font configuration and customization library
freetype2 FreeType 2 - A free, high-quality, and portable font engine.
libxfce4util-1.0 libxfce4util - Utility library for the Xfce 4 desktop environment
gtk+-2.0 GTK+ - GIMP Tool Kit (x11 target)
pangox Pango X - X Window System font support for Pango
gtk+-x11-2.0 GTK+ - GIMP Tool Kit (x11 target)
shared-mime-info shared-mime-info - Freedesktop common MIME database
audiofile audiofile - audiofile
gthread GThread - Thread support for GLib
vorbis vorbis - vorbis is the primary Ogg Vorbis library
alsa alsa - Advanced Linux Sound Architecture (ALSA) - Library
libxfce4mcs-client-1.0 libxfce4mcs-client - libxfce4mcs-client
gdk-pixbuf-2.0 GdkPixbuf - Image loading and scaling
xcomposite Xcomposite - X Composite Library
xfixes Xfixes - X Fixes Library
ImageMagick ImageMagick - ImageMagick - Convert, Edit, and Compose Images
ImageMagick++ ImageMagick++ - Magick++ - Convert, Edit, and Compose Images
libstartup-notification-1.0 libstartup-notification - Startup notification library
libxine libxine - The xine engine library
ext2fs ext2fs - Ext2fs library
gdk GDK - GIMP Drawing Kit
xfce4-panel-1.0 xfce4-panel - Xfce4 desktop panel
libglade-2.0 Libglade - a library for dynamically loading GLADE interface files
vorbisfile vorbisfile - vorbisfile is a library that provides a convenient high-level API for decoding and basic manipulation of all Vorbis I audio streams
libxfcegui4-1.0 libxfcegui4 - libxfcegui4
blkid blkid - Block device id library
gimp-2.0 GIMP - GIMP Library
bash-3.00#


So, where is the problem? With me or with xmms-midi-plugin? Other apps that requires GTK+ i.e. gkrellm and firefox just work fine...

I would love any help.
 
Old 06-26-2006, 07:05 PM   #2
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
xmms-midi plugin is so incredibly outdated that I would not be suprised it it didn't even detect newer versions of GTK.

My only suggestion now would be to see the file config.log and post the error.
 
Old 06-26-2006, 07:07 PM   #3
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 919

Rep: Reputation: 32
Quote:
Originally Posted by stevesk
See the file config.log for the exact error that occured.
This usually means GTK was incorrectly installed
1. Check the log.
2. Reinstall gtk+-1.2.10
 
Old 06-26-2006, 07:41 PM   #4
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Thanks for the help guys! I reinstalled GTK and tried again, didn't work. The problem about posting config.log here is that its too long, even when I tried to slpit it in 2 parts. I updated it to a server so if anyone would like to see:

http://sakanhagen.tripod.com/opt/config.log
 
Old 06-26-2006, 11:20 PM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Heh Heh... Good luck. You have some massive include errors on that one. Looks like the prog is hopelessly outdated to understand the later versions of gtk1/glib1....

You might want to fish around in Fedora Rawhide or some other distro's ftp sites to see if they are building it. If so, you might find some patches. Debian is notorious for rescuing abandonware from the gutters....

Last edited by jong357; 06-26-2006 at 11:22 PM.
 
Old 06-26-2006, 11:32 PM   #6
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Yea, I knew it. You can't go wrong with downloading directly from Debian. They have a patch that cleans that mess up. The configure and make goes over without a hitch here on my powerbook.

http://packages.debian.org/unstable/sound/xmms-midi

EDIT: Ummm.. Sorry. I just compiled/made it without the patch on my own distro that I built. This would indicate a problem with Slackware or your own box in some way. Sorry. Guess I need to start testing solutions out on a slack box before I open my mouth...

Last edited by jong357; 06-26-2006 at 11:38 PM.
 
Old 06-27-2006, 01:52 AM   #7
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
In file included from /usr/include/gtk-1.2/gdk/gdktypes.h:33, from /usr/include/gtk-1.2/gdk/gdk.h:31, from /usr/include/gtk-1.2/gtk/gtk.h:31, from configure:1421: /usr/include/glib-1.2/glib.h:66:24: glibconfig.h: No such file or directory
This is the first error, and we can expect that all the rest is caused by that. I looked for the file glibconfig.h in my Slack installation, and it is at

/usr/lib/glib/include/glibconfig.h

But your gtk-config tells configure to search it under /usr/lib/glib-1.2 for some reason. Putting a link glib-1.2-->glib should solve the problem.

Last edited by Ilgar; 06-27-2006 at 01:53 AM.
 
Old 06-28-2006, 07:10 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I've kind of made a specialty out of old packages like this. So I had a look at this.
On my machine I had no trouble configuring and compiling the original source tarball pointed to by the debian site. It was already debianized (badly) and has some '~' files in it.
I also had no trouble compiling the same sources patched with the debian 0.03-3 diff.

However, these sources are really badly packaged and as said, outdated. I also saw that the 'missing' and other scripts were not executable and depcomp is not there.

So what I did was massage the sources and repackage them with a note as a tar.bz2

How to massage an old package?
If a Makefile is present the best way to star is to run make distclean, but not always. Sometimes it breaks everything for good.
From the REAME.Amigo
Removed some '~' files
patched with included debian xmms-midi_0.0.3-3.diff
removed:
config.guess
config.sub
configure
install-sh
ltconfig
ltmain.sh
missing
mkinstalldirs

run :
aclocal -I .
libtoolize --force --copy
Use automake-1.4 for this:
automake -a --foreign --gnu
autoconf
configure

remove autom4te directory

If you don't have automake-1.4 this may not work, but you can try. A rule needs to be changed. I'll probably do more work on these sources and give them a proper suffix. Just the sort of thing I collect... over on amigolinux.org under the Sources/Libs directory, or Packages/Intelx86/Libs. Intelx86 means Slackware (there is a PPC dir also under Packages)
 
Old 06-29-2006, 01:45 AM   #9
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Ilgar: I am sorry but I didn't understand which links you would like me to make. I haven't /usr/lib/glib, only /usr/lib/glib-2.0 and so it comes include/glibconfig.h

gnashley: I tried exactly what you said, but the last command (./configure from run list) returned the same error about not finding gtk and glib.

Last edited by stevesk; 06-29-2006 at 01:51 AM.
 
Old 06-29-2006, 02:26 AM   #10
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
Install glib 1.2 then. I find it pretty strange that you do not have that package... Unless you tried to install slackware the "expert" way.

You need glib 1.2.10, gtk 1.2.10, and anything that seems like it might be related.
 
Old 06-29-2006, 03:45 AM   #11
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
I thought you did have glib-1.2.10 but I guess that was gtk.. Yes, you'll need version 1 installed.

Last edited by jong357; 06-29-2006 at 03:48 AM.
 
Old 06-29-2006, 07:32 AM   #12
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
But I did check stevesk's package list, and he seems to have glib-1 already (it appears as glib, the 2.x version is glib-2.0). Besides, configure.log shows that something has returned /usr/include/glib-1.2 as the source path (could be gtk-config or glib-config).

stevesk, I realize now that I made a mistake in my earlier post. On my system, glibconfig.h (that of ver. 1.x) is at

/usr/lib/glib/include/glibconfig.h

I also have the /usr/include/glib-1.2/ directory, which is returned by gtk-config --cflags as well, bu it includes two other header files. The full output of my gtk-config --clags is

-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include

This is the same as what you have in your configure.log, and it includes the directory /usr/lib/glib/include, which you don't have.

So there's something up with your glib (ver. 1) installation. Try to reinstall it (I say reinstall, since it already seems to be installed). Your system configuration should be like mine and configure should run without any problems.

Last edited by Ilgar; 06-29-2006 at 07:34 AM.
 
Old 06-29-2006, 01:40 PM   #13
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
It worked!

It worked! It worked!!! Guys, you're the best!

For some reason, glib-1.2 was "installed" on my system, as I could see it in pkgtool - View. But there was no /usr/lib/glib, only /usr/lib/glib-2.0 . So I browsed Slackware CD 1 and reinstalled glib-1.2, and now it compiled and installed just fine, with no errors (and now there is /usr/lib/glib). The only bad part now is that the package simple doesn't work correctly because xmms "plays" the midi but without any audio (muted). It doesn't seem to be a mixer or alsa problem because timidity on console just plays any midi well. I think that's because the package is too old. Anyway, thanks a lot for the help!

I will surely remember the lesson I learned here when I try to install another packages. The only thing I think is quite weird is that ./configure said there was not glib and there was not gtk. I know that glib is a required package for gtk, but why didn't it only complain about glib, if gtk was installed fine?
 
Old 06-29-2006, 02:27 PM   #14
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
It's like this: To check if gtk/glib are working alright, configure tries to compile a tiny gtk/glib test program. If compilation fails, it returns that error. In your case configure was able to find gtk-config and get the compilation parameters for gtk, but testing those parameters on the tiny program failed, so it gave that error. The gtk program needed the glib header to compile, thus it said gtk is not installed or improperly installed. configure.log shows that it's actually the missing glib file that causes the gtk failure.

It's usually best to look at the very first error. Especially when it's a missing header as in this case, that will cause tons of other errors from that point on (undefined structures, functions etc.).

By the way, can you play your midi with other software? timidity is not a real midi software, in the sense that it doesn't use the midi chip, it uses software to generate the midi sound. So it works even if your sound card doesn't have a midi chip. I have a Soundblaster Audigy 2 ZS and when I play midi files they appear to be playing but no sound comes out. My former card was also a soundblaster and it was the same. I've had trouble getting midi to work on the emu10k1 driver. Your problem could be the same thing. If you can make it work, let me know .
 
Old 06-29-2006, 02:58 PM   #15
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
If you have a fast enough CPU(i'd say 500mhz or so) then timidity will probably sound better than using a hardware midi synthesizer anyway, if you get decent soundfonts that is. (I personally use the "Air Fonts")
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK+ programs on Windows without having to install GTK+, GLib, etc Nylex Programming 2 02-19-2006 01:33 PM
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
GTK source install doesn't give gtk-config Feebles Linux - Software 4 06-15-2005 12:51 PM
cant find gtk-config file or gtk-devel to install happychappy Linux - Software 2 02-16-2005 12:46 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration