LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   GTK+ compile error : glib-mkenums (https://www.linuxquestions.org/questions/suse-opensuse-60/gtk-compile-error-glib-mkenums-389680/)

Sjaaksken 12-06-2005 01:27 AM

GTK+ compile error : glib-mkenums
 
Hi,

I'm tryin to install the gimp from source and for that I need to install gtk+ (2.8.0)

I've installed every dependency (ats, pango, glib-devel, cairo) but every time I try 'make' for the gtk+ I get the same (annoying) error:

Code:

&& echo timestamp > s-enum-types-h
/bin/sh: glib-mkenums: command not found
make[2]: *** [s-enum-types-h] error 127
make[2]: Leaving directory `/home/Sjaaksken/gtk+-2.8.0/gdk-pixbuf'
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/home/Sjaaksken/gtk+-2.8.0'
make: *** [all] error 2

I litteraly tried every possible thing that crossed my mind (installing other versions of glib-devel, deleting the glib-mkenums, making sure there aren't older versions in a different folder), all to no avail.

I checked and the glib-mkenums file is there in the apropiate folder, I don't see what causes this error. It's starting to work on my nerves.

Anyone with a similar problem or a solution?

Thx in advance,

sjaak

abisko00 12-06-2005 02:19 AM

glib-mkenums comes with glib2-devel

The tool 'pin' is very helpful in these cases. It searches the ARCHIVES.gz file from you installation medium. In this case I typed 'pin glib-mkenums' and got:
Code:

------------------------------------------------------------------
*** zgrep glib-mkenums /var/lib/pin/ARCHIVES.gz
------------------------------------------------------------------


./DVD1/suse/i586/glib2-devel-2.8.1-3.i586.rpm:    -rwxr-xr-x    1 root    root
          14274 Sep  9 19:15 /opt/gnome/bin/glib-mkenums


Sjaaksken 12-06-2005 11:16 AM

I did the 'pin'command as u said and here's the output:

Code:

pin 0.30 - package info for glib-mkenums

------------------------------------------------------------------
*** no rpm named glib-mkenums installed
------------------------------------------------------------------


------------------------------------------------------------------
*** zgrep glib-mkenums /var/lib/pin/ARCHIVES.gz
------------------------------------------------------------------


./CD1/suse/i586/glib2-doc-2.4.6-5.1.i586.rpm:    -rw-r--r--    1 root    root            11472 Dec 20 17:22 /opt/gnome/share/gtk-doc/html/gobject/glib-mkenum
s.html
./CD1/suse/i586/glib2-devel-2.4.6-5.1.i586.rpm:    -rwxr-xr-x    1 root    root            14110 Dec 20 17:22 /opt/gnome/bin/glib-mkenums
./CD1/suse/i586/glib2-devel-2.4.6-5.1.i586.rpm:    -rw-r--r--    1 root    root            1941 Dec 20 17:22 /opt/gnome/share/man/man1/glib-mkenums.1.gz
./CD1/suse/x86_64/glib2-doc-2.4.6-5.1.x86_64.rpm:    -rw-r--r--    1 root    root            11472 Dec 20 17:26 /opt/gnome/share/gtk-doc/html/gobject/glib-mk
enums.html
./CD1/suse/x86_64/glib2-devel-2.4.6-5.1.x86_64.rpm:    -rwxr-xr-x    1 root    root            14110 Dec 20 17:26 /opt/gnome/bin/glib-mkenums
./CD1/suse/x86_64/glib2-devel-2.4.6-5.1.x86_64.rpm:    -rw-r--r--    1 root    root            1941 Dec 20 17:26 /opt/gnome/share/man/man1/glib-mkenums.1.gz

Seems to be installed allright? alltho I have no idea what the x86_64 package is doin there.

abisko00 12-07-2005 02:18 AM

'pin' simply tells you which package contains the file you where looking for. To find out if this is already installed, you can use the rpm command, e.g.:

rpm -q glib2-devel

Sjaaksken 12-10-2005 05:31 PM

re
 
Code:

linuxmachien:/home/Sjaaksken # rpm -q glib2-devel
glib2-devel-2.4.6-5.1

still clueless ... :scratch:

abisko00 12-11-2005 03:59 AM

Maybe you need to specify the location of glib-mkenums with a parameter in ./configure. It may also be that another version is required. At this point, I am not experienced enough to help out. But from what I have heard, the installtion of this gtk+ version on suse is tricky.

Sjaaksken 12-11-2005 03:16 PM

well I tried specifyin different locations of glib-mkenums and I think it 's all related to some location difference between several of the glib and pkg-config and gdk-pixbuf packages.

I checked and rechecked the error logs and I noticed some indications:

first of all I installed glib2 and glib2-devel tru rpm, altho it gives a 'glib not installed, package needed' error in the gtk+ configure. If I download glib2 2.9.0 and compile from source it does find a glib library and displays: glib found -> 2.9.0

Also when tryin to compile gdk-pixbuf from source I got a libglib.la error (file not found). I checked this error and libglib.la is now installed as glib2-libglib.la. If I point to the glib2 folder (/opt/gnome) during configure of gdk-pixbuf it seems to continue but eventualy reproduces the same error (libglib.la not found in /usr/lib). I'm pretty damn stuck actually, I can't compile gdk-pixbuf, I can't compile gtk+2.7 or higher and ergo I can't compile gnome. It's a circular problem :)

Anyway thx for tryin to help me :) I appreciate it abisko.

Kind regards,

Sjaak


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