imsory / gnome2-globalmenu

Automatically exported from code.google.com/p/gnome2-globalmenu
GNU General Public License v2.0
0 stars 0 forks source link

Compiling from source problems with globalmenu on gnome suse 11.2 #660

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have a problem with the compiling of the global menu.
(I am running under SUSE 11.2 linux with gnome)

I get the following output from the terminal
..
..
checking for WNCK... yes
checking for GMENU... configure: error: Package requirements (libgnome-menu >= 
2.16.0) were not met:

No package 'libgnome-menu' found
..

Yet the libraries are located in /usr/lib
                        libgnome-menu.so -> libgnome-menu.so.2.4.2
                        libgnome-menu.so.2 -> libgnome-menu.so.2.4.2
100256 2009-10-20 02:16 libgnome-menu.so.2.4.2

Under YAST2 this shows up as installed as a package libgnome-menu2.
The first link you see above, I added to /usr/lib thinking that perhaps the 
compile script would pick up the appropriate library from /usr/lib.  

I later found out that in fact that there are these pc extension files located 
in /usr/lib/pkgconfig, which is what the compile script is looking at using the 
pkg-config command. 

The problem I am having is that there does not appear to be a libgnome-menu.pc
file located in the /usr/lib/pkgconfig directory, also the package itself does
not include this file!!! 

I tried to create one there and rerun the compile script and still ran into 
problems compiling.

Could someone please, give me a web site containing libgnome-menu (Not 
libgnome-menu2) which contains the libgnome-menu.pc file, or e-mail me the text 
for this file via t.bracken@shaw.ca . 

Any help on this would be greatly appreciated.!!

Cheers!

Tom Bracken

-- 
Thomas Bracken
446-1260 Raymer Avenue
Kelowna,BC
V1W 3S4
Phone: (250) 763-0463
e-mail: t.bracken@shaw.ca

Original issue reported on code.google.com by TomBrack...@gmail.com on 25 Feb 2011 at 9:27

GoogleCodeExporter commented 8 years ago
Hello, 

I found out where the pc file was for libgnome-menu. 

It was in a rpm called     ibgnome-menu-devel-2.30.5-1mdv2011.0.i586.rpm

I extracted it with a command which doesn't care about rpm dependency's but 
will simply extract all the files out of an rpm file. 
(The Tree structure of where the files would go on an install is prefixed by 
 whatever directory you are in when you do the command to extract the files from
 the rpm file)

> ls  
    libgnome-menu-devel-2.30.5-1mdv2011.0.i586.rpm

> rpm2cpio libgnome-menu-devel-2.30.5-1mdv2011.0.i586.rpm | cpio -dimv

./usr/include/gnome-menus
./usr/include/gnome-menus/gmenu-tree.h
./usr/lib/libgnome-menu.a
./usr/lib/libgnome-menu.la
./usr/lib/libgnome-menu.so
./usr/lib/pkgconfig/libgnome-menu.pc
./usr/share/gir-1.0/GMenu-2.0.gir
713 blocks
> ls  
     usr  libgnome-menu-devel-2.30.5-1mdv2011.0.i586.rpm

> pwd

 /home/thomas/Download/gnome-menu

> cat /home/thomas/Download/gnome-menu/usr/lib/pkgconfig/libgnome-menu.pc

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: libgnome-menu
Description: Desktop Menu Specification Implementation
Requires: glib-2.0
Version: 2.30.5
Libs: -L${libdir} -lgnome-menu
Cflags: -I${includedir}/gnome-menus
thomas@S010600112f5fac7c:~/Download/gnome-menu> 

Cheers!

Tom Bracken

-- 
Thomas Bracken
446-1260 Raymer Avenue
Kelowna,BC
V1W 3S4
Phone: (250) 763-0463
e-mail: t.bracken@shaw.ca

Original comment by TomBrack...@gmail.com on 26 Feb 2011 at 2:05

GoogleCodeExporter commented 8 years ago
Hello,

I had a lot of problems compiling the gnome global menu from source. 
Mostly the problems are due to a bunch of .la extension files missing in the 
/usr/lib directory.  
I had to search all over the internet to get the appropriate text and create 
the missing la files. This was very time consuming and took about 2 to 3 hours 
of time.

The following la files where missing and had to be recreated:

-rw-r--r--   1 root root      692 2011-02-27 14:56 libpcre.la
-rw-r--r--   1 root root      995 2011-02-27 14:45 libgthread-2.0.la
-rw-r--r--   1 root root      985 2011-02-27 14:42 libgmodule-2.0.la
-rw-r--r--   1 root root      982 2011-02-27 14:39 libgobject-2.0.la
-rw-r--r--   1 root root      938 2011-02-27 14:38 libglib-2.0.la
-rw-r--r--   1 root root     1024 2011-02-27 14:24 libgio-2.0.la

Is there a tool that can be used to autogenerate an la file from existing 
libraries?

Cheers!

Tom Bracken

-- 
Thomas Bracken
446-1260 Raymer Avenue
Kelowna,BC
V1W 3S4
Phone: (250) 763-0463
e-mail: t.bracken@shaw.ca

Original comment by TomBrack...@gmail.com on 27 Feb 2011 at 11:09