| View previous topic :: View next topic |
| Author |
Message |
PSPfreak!

Joined: 14 Nov 2007 Posts: 34
|
Posted: Mon Dec 17, 2007 8:51 pm Post subject: -lz Missing??? |
|
|
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 |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Mon Dec 17, 2007 9:10 pm Post subject: |
|
|
| Try installing zlib, this should fix your problem |
|
| Back to top |
|
 |
PSPfreak!

Joined: 14 Nov 2007 Posts: 34
|
Posted: Mon Dec 17, 2007 9:16 pm Post subject: |
|
|
| 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 |
|
 |
PSPfreak!

Joined: 14 Nov 2007 Posts: 34
|
Posted: Mon Dec 17, 2007 9:28 pm Post subject: |
|
|
| thanks soo much bro it worked, i had to restart so it could let me write the files soo thanks man |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Tue Dec 18, 2007 7:31 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue Dec 18, 2007 10:30 am Post subject: |
|
|
| 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 |
|
 |
someone Idiot
Joined: 13 Sep 2005 Posts: 74
|
Posted: Thu Dec 20, 2007 10:04 pm Post subject: |
|
|
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 |
|
 |
|