Page 1 of 1

Linking problem: cannot find -lpng

Posted: Thu Feb 19, 2009 9:38 am
by EyesKiller
Hi, I installed devkitPPC and sucessfully tried to compile Example-sources. Now I wanted to compile a downloaded source. Unfortunatelly there is a problem with linking.

Code: Select all

linking ... wad-manager.elf
/home/floh/daten/development/wii/devkitpro/devkitPPC/bin/../lib/gcc/powerpc-gekko/4.2.4/../../../../powerpc-gekko/bin/ld: cannot find -lpng
The source of libpng* is already in the source of WAD-Manager and compiled (=> build/pngu.d build/pngu.o). What am I doing wrong? If you need information, let me know please and I'll provide this.

*)

Code: Select all

floh@Turion:~/daten/development/wii/devkitpro/WAD-Manager_v1.3_src/wad-manager$ ls -l source/libpng/*
-rw-r--r-- 1 floh floh  46173 2008-05-08 05:58 source/libpng/pngconf.h
-rw-r--r-- 1 floh floh 152462 2008-05-08 05:58 source/libpng/png.h

source/libpng/pngu:
insgesamt 52
-rw-r--r-- 1 floh floh 43866 2008-06-11 18:34 pngu.c
-rw-r--r-- 1 floh floh  7799 2008-06-11 18:55 pngu.h
cu Floh

Re: Linking problem: cannot find -lpng

Posted: Thu Feb 19, 2009 10:12 am
by EyesKiller
My fault! :roll:

I already copied libraries into lib-path. But the problem was, the png-library was called libpng12.a but I need libpng.a.
Solution:
ln -s libpng12.a libpng.a

Now linking was sucessful (I hope so, since I can test the bin at weekend first).

cu Floh