getting glulxex to work with linux

G

Guest

Guest
Archived from groups: rec.games.int-fiction (More info?)

Guys:

I'm comparatively new to (fedora) Linux, and I'd like to be able to play
the full contingent of IF with it. I'm having a bit of trouble with
playing blorb files with Glulxex, though.

I've tested with three games: Narcolepsy, Earth and Sky II, and City of
Secrets. Narcolepsy plays fine, but when I try to run EAS2 or CoS,
Glulxex won't load - instead I get the following error:

../glulxex: symbol lookup error: /usr/lib/libpng.so.2: undefined symbol:
inflateInit_

I'm not sure why, because I have - at least as far as I can tell -
libpng.so.3 installed. I don't have much more luck with glulxeterm,
which doesn't even work with Narcolepsy:

../glulxeterm: error while loading shared libraries: libncurses.so.4:
cannot open shared object file: No such file or directory

If anybody can offer some information that'd help me get this resolved,
it'd be wonderful. I'd use Wine with winglulxe, but it's very slow,
especially with CoS.

best,
james cunningham
 
Archived from groups: rec.games.int-fiction (More info?)

On Mon, 04 Apr 2005 19:08:47 -0400, James Cunningham said to the parser:

> ./glulxex: symbol lookup error: /usr/lib/libpng.so.2: undefined symbol:
> inflateInit_
>
> ./glulxeterm: error while loading shared libraries: libncurses.so.4:
> cannot open shared object file: No such file or directory

I can't remember what version of ncurses Fedora has installed, but you
likely have a later version.

Go into /usr/lib and try this:
ls -l *ncurse*

and find out which libncurses you *do* have. Let's say you have a
libncurses.so.5. Then do this (as root):

ln -s libncurses.so.5 libncurses.so.4

I can't remember if you'll need to follow this with an 'ldconfig', but
it can't hurt.

Glulxeterm should now try to find libncurses.so.4, and get directed
through to version 5, and everything should work.

Check if you have libpng.so.2 on your system as well. You mention having
3, but that doesn't mean you have a libpng.so.2 for applications to find.
You can repeat the above procedure for libpng.so.2 as well.


Michael
 
Archived from groups: rec.games.int-fiction (More info?)

Michael:

Glulxex and glulxeterm run now, thank you! I'm not getting images with
glulxex, however - it gives the following error in the terminal:

Incompatible libpng version in application and libarary

I've tinkered with it the best I know how, but like as not I screwed
something up more than I helped. I think I'm going to have to be happy
with imageless play.

Thanks a lot for your help.

best,
james

Michael Coyne wrote:
> On Mon, 04 Apr 2005 19:08:47 -0400, James Cunningham said to the parser:
>
>
>>./glulxex: symbol lookup error: /usr/lib/libpng.so.2: undefined symbol:
>>inflateInit_
>>
>>./glulxeterm: error while loading shared libraries: libncurses.so.4:
>>cannot open shared object file: No such file or directory
>
>
> I can't remember what version of ncurses Fedora has installed, but you
> likely have a later version.
>
> Go into /usr/lib and try this:
> ls -l *ncurse*
>
> and find out which libncurses you *do* have. Let's say you have a
> libncurses.so.5. Then do this (as root):
>
> ln -s libncurses.so.5 libncurses.so.4
>
> I can't remember if you'll need to follow this with an 'ldconfig', but
> it can't hurt.
>
> Glulxeterm should now try to find libncurses.so.4, and get directed
> through to version 5, and everything should work.
>
> Check if you have libpng.so.2 on your system as well. You mention having
> 3, but that doesn't mean you have a libpng.so.2 for applications to find.
> You can repeat the above procedure for libpng.so.2 as well.
>
>
> Michael
 
Archived from groups: rec.games.int-fiction (More info?)

James Cunningham wrote:
> Glulxex and glulxeterm run now, thank you! I'm not getting images with
> glulxex, however - it gives the following error in the terminal:
> Incompatible libpng version in application and libarary

I think Michael's advice about using a link to make one version of the
shared object pretend to be another was slightly questionable, which is
causing this problem. A different version number at the end means that
he interface for the shared object has been changed, so libpng.so.2 and
libpng.so.3 do not have the same interface, so you can't use them
interchangeably. Different versions often have very similar interfaces,
so the link trick might work, but it might not.

libpng has another test internally for compatability, which is what's
catching you out here. The only real solution is to get a proper
libpng.so.2: I'd suggest starting looking from www.libpng.org

David
 
Archived from groups: rec.games.int-fiction (More info?)

On Wed, 06 Apr 2005 17:56:05 +0000, David Kinder said to the parser:

> James Cunningham wrote:
>> Glulxex and glulxeterm run now, thank you! I'm not getting images with
>> glulxex, however - it gives the following error in the terminal:
>> Incompatible libpng version in application and libarary
>
> I think Michael's advice about using a link to make one version of the
> shared object pretend to be another was slightly questionable, which is
> causing this problem. A different version number at the end means that he
> interface for the shared object has been changed, so libpng.so.2 and
> libpng.so.3 do not have the same interface, so you can't use them
> interchangeably. Different versions often have very similar interfaces, so
> the link trick might work, but it might not.

Hmmm.... well, let's just wipe that shame off my face then. I know it has
worked in the past for ncurses and some of the built glulxexs.

> libpng has another test internally for compatability, which is what's
> catching you out here. The only real solution is to get a proper
> libpng.so.2: I'd suggest starting looking from www.libpng.org

James, check out:
http://rpmfind.net/linux/rpm2html/search.php?query=libpng.so.2&submit=Search+...

You should be able to find what you need there. All of the packages
listed contain libpng.so.2. Make sure you 'rm /usr/lib/libpng.so.2'
before installing any of them.


Michael
 
Archived from groups: rec.games.int-fiction (More info?)

Thank you, both David and Michael. Everything works great now. I owe
you one!

best,
james