Total servers: 3
Old community member outreach (LieroX2 General Discussion) by JasonB May 21, 2013, 12:50:52 pm
Saturday Nights (Graveyard [RIP]) by MiLeC May 19, 2013, 01:10:07 am
Thread for anything (Chat/Spam topic) (The World Outside) by Sebbe May 18, 2013, 05:28:04 pm
Dedicated server questions (Support & discussion) by Kurko May 17, 2013, 12:11:22 pm
Straight - [Str8] ([Str8]) by b-cátt May 16, 2013, 12:18:34 am
[ Fast mortars ]
Modern Warfare1.0 – 20lt
IP: 37.205.11.54
Game Mode: Death Match
Lives: 0
Max Kills: 15
Version: OpenLieroX 0.58 rc3
Players:
Cruel Mod by iRod
Cruel v0.96 – 50lt
IP: 69.255.183.244
Game Mode: Death Match
Lives: 5
Max Kills: 0
Version: OpenLieroX 0.58 rc3
Players:
iRod(0 lives, 0 kills)
[CPU]I'm Not A Human(4 lives, 0 kills)
OpenLieroXor(5 lives, 1 kills)
Kurko's testlab
Liero v1.0 – 100lt
IP: 91.156.42.210
Game Mode: Death Match
Lives: 5
Max Kills: 20
Version: OpenLieroX 0.58 rc3
Players:
angry (5 lives, 0 kills)
Pages: [1]   Go Down

Author Topic: [Solved] libpng missing from CMakeLists.txt  (Read 1409 times)

Griffin

[Solved] libpng missing from CMakeLists.txt
« on: April 07, 2008, 04:43:34 pm »
When I try to compile OLX I get this error:

Linking CXX executable bin/openlierox
/usr/lib/libSDL_image.so: undefined reference to `png_read_info@PNG12_0'
/usr/lib/libSDL_image.so: undefined reference to `png_get_tRNS@PNG12_0'
/usr/lib/libgd.so: undefined reference to `png_set_PLTE@PNG12_0'
.....

I've tried updating libsdl_image, libgd, libpng, and zlib and I still get the errors does anyone know the magical fix for what I'm doing?
« Last Edit: April 07, 2008, 08:04:49 pm by Griffin »

SteelSide

Re: Problem compiling (probably a mistake by me)
« Reply #1 on: April 07, 2008, 05:16:45 pm »
Are you sure it finds the libpng file :>?
Is it in /usr/lib/?
Get yourselves to IRC asap, I'm lonely. (And please change nick from OpenLieroXor)

Griffin

Re: Problem compiling (probably a mistake by me)
« Reply #2 on: April 07, 2008, 05:44:41 pm »
Yeah it's there: libpng.a libpng.so libpng12.a libpng12.so libpng.so.0 libpng.so.0.15.0

SteelSide

Re: Problem compiling (probably a mistake by me)
« Reply #3 on: April 07, 2008, 06:06:23 pm »
Try ldd bin/openlierox
And post output :>
Get yourselves to IRC asap, I'm lonely. (And please change nick from OpenLieroXor)

Griffin

Re: Problem compiling (probably a mistake by me)
« Reply #4 on: April 07, 2008, 06:35:47 pm »
Hmm..
Code: [Select]
ldd: bin/openlierox: No such file or directory

pelya

Re: Problem compiling (probably a mistake by me)
« Reply #5 on: April 07, 2008, 07:21:06 pm »
How are you compiling it? With cmake or with compile.sh?

Griffin

Re: Problem compiling (probably a mistake by me)
« Reply #6 on: April 07, 2008, 07:40:05 pm »
cmake, but both fail with the same error.

SteelSide

Re: Problem compiling (probably a mistake by me)
« Reply #7 on: April 07, 2008, 07:54:07 pm »
Check CMakeLists.txt to see if it contains libpng (or w/e) to link against. It should, but who knows.
Get yourselves to IRC asap, I'm lonely. (And please change nick from OpenLieroXor)

Griffin

Re: Problem compiling (probably a mistake by me)
« Reply #8 on: April 07, 2008, 08:02:48 pm »
Check CMakeLists.txt to see if it contains libpng (or w/e) to link against. It should, but who knows.
Thanks Steely that solved it! Can't think why png isn't in the libs to be linked against but heck.. YAY!

albert

Re: [Solved] libpng missing from CMakeLists.txt
« Reply #9 on: April 09, 2008, 04:21:22 pm »
No, the problem is not in OLX. OLX doesn't need to be linked against libpng, it doesn't use it.

The libs itself (SDL_image for example) should be linked though against libpng. It seems that this is not the case for you. Or SDL_image has problems to find libpng.

On which system are you trying to do this? It seems that some things are broken there.

Griffin

Re: [Solved] libpng missing from CMakeLists.txt
« Reply #10 on: April 09, 2008, 04:46:49 pm »
Ubuntu 7.10 but I'm confused to how SDL_image could stop being able to find libpng when it used to be able to..

albert

Re: [Solved] libpng missing from CMakeLists.txt
« Reply #11 on: April 09, 2008, 04:57:09 pm »
Post this on an Ubuntuform or ask in the Ubuntu IRC or fill a bug in the Ubuntu bug tracker.

This is not OLX related and obviosly a bug somewhere, perhaps in Ubuntu.

Or have you perhaps installed some self-modified versions of SDL_image, libpng or something else? Or have you run an update but that didn't completed?

Griffin

Re: [Solved] libpng missing from CMakeLists.txt
« Reply #12 on: April 09, 2008, 05:24:14 pm »
I'm certain everything is working fine, unless something I installed overwrote SDL_image, I'll check if that's the case and maybe fill in a bug report if I haven't done anything to SDL_image since I installed.
Pages: [1]   Go Up