You are not logged in.

#1 2010-07-28 19:45:43

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Using older shared libs for games ?

Hi fellow archers,

I like to play the enhanced Quake engine DarkPlaces (http://icculus.org/twilight/darkplaces/) together with a few mods (namely SDQuake and Kleshik).

Under Ubuntu 9.04 x64 DarkPlaces runs nicely as native x64 Linux app. Under the most recent version of arch64 DarkPlaces bombed out with an error message that the libjpeg version is too new. Something like Version 0.80 found but Version 0.62 is expected. Seems to me that even the newest version of Darkplaces is build against an older version of libjpeg than the one included in arch64. Libpng is also used by DarkPlaces since textures are stored as PNG.

My Ubuntu 9.04 x64 shows the following libs:

/usr/lib/libpng12.a
/usr/lib/libpng12.so.0.27.0
/usr/lib/libjpeg.a
/usr/lib/libjpeg.so.62.0.0

Is it "wise" to use a custom lib folder for DarkPlaces and set it via LD_LIBRARY_PATH ?

e.g.

export LD_LIBRARY_PATH=/home/ds/dplibs

Or can I simply install older versions of libjpeg and libpng without screwing up my arch64 installation ? I can remember that I also did install a few older libs on my Ubuntu 10.04 in order to get UT2k4 running.

BTW: I would prefer not to recompile DarkPlaces against newer versions of libpng/libjpeg.

TIA,
D$


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#2 2010-07-28 20:01:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Using older shared libs for games ?

If you use that computer solely for games you can downgrade to the needed versions - it will be a cleaner way.

Offline

#3 2010-07-28 20:22:30

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: Using older shared libs for games ?

Hm, unfortunately I am not Mr. 20 PCs hmm

So my arch64 box serves both for gaming purposes as well as for daily use. Esp. libpng and libjpeg are quite "central" libs. So running older versions for the whole system doesn´t seem a smart idea to me, or am I wrong ?


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#4 2010-07-28 20:28:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Using older shared libs for games ?

I'm still running xorg 1.6 but that's quite easy to do compared to keeping old libpng & libjpeg.

What's the worst that can happen with 'export LD_LIBRARY_PATH=/home/ds/dplibs'? The app won't run? I don't think that it will blow your computer apart, so give it a try.

Offline

#5 2010-07-28 22:03:40

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Using older shared libs for games ?

I'd definitely use LD_LIBRARY_PATH instead of downgrading the whole system. I've seen several games do that (including one I wrote, IIRC smile). The worst that could happen is some hacker exploiting an old security hole in these libs, but I guess if you want to play (and not rebuild) this game you don't have a choice... (Though to be honest I don't have a clue why a new version of a library can't automatically be used (API change?))

Offline

#6 2010-07-28 22:08:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Using older shared libs for games ?

> API change?
Yes, most likely. With minor changes you don't have a problem.

Offline

#7 2010-07-28 22:13:20

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: Using older shared libs for games ?

Ok, thanks for all your replies !

I will try out the approach using a dedicated lib directory for DarkPlaces under arch64.
Unfortunately my 500GB HDD which I used for arch died sad
So I have to wait until my new 1TB HDD arrives.

stqn wrote:

... but I guess if you want to play (and not rebuild) this game you don't have a choice..

Well, the other not so slick option would be using the Windows version of the DarkPlaces engine inside a 32 chrooted WINE since for Windows all requiered libs (aka dll) are included in the right version.

As usual shared libs also do have their disadvantages compared to statically linked stuff roll

Last edited by Darksoul71 (2010-07-28 22:16:20)


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#8 2010-07-29 00:01:48

doorknob60
Member
Registered: 2008-09-29
Posts: 404

Re: Using older shared libs for games ?

Install libjpeg6 from AUR, done smile http://aur.archlinux.org/packages.php?ID=28427

As you can see, I have libjpeg6 as well as regualr libjpeg installed, and they peacefully coexist:

austin@austin-desktop ~ % ls /usr/lib | grep libjpeg
2008:libjpeg.a
2009:libjpeg.so@
2010:libjpeg.so.62@
2011:libjpeg.so.62.0.0*
2012:libjpeg.so.8@
2013:libjpeg.so.8.0.2*
austin@austin-desktop ~ %

Offline

#9 2010-07-29 10:47:53

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: Using older shared libs for games ?

Ah, great !

So actually I "just" need to install this libjpeg package:
http://aur.archlinux.org/packages.php?ID=28427
plus this libpng package:
http://aur.archlinux.org/packages.php?ID=33795
and I should be done smile

Thanks a lot...:D:D

I will test and report back.

BTW: Is it acceptable to add Wiki entries for certain games and how to get them running in the arch wiki ?


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#10 2010-07-29 10:49:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Using older shared libs for games ?

Darksoul71 wrote:

BTW: Is it acceptable to add Wiki entries for certain games and how to get them running in the arch wiki ?

IIRC there's a short one on Starcraft already, so as long as you don't encourage piracy etc. I should be fine.

Offline

#11 2010-07-29 10:58:33

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: Using older shared libs for games ?

karol wrote:

IIRC there's a short one on Starcraft already, so as long as you don't encourage piracy etc. I should be fine.

No, there is no need to encourage piracy. Quake plus the addon packs is stone old smile

I hope everyone is able to grab an old copy of Quake plus Rogue´s and Hipnotic´s Missionpacks over at the bay tongue

Last edited by Darksoul71 (2010-07-29 11:04:38)


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#12 2010-07-29 11:17:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Using older shared libs for games ?

> No, there is no need to encourage piracy. Quake plus the addon packs is stone old
So is StarCraft / BroodWar.

Offline

Board footer

Powered by FluxBB