-lz Missing???

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
User avatar
PSPfreak!
Posts: 34
Joined: Wed Nov 14, 2007 10:57 pm

-lz Missing???

Post by PSPfreak! »

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

Code: Select all

/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: Select all

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
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

Try installing zlib, this should fix your problem
User avatar
PSPfreak!
Posts: 34
Joined: Wed Nov 14, 2007 10:57 pm

Post by PSPfreak! »

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

Code: Select all

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
User avatar
PSPfreak!
Posts: 34
Joined: Wed Nov 14, 2007 10:57 pm

Post by PSPfreak! »

thanks soo much bro it worked, i had to restart so it could let me write the files soo thanks man
User avatar
Wally
Posts: 663
Joined: Mon Sep 26, 2005 11:25 am

Post by Wally »

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
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
someone
Idiot
Posts: 71
Joined: Tue Sep 13, 2005 9:03 pm

Post by someone »

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
Post Reply