Page 1 of 1
Error Compiling
Posted: Mon Mar 08, 2010 3:23 am
by realityengine
Ive tried searching the forums but havent had any luck. Im trying to compile libwiigui but keep coming across this error
log:
http://pastebin.com/8G9GLW28
c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-eabi/4.4.2/../../../../powerpc-eabi/bin/ld.exe: cannot find -lpng
collect2: ld returned 1 exit status
make[1]: *** [/c/libwiigui/libwiigui-demo.elf] Error 1
"make": *** [build] Error 2
> Process Exit Code: 2
thanks for any help=)
Re: Error Compiling
Posted: Mon Mar 08, 2010 10:54 am
by vuurrobin
realityengine wrote:cannot find -lpng
do you have libpng installed?
Re: Error Compiling
Posted: Mon Mar 08, 2010 10:59 am
by realityengine
i believe i did, i was using the latest dekitpro installer and it was a full installation. Ive tried reinstalling it and had the same results, let me try again.
Re: Error Compiling
Posted: Mon Mar 08, 2010 11:21 am
by realityengine
it seems correct, the structure is
C:\devkitPro\portlibs\ppc\libpng (DIR)
-- C:\devkitPro\portlibs\ppc\libpng\bin (DIR)
---- libpng12-config (FILE)
---- libpng-config (FILE)
-- C:\devkitPro\portlibs\ppc\libpng\include (DIR)
---- libpng12 (DIR)
------ png.h (FILE)
------ pngconf.h (FILE)
---- png.h (FILE)
---- pngconf.h (FILE)
-- C:\devkitPro\portlibs\ppc\libpng\lib (DIR)
---- pkgconfig (DIR)
------ libpng12.pc (FILE)
------ libpng.pc (FILE)
---- libpng12.a (FILE)
---- libpng12.la (FILE)
---- libpng.a (FILE)
---- libpng.la
Re: Error Compiling
Posted: Mon Mar 08, 2010 12:27 pm
by WinterMute
Make sure the Makefile has $(PORTLIBS) on the LIBDIRS line
Re: Error Compiling
Posted: Mon Mar 08, 2010 12:31 pm
by realityengine
it does=(
#---------------------------------------------------------------------------------
# any extra libraries we wish to link with the project
#---------------------------------------------------------------------------------
LIBS := -lpng -lz -lfat -lwiiuse -lbte -lasnd -logc -lvorbisidec -lfreetype
#---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(PORTLIBS)
Re: Error Compiling
Posted: Mon Mar 08, 2010 1:45 pm
by WinterMute
Oh, sorry I missed the problem - you have libpng installed in the wrong place. Extract the libpng archive from the portlibs downloads
directly in the portlibs/ppc directory, not in a subfolder.
http://wiki.devkitpro.org/index.php/portlibs
Re: Error Compiling
Posted: Mon Mar 08, 2010 1:46 pm
by realityengine
ill give it a go.
Re: Error Compiling
Posted: Mon Mar 08, 2010 1:55 pm
by realityengine
success, i was reading some doc's that wernt very detailed. they stated to unzip the portlibs files into the directory but not to put them at the root, so it was in its own folder..
thanks again=)