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 

BZ2 libriary for psp?

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



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sun May 27, 2007 5:33 am    Post subject: BZ2 libriary for psp? Reply with quote

Hi! I just want to know - is there bz2 libriary(for compressing files) for psp,becouse I need it,and I can't find it anywhere.If it's not available on psp,maybe you could help me port it to psp?Thanks in advance.
Back to top
View user's profile Send private message
kolaaaa



Joined: 16 Apr 2007
Posts: 15
Location: Paris

PostPosted: Sun May 27, 2007 7:09 am    Post subject: Reply with quote

Hi,

I guess it is not in the repository (but there is zlib).
I made a Makefile, it build and install the library, but I didn't test it.

1 - Download and unpack : bzip2 1.0.4
2 - Copy this Makefile, instead of the one include in the official source
3 - Then in your shell :
$ make
$ make install

This will build and install the library (libbz2.a) and the header (bzlib.h).
You may have errors when linking your application, if some functions need by the library don't exist in pspsdk, report it.

kolaaaa

[EDIT : Makefile path corrected. Use PREFIX=$(shell psp-config --psp-prefix).]


Last edited by kolaaaa on Sun May 27, 2007 7:24 pm; edited 3 times in total
Back to top
View user's profile Send private message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sun May 27, 2007 4:07 pm    Post subject: Reply with quote

Big thanks to you!!!! It works,my program compiles now.But you need to fix path that your makefile copy bzlib.h into.It should be copied to "/usr/local/pspdev/psp/include",instead of "'/usr/local/pspdev/include" - for me it worked in this first case.And so maybe you should ask admin if you could include it in svn repository?It may be useful for others.And thanks again :-)
Back to top
View user's profile Send private message
kolaaaa



Joined: 16 Apr 2007
Posts: 15
Location: Paris

PostPosted: Sun May 27, 2007 6:26 pm    Post subject: Reply with quote

Yes you are right, it's the wrong path for bzlib.h and libbz2.a. I'll correct that, and few other mistake (LDFLAGS=.... is not necessary, I was very tired).
I will make some tests to be sure that the library work as we want to. And I'll add it to the repository if admins accept it ?

kolaaaa
Back to top
View user's profile Send private message
kolaaaa



Joined: 16 Apr 2007
Posts: 15
Location: Paris

PostPosted: Sun May 27, 2007 10:35 pm    Post subject: Reply with quote

I confirm that the library is working proprely. All tests carried out by bzip2 are passed successfully on the PSP (compress and decompress some samples files, and compare them with references files).

Do I add the lib on pspdev ?
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Mon May 28, 2007 4:18 am    Post subject: Reply with quote

kolaaaa wrote:
Do I add the lib on pspdev ?
Sure, that would be good
Back to top
View user's profile Send private message
kolaaaa



Joined: 16 Apr 2007
Posts: 15
Location: Paris

PostPosted: Mon May 28, 2007 7:57 am    Post subject: Reply with quote

It's commited in /bzip2 .
Back to top
View user's profile Send private message
dot_blank



Joined: 28 Sep 2005
Posts: 498
Location: Brasil

PostPosted: Wed May 30, 2007 8:41 am    Post subject: Reply with quote

thanks very much kolaaaa :)
_________________
10011011 00101010 11010111 10001001 10111010
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