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 

-lz Missing???

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



Joined: 14 Nov 2007
Posts: 34

PostPosted: Mon Dec 17, 2007 8:51 pm    Post subject: -lz Missing??? Reply with quote

whenever i try to compile a EBOOT.PBP from a makefile which has the lib -lz included in it, it comes up with,


Code:
/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../psp/bin/ld: cannot find -lz
collect2: ld returned 1 exit status


Makefile has this in it:
Code:

LIBS            = -lz -lpsppower
CFLAGS          = -O2 -G0 -Wall -DAIO -DUSE_MS0
CXXFLAGS        = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS         = $(CFLAGS) -c


any help would be appreciated coz im a real f'in n00b, and i admit it
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Mon Dec 17, 2007 9:10 pm    Post subject: Reply with quote

Try installing zlib, this should fix your problem
Back to top
View user's profile Send private message AIM Address
PSPfreak!



Joined: 14 Nov 2007
Posts: 34

PostPosted: Mon Dec 17, 2007 9:16 pm    Post subject: Reply with quote

Wally4000 wrote:
Try installing zlib, this should fix your problem


so
Code:
svn co svn://svn.ps2dev.org/psp/trunk/zlib

cd zlib
make
make install
cd ..


i've tried that and when i get to make install it cant copy, and i cant overwrite the files. im going to restart my commy and do it again to see if that works
Back to top
View user's profile Send private message
PSPfreak!



Joined: 14 Nov 2007
Posts: 34

PostPosted: Mon Dec 17, 2007 9:28 pm    Post subject: Reply with quote

thanks soo much bro it worked, i had to restart so it could let me write the files soo thanks man
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Tue Dec 18, 2007 7:31 am    Post subject: Reply with quote

what sort of computer are you running...

If you are in linux / Mac OS X its handy to know sudo.

so instead of make install its sudo make install, helps quite a bit!

Wally
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue Dec 18, 2007 10:30 am    Post subject: Reply with quote

In linux/Mac, it's best to chown the pspsdk directory so that you never have to sudo again. The latest tutorial on setting up the toolchain shows how to do that.
Back to top
View user's profile Send private message AIM Address
someone
Idiot


Joined: 13 Sep 2005
Posts: 74

PostPosted: Thu Dec 20, 2007 10:04 pm    Post subject: Reply with quote

even before installing psp-binutils, i run

chown -R user:user $PSPDEV

and it avoids lots of head-aches. But then be careful with pspirkeyb installation because it tries to recursively copy some directories and will not have permission to copy .svn , so the installation will stall. you can work around that bug using sudo to build and install the package and then, use chown in the build directory and in $PSPDEV to restore permissions
Back to top
View user's profile Send private message
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