Go Back   Champions of Regnum > English > Technical Support > Linux

Linux Technical issues under Linux platform

Reply
 
Thread Tools Display Modes
Old 12-28-2011, 03:23 PM   #1
aady
Pledge
 
aady's Avatar
 
Join Date: Oct 2008
Location: Russian
Posts: 30
aady is on a distinguished road
Default Not run regnum.

./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?
__________________
All need a good war.
aady no ha iniciado sesión   Reply With Quote
Old 12-28-2011, 05:38 PM   #2
standistortion
Master
 
Join Date: May 2010
Location: Ireland
Posts: 438
standistortion is on a distinguished road
Default

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.
standistortion no ha iniciado sesión   Reply With Quote
Old 12-28-2011, 07:04 PM   #3
andres81
Count
 
Join Date: Sep 2008
Posts: 1,690
andres81 is on a distinguished road
Default

just make a symlink that points from libpng12.so.0 to your installed libpng14.so
andres81 no ha iniciado sesión   Reply With Quote
Old 12-28-2011, 09:39 PM   #4
aady
Pledge
 
aady's Avatar
 
Join Date: Oct 2008
Location: Russian
Posts: 30
aady is on a distinguished road
Default

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
aady no ha iniciado sesión   Reply With Quote
Old 12-28-2011, 09:48 PM   #5
Awrath
Master
 
Awrath's Avatar
 
Join Date: May 2010
Location: England
Posts: 455
Awrath is on a distinguished road
Default

Quote:
Originally Posted by aady View Post
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
Hello fellow archer. You can find libpng12 in the AUR:
Click Here!

That should fix your problems.
Awrath no ha iniciado sesión   Reply With Quote
Old 12-28-2011, 09:39 PM   #6
standistortion
Master
 
Join Date: May 2010
Location: Ireland
Posts: 438
standistortion is on a distinguished road
Default

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.
standistortion no ha iniciado sesión   Reply With Quote
Old 12-28-2011, 10:12 PM   #7
aady
Pledge
 
aady's Avatar
 
Join Date: Oct 2008
Location: Russian
Posts: 30
aady is on a distinguished road
Default

Quote:
Originally Posted by standistortion View Post
lol, never knew you could use cp to make links
Look man cp and look key -s.

Quote:
Originally Posted by standistortion View Post
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.

Quote:
Originally Posted by standistortion View Post
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.

Quote:
Originally Posted by standistortion View Post
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.

Quote:
Originally Posted by standistortion View Post
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.

Last edited by aady; 12-28-2011 at 10:26 PM.
aady no ha iniciado sesión   Reply With Quote
Old 12-28-2011, 10:31 PM   #8
standistortion
Master
 
Join Date: May 2010
Location: Ireland
Posts: 438
standistortion is on a distinguished road
Default

The link Awrath posted should work for you.
Quote:
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.
Quote:
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
standistortion no ha iniciado sesión   Reply With Quote
Old 12-29-2011, 12:58 AM   #9
aady
Pledge
 
aady's Avatar
 
Join Date: Oct 2008
Location: Russian
Posts: 30
aady is on a distinguished road
Default

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.

Last edited by aady; 12-29-2011 at 01:25 AM.
aady no ha iniciado sesión   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:34 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
NGD Studios 2002-2024 © All rights reserved