[SOLVED] Trouble installing zlib

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

Moderators: cheriff, TyRaNiD

Post Reply
Nine_Masquerade_
Posts: 26
Joined: Thu Jun 18, 2009 10:30 am

[SOLVED] Trouble installing zlib

Post by Nine_Masquerade_ »

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

export PSPDEV=/usr/local/pspdev
export PSPSDK="$PSPDEV/psp/sdk"
export PATH="$PATH:$PSPDEV/bin:$PSPSDK/bin"
Here is the zlib makefile:

Code: Select all

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

Post by J.F. »

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.
Nine_Masquerade_
Posts: 26
Joined: Thu Jun 18, 2009 10:30 am

Post by Nine_Masquerade_ »

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

Post by J.F. »

http://www.guztech.nl/index.php?view=ca ... &Itemid=56

If you have a good toolchain, you can skip to step 4.
Nine_Masquerade_
Posts: 26
Joined: Thu Jun 18, 2009 10:30 am

Post by Nine_Masquerade_ »

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

Post by J.F. »

Don't forget to export the environment variables.

Code: Select all

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"
Nine_Masquerade_
Posts: 26
Joined: Thu Jun 18, 2009 10:30 am

Post by Nine_Masquerade_ »

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

Post by J.F. »

Enter them into the shell directly before you try to run the script.
Nine_Masquerade_
Posts: 26
Joined: Thu Jun 18, 2009 10:30 am

Post by Nine_Masquerade_ »

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