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 

[SOLVED] Trouble installing zlib

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



Joined: 18 Jun 2009
Posts: 26

PostPosted: Wed Jul 15, 2009 5:32 am    Post subject: [SOLVED] Trouble installing zlib Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Jul 15, 2009 7:04 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Nine_Masquerade_



Joined: 18 Jun 2009
Posts: 26

PostPosted: Wed Jul 15, 2009 7:30 am    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Jul 15, 2009 11:27 am    Post subject: Reply with quote

http://www.guztech.nl/index.php?view=category&id=38%3Apsp&option=com_content&Itemid=56

If you have a good toolchain, you can skip to step 4.
Back to top
View user's profile Send private message AIM Address
Nine_Masquerade_



Joined: 18 Jun 2009
Posts: 26

PostPosted: Wed Jul 15, 2009 1:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Wed Jul 15, 2009 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Nine_Masquerade_



Joined: 18 Jun 2009
Posts: 26

PostPosted: Wed Jul 15, 2009 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Thu Jul 16, 2009 1:35 am    Post subject: Reply with quote

Enter them into the shell directly before you try to run the script.
Back to top
View user's profile Send private message AIM Address
Nine_Masquerade_



Joined: 18 Jun 2009
Posts: 26

PostPosted: Mon Jul 20, 2009 9:05 am    Post subject: Reply with quote

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