BZ2 libriary for psp?
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.
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).]
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.
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 :-)