Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 02:43
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
What versions of GTK and GLib is Puppy 1.0.5 using? (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Mon 24 Oct 2005, 02:02    Post subject:  What versions of GTK and GLib is Puppy 1.0.5 using? (Solved)  

Does anybody have an idea of what versions puppy is using?

I am trying to compile a very simple test stub that uses gnome-menu.

It compiles OK but it complains while linking.
Code:
undefined reference to 'menu_layout_load'


I am attaching the simple test program. Can someone have a look?

Prerequisites:

Download and compile gnome-menus source:
ftp://ftp.gnome.org/pub/gnome/sources/gnome-menus/2.12/

To make it work on puppy you need to disable python during configuration
Code:
./configure --disable-python

Then make and make install as normal

It requires to include glib and gnome-menu libraries. Here is the compilation command I'm using (of course, replace the /root/data/tmp with the path where you extracted the gnome-menus).
Code:
gcc -I/root/data/tmp/gnome-menus-2/12/0/libmenu -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -o test main.c
gnome-menu-test.tar.gz
Description 
gz

 Download 
Filename  gnome-menu-test.tar.gz 
Filesize  257 Bytes 
Downloaded  238 Time(s) 

Last edited by rarsa on Tue 25 Oct 2005, 00:09; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Guest
Guest


PostPosted: Mon 24 Oct 2005, 02:18    Post subject:  

i think Puppy 1.0.5 is using gtk-1.2.10 and gtk-2.6.1
see here
Back to top
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Tue 25 Oct 2005, 00:11    Post subject:  

Thank you,

Actually the problem was not the version of gtk or glib. I was including the wrong header in my program.

That happens when you try to use undocumented APIs.

To their credit, to compile you have to add a define MENU_I_KNOW_THIS_IS_UNSTABLE.

So, now I'm able to use the library. I will, by trial and error, figure out how to use it. I've actually made some progress.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0457s ][ Queries: 13 (0.0049s) ][ GZIP on ]