Error Compiling
-
- Posts: 6
- Joined: Mon Mar 08, 2010 3:11 am
Error Compiling
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=)
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
do you have libpng installed?realityengine wrote:cannot find -lpng
-
- Posts: 6
- Joined: Mon Mar 08, 2010 3:11 am
Re: Error Compiling
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.
-
- Posts: 6
- Joined: Mon Mar 08, 2010 3:11 am
Re: Error Compiling
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
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
-
- Site Admin
- Posts: 1989
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Error Compiling
Make sure the Makefile has $(PORTLIBS) on the LIBDIRS line
-
- Posts: 6
- Joined: Mon Mar 08, 2010 3:11 am
Re: Error Compiling
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)
#---------------------------------------------------------------------------------
# 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)
-
- Site Admin
- Posts: 1989
- Joined: Tue Aug 09, 2005 3:21 am
- Location: UK
- Contact:
Re: Error Compiling
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
http://wiki.devkitpro.org/index.php/portlibs
-
- Posts: 6
- Joined: Mon Mar 08, 2010 3:11 am
Re: Error Compiling
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=)
thanks again=)
Who is online
Users browsing this forum: No registered users and 2 guests