PDA

View Full Version : Not run regnum.


aady
12-28-2011, 03:23 PM
./rolauncher: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

extra/libpng 1.4.8-1 [installed]
A collection of routines used to create PNG format graphics files
multilib/lib32-libpng 1.4.8-1 [installed]
A collection of routines used to create PNG format graphics files (32-bit)

whereis libpng
libpng: /usr/lib/libpng.so /usr/lib/libpng14.a /usr/lib/libpng14.so /usr/lib/libpng.a /usr/share/man/man3/libpng.3.gz

How you see, all for run installed. What a problem?

standistortion
12-28-2011, 05:38 PM
Hmm, what distro? Using ubuntu 10.04 here and have a libpng12-0 package. First thing to try would be looking for a package that gives you libpng12 for your system.

If that is impossible you could try creating a symbolic link named libpng12.so.0 to the more recent version of libpng you have installed, 'locate libpng' should find it. Dont do this unless you have to though, it could break things.

andres81
12-28-2011, 07:04 PM
just make a symlink that points from libpng12.so.0 to your installed libpng14.so xD

standistortion
12-28-2011, 09:39 PM
lol, never knew you could use cp to make links :) Which distro? If I remember correctly libpng can run standalone, if you cant get a packaged version for your distro you should be able to strip it from an older package and put it into /usr/lib manually (run ldconfig afterwards), a lot of different applications use it though so it could cause wierd problems later.

You could also put a copy of libpng12 into your regnum folder and specify rolauncher should use it, cant remember how to though, will take a look later if your still having problems.

Surprised this hasn't been a problem before, would be worth sending a ticket to support about it if you know everything is ok and up to date on your system.

aady
12-28-2011, 09:39 PM
standistortion Thanks for answer.

Distro ArchLinux.

cd /usr/lib
sudo cp -s libpng14.so.14.8.0 libpng12.so.0
./rolauncher
./rolauncher: /usr/lib/libpng12.so.0: version `PNG12_0' not found (required by ./rolauncher)

It seems that is hard tied to version 1.2 :confused2:

Awrath
12-28-2011, 09:48 PM
standistortion Thanks for answer.

Distro ArchLinux.

cd /usr/lib
sudo cp -s libpng14.so.14.8.0 libpng12.so.0
./rolauncher
./rolauncher: /usr/lib/libpng12.so.0: version `PNG12_0' not found (required by ./rolauncher)

It seems that is hard tied to version 1.2 :confused2:

Hello fellow archer. You can find libpng12 in the AUR:
Click Here! (http://aur.archlinux.org/packages.php?ID=33795)

That should fix your problems.

aady
12-28-2011, 10:12 PM
lol, never knew you could use cp to make links :)

Look man cp and look key -s.

you should be able to strip it from an older package and put it into /usr/lib manually

And trash old lib my /usr/lib directory? No thx.

You could also put a copy of libpng12 into your regnum folder and specify rolauncher should use it

I try it, not work. Rolauncher loking only /usr/lib.

if you know everything is ok and up to date on

My system ok. I play many games, even under wine, and everything works fine.

Surprised this hasn't been a problem before, would be worth sending a ticket to support about it

You must do this, because the game compiled with a strong binding to the version/old library.

Awrath No, thx. I have this lib. But in it need copy /usr/lib, i dont want trash my system old lib.

standistortion
12-28-2011, 10:31 PM
The link Awrath posted should work for you.
And trash old lib my /usr/lib directory? No thx.
No need to replace libpng entirely, you can put a copy of libpng 1.2 named libpng12.so.0 in there and it shouldn't cause any problems, it will only get used if applications are looking for that specific name, most will want libpng.so which is still the original libpng 1.4.8-1 version. You could put it anywhere in your path either, /usr/share/lib would probably be best.
You must do this, because the game compiled with a strong binding to the old library.
Its not just regnum that assumes version 1.2 will be in your system, its been around for 15 years and a lot of software just assumes it will be that version. Guess the package Awrath linked will be popular with anyone using software outside the maintained arch packages. I'll send in a ticket now about it, medium priority though, think the head developer (surak) it taking a well deserved rest :)

Happy Christmas

aady
12-29-2011, 12:58 AM
I get from other game libpng12.so.0 and copy in regnum dir, create simlink from regnum dir in /usr/lib, now all work.

standistortion No dude, you not understand. Mistaken one who compiled the game and compiled so that the library depends on the version.

NotScias
12-29-2011, 08:53 AM
That would've been easier if you just installed libpng12 from aur.
It doesn't interfere with other libpng versions. It doesn't replace or delete them.

But nice that you fixed it anyways.

Tigerious
12-29-2011, 09:41 PM
No slotable packages in ArchLinux ? :)

aady
12-29-2011, 11:57 PM
No slotable packages in ArchLinux ? :)

ArchLinux is very flexible, you can solve the problem in different ways. :)

SilverHaven
12-30-2011, 01:21 AM
I remember this seeing here somewhen in summer after one ro update, I solved this by installing libpng-1.2 from AUR, but in the post surak said something like that shouldn't happen that it should be staticaly linked or something like that.

Edit:
here is the thread http://www.regnumonline.com.ar/forum/showthread.php?t=76146&highlight=libpng