| View previous topic :: View next topic |
| Author |
Message |
Nine_Masquerade_
Joined: 18 Jun 2009 Posts: 26
|
Posted: Wed Jul 15, 2009 5:32 am Post subject: [SOLVED] Trouble installing zlib |
|
|
I successfully downloaded and made zlib, but when i go to type "make install" i get the following error:
make: psp-config: Command not found
Makefile:9: /lib/build.mak: No such file or directory
make: *** No rule to make target '/lib/build.mak'. Stop.
However, typing "psp-config" does work and is recognized as a command.
My paths at the end of .bashrc are as follows:
| Code: |
export PSPDEV=/usr/local/pspdev
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin" |
Here is the zlib makefile:
| Code: | PSPSDK=$(shell psp-config --pspsdk-path)
PSPDIR=$(shell psp-config --psp-prefix)
TARGET_LIB = libz.a
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
zutil.o inflate.o infback.o inftrees.o inffast.o
CFLAGS = -O2 -G0
include $(PSPSDK)/lib/build.mak
install: $(TARGET_LIB)
@echo "Installing libz into $(PSPDIR)"
@mkdir -p $(PSPDIR)/include $(PSPDIR)/lib
@cp zlib.h zconf.h $(PSPDIR)/include
@cp libz.a $(PSPDIR)/lib
@echo "Done"
|
Also, build.mak is in the correct directory.
Thanks for any help!
Last edited by Nine_Masquerade_ on Mon Jul 20, 2009 9:07 am; edited 1 time in total |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Jul 15, 2009 7:04 am Post subject: |
|
|
| Follow the tutorials for installing the toolchain and sdk. They show how to make all the "standard" libraries as well. Zlib is one of those installed. |
|
| Back to top |
|
 |
Nine_Masquerade_
Joined: 18 Jun 2009 Posts: 26
|
Posted: Wed Jul 15, 2009 7:30 am Post subject: |
|
|
Any specific tutorials you could point me to? Im running on Ubuntu 9.04 and im trying to use this tutorial:
http://www.psp-programming.com/tutorials/c/lesson04.htm
Ive had the toolchain installed and up and running allowing me to successfully compile text-based apps, but now that im starting to add images, i need to install zlib. I follow the steps in this tutorial exactly and get the error i showed in my first post.
Do you think is has something to do with my set paths? |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
|
| Back to top |
|
 |
Nine_Masquerade_
Joined: 18 Jun 2009 Posts: 26
|
Posted: Wed Jul 15, 2009 1:56 pm Post subject: |
|
|
I get this error:
../depends/check-pspdev.sh: 5: psp-gcc not found
ERROR: Install the psptoolchain before continuing.
../depends/check-pspdev.sh: Failed;
Im pretty sure my toolchain was successfully installed, however this is telling me otherwise :(
Also, the file "psp-gcc" is located in the directory: /usr/local/pspdev/bin
so i do have the file installed.
im assuming it is looking in the wrong place.
Any other ideas before i completely reinstall the toolchain?? |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Jul 15, 2009 2:31 pm Post subject: |
|
|
Don't forget to export the environment variables.
| Code: | export PSPDEV="/usr/local/pspdev"
export PSPSDK="$PSPDEV/psp/sdk"
export PSPPATH="$PSPDEV/bin:$PSPDEV/psp/bin:$PSPSDK/bin"
export PATH="$PATH:$PSPPATH"
export PKG_CONFIG_PATH="$PSPDEV/psp/lib/pkgconfig"
|
|
|
| Back to top |
|
 |
Nine_Masquerade_
Joined: 18 Jun 2009 Posts: 26
|
Posted: Wed Jul 15, 2009 3:38 pm Post subject: |
|
|
Added those lines to .bashrc and i still get the same error.
Any other suggestions that might solve the problem?
Thanks in advance for your help :) |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Thu Jul 16, 2009 1:35 am Post subject: |
|
|
| Enter them into the shell directly before you try to run the script. |
|
| Back to top |
|
 |
Nine_Masquerade_
Joined: 18 Jun 2009 Posts: 26
|
Posted: Mon Jul 20, 2009 9:05 am Post subject: |
|
|
Ive switched to MinPSPw and it is working beautifully, so i will mark this thread as solved. Yet, in the future i may want to try to figure this error out and get the environment fully working on my Ubuntu install.
Thanks for your help J.F. |
|
| Back to top |
|
 |
|