Page 1 of 1
[SOLVED] libgtk+1.2 and libgtk+2.0 - compatible?

Posted:
Jun 12th, '12, 05:48
by annhenrie
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.)
Re: libgtk+1.2 and libgtk+2.0 - compatible?

Posted:
Jun 12th, '12, 13:22
by wintpe
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
Re: libgtk+1.2 and libgtk+2.0 - compatible?

Posted:
Jun 12th, '12, 18:56
by annhenrie
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.
Re: libgtk+1.2 and libgtk+2.0 - compatible?

Posted:
Jun 13th, '12, 00:03
by doktor5000
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?
Re: libgtk+1.2 and libgtk+2.0 - compatible?

Posted:
Jun 13th, '12, 04:08
by annhenrie
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.)
Re: libgtk+1.2 and libgtk+2.0 - compatible?

Posted:
Jun 13th, '12, 06:50
by dubigrasu
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/