Error Compiling

support for the powerpc toolchain
Post Reply
realityengine
Posts: 6
Joined: Mon Mar 08, 2010 3:11 am

Error Compiling

Post by realityengine » Mon Mar 08, 2010 3:23 am

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=)

User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

Re: Error Compiling

Post by vuurrobin » Mon Mar 08, 2010 10:54 am

realityengine wrote:cannot find -lpng
do you have libpng installed?

realityengine
Posts: 6
Joined: Mon Mar 08, 2010 3:11 am

Re: Error Compiling

Post by realityengine » Mon Mar 08, 2010 10:59 am

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.

realityengine
Posts: 6
Joined: Mon Mar 08, 2010 3:11 am

Re: Error Compiling

Post by realityengine » Mon Mar 08, 2010 11:21 am

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

WinterMute
Site Admin
Posts: 1989
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Error Compiling

Post by WinterMute » Mon Mar 08, 2010 12:27 pm

Make sure the Makefile has $(PORTLIBS) on the LIBDIRS line
Help keep devkitPro toolchains free, Donate today

Personal Blog

realityengine
Posts: 6
Joined: Mon Mar 08, 2010 3:11 am

Re: Error Compiling

Post by realityengine » Mon Mar 08, 2010 12:31 pm

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)

WinterMute
Site Admin
Posts: 1989
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Error Compiling

Post by WinterMute » Mon Mar 08, 2010 1:45 pm

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
Help keep devkitPro toolchains free, Donate today

Personal Blog

realityengine
Posts: 6
Joined: Mon Mar 08, 2010 3:11 am

Re: Error Compiling

Post by realityengine » Mon Mar 08, 2010 1:46 pm

ill give it a go.

realityengine
Posts: 6
Joined: Mon Mar 08, 2010 3:11 am

Re: Error Compiling

Post by realityengine » Mon Mar 08, 2010 1:55 pm

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=)

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests