| View previous topic :: View next topic |
| Author |
Message |
gambiting
Joined: 17 Aug 2006 Posts: 154
|
Posted: Sun May 27, 2007 5:33 am Post subject: BZ2 libriary for psp? |
|
|
| 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 |
|
 |
kolaaaa
Joined: 16 Apr 2007 Posts: 15 Location: Paris
|
Posted: Sun May 27, 2007 7:09 am Post subject: |
|
|
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 |
|
 |
gambiting
Joined: 17 Aug 2006 Posts: 154
|
Posted: Sun May 27, 2007 4:07 pm Post subject: |
|
|
| 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 |
|
 |
kolaaaa
Joined: 16 Apr 2007 Posts: 15 Location: Paris
|
Posted: Sun May 27, 2007 6:26 pm Post subject: |
|
|
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 |
|
 |
kolaaaa
Joined: 16 Apr 2007 Posts: 15 Location: Paris
|
Posted: Sun May 27, 2007 10:35 pm Post subject: |
|
|
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 |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Mon May 28, 2007 4:18 am Post subject: |
|
|
| kolaaaa wrote: | | Do I add the lib on pspdev ? | Sure, that would be good |
|
| Back to top |
|
 |
kolaaaa
Joined: 16 Apr 2007 Posts: 15 Location: Paris
|
Posted: Mon May 28, 2007 7:57 am Post subject: |
|
|
| It's commited in /bzip2 . |
|
| Back to top |
|
 |
dot_blank

Joined: 28 Sep 2005 Posts: 498 Location: Brasil
|
Posted: Wed May 30, 2007 8:41 am Post subject: |
|
|
thanks very much kolaaaa :) _________________ 10011011 00101010 11010111 10001001 10111010 |
|
| Back to top |
|
 |
|