[SOLVED] libgtk+1.2 and libgtk+2.0 - compatible?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] libgtk+1.2 and libgtk+2.0 - compatible?

Postby annhenrie » Jun 12th, '12, 05:48

I used to have libgtk+1.2 which provided libgtk-1.2.so.0 among other 1.2 libraries. Now I can't install 1.2 because urpmi says it conflicts with libgtk+2.0. Are the two packages compatible? Can I symlink the missing 1.2 libraries to the 2.0 libraries? Anyone have a clue? Otherwise, is there a way I can just load the 1.2 libraries locally for my one program that needs them? I tried LD_PRELOAD, but I think my instructions are way outdated. Anyway, that didn't work.

Wanted to get Eric's Ultimate Solitaire to play. It needed some Mandriva 2010.1 packages that may not have been brought to Mageia: libgtk-1.2, libglib-1.2, libesound, esound and maybe libaudiofile. The packages installed ok once I found them. Don't seem to be having any conflicts. Didn't need to symlink or preload or anything. (Have always needed to install libstdc++2.10 from Mandrake 8 or so to make Eric's happy.)
Last edited by annhenrie on Jun 18th, '12, 01:31, edited 2 times in total.
annhenrie
 
Posts: 12
Joined: Jun 10th, '12, 04:45

Re: libgtk+1.2 and libgtk+2.0 - compatible?

Postby wintpe » Jun 12th, '12, 13:22

ok there used to be a rule about doing what you suggest, ie linking librarries with old versioned links.

that is that you can do it acrosss minor revs, ie 1.1 to 1.2

but not major revs.

ie 1.2 to 2.0

Thats not to say it wont work, but those that develop these libraries know that they have to keep a binary compatibility across minor revs, but anything goes when switching major revs.

so it could work, but it might have unexpected results.

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: libgtk+1.2 and libgtk+2.0 - compatible?

Postby annhenrie » Jun 12th, '12, 18:56

Thank you for your quick reply. Before I mark [SOLVED], I will test your solution. Otherwise, I'm still hoping there is a workable solution that would allow me to preload the older library locally in some way.
annhenrie
 
Posts: 12
Joined: Jun 10th, '12, 04:45

Re: libgtk+1.2 and libgtk+2.0 - compatible?

Postby doktor5000 » Jun 13th, '12, 00:03

As far as i know, those are totally different, that's GTK1 vs GTK2, two different toolkits. Also GTK1 is long deprecated and was removed from Mageia/Mandriva quite some time ago ...

Which gtk1 packages you you want to install, and for what purpose exactly?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18016
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: libgtk+1.2 and libgtk+2.0 - compatible?

Postby annhenrie » Jun 13th, '12, 04:08

Thanks. I am trying to run Eric's Ultimate Solitaire (eus) from Loki. It runs ok on Mandriva 2010.2. All I did was install a copy of libstdc++2.10 and symlink the EricsSolitaire.dynamic to /usr/local/bin/eus. I've been getting it to run since Mandrake 8 -- have to install the icon manually. In Mageia 2, the program complains it can't find libgtk-1.2.so.0 and others, but won't let me install libgtk-1.2 because now that conflicts with libgtk-2.0. I can't figure out how to set up a "wrapper" script so eus can have its own libgtk-1.2 library. (I just really like Eric's ultimate solitaire.)

I was able to mark [SOLVED] in original post. The problem was missing libraries that installed from rpms. It needed some Mandriva 2010.1 packages that may not have been brought to Mageia: libgtk-1.2, libglib-1.2, libesound, esound and maybe libaudiofile. The packages installed ok once I found them. Don't seem to be having any conflicts. Didn't need to symlink or preload or anything. (Have always needed to install libstdc++2.10 from Mandrake 8 or so to make Eric's happy.)
Last edited by annhenrie on Jun 18th, '12, 01:33, edited 1 time in total.
annhenrie
 
Posts: 12
Joined: Jun 10th, '12, 04:45

Re: libgtk+1.2 and libgtk+2.0 - compatible?

Postby dubigrasu » Jun 13th, '12, 06:50

You can try also to copy the missing library (libgtk-1.2.so.0) to a folder and use:
Code: Select all
LD_LIBRARY_PATH=/path/

where path is the path to the respective folder.
You can use GTK1 libraries from Mandriva (where is alive and well) if you don´t have it.

For further issues regarding new distros and old libraries use Loki Compatibility Libraries:
http://www.swanson.ukfsn.org/loki/
User avatar
dubigrasu
 
Posts: 258
Joined: Apr 27th, '11, 22:34


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest