forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem Setting Up libpng and zlib

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
hyakuhei



Joined: 03 Jul 2006
Posts: 1
Location: UK/Switzerland

PostPosted: Mon Jul 03, 2006 10:45 pm    Post subject: Problem Setting Up libpng and zlib Reply with quote

Hi guys,

Right, im setting up an environment to build a few test apps on the PSP, I should point out that im running gentoo not cygwin.

Ok, I have downloaded the trunk svn psp friendly libs, and here is a quick run down of what I have done:
Code:
cd libpng
make
make install
//This installs correctly to the pspsdk include directory
cd ..

Code:
cd zlib
make
make install prefix=/usr/local/pspdev/psp/sdk
//This seems to work and install into the right place
cd ..


Now the problem I have is that when I try to compile my very simple graphics program I get the following compiler library error:
Code:
operative@serenity ~/Development/PSP/helloworld2 $ make clean
rm -f hello.elf  main.o graphics.o framebuffer.o PARAM.SFO EBOOT.PBP EBOOT.PBP
operative@serenity ~/Development/PSP/helloworld2 $ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o main.o main.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o graphics.o graphics.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall   -c -o framebuffer.o framebuffer.c
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall  -L. -L/usr/local/pspdev/psp/sdk/lib   main.o graphics.o framebuffer.o -lpspgu -lpng -lz -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o hello.elf
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/sdk/lib/libz.a when searching for -lz
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [hello.elf] Error 1
operative@serenity ~/Development/PSP/helloworld2 $


As you can see, this sucks, any advice would be welcome

Thanks
-Rob
_________________
Shoot First, Quip Later
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Mon Jul 03, 2006 11:20 pm    Post subject: Re: Problem Setting Up libpng and zlib Reply with quote

hyakuhei wrote:
skipping incompatible /usr/local/pspdev/psp/sdk/lib/libz.a when searching for -lz


Your compile of zlib seems to have produced an invalid lib, try to recompile and reinstall.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group