update README.md
This commit is contained in:
parent
bb8168ddb4
commit
86635a4944
30
README.md
30
README.md
|
@ -1,19 +1,25 @@
|
|||
# Zlib 1.2.5 sources for Gint
|
||||
# libPNG 1.5.30 repository for CASIO fx-CG 10/20 (a.k.a. PRIZM) and fx-CG 50 (or Graph 90+E)
|
||||
|
||||
Need to have a fully working gcc toolchain for SH3/SH4 architecture.
|
||||
Need to have a fully working gcc toolchain for SH3/SH4 architecture, such as fxSDK
|
||||
|
||||
**Note:** libPNG requires Zlib available, so the very first step is to get that library available and working prior to libPNG. You can get a working Zlib for CASIO fx-CG 10/20 (a.k.a. PRIZM) and fx-CG 50 (or Graph 90+E) here : [libZlib for PRIZM](https://gitea.planet-casio.com/Slyvtt/cZlib1_2_5)
|
||||
|
||||
## Automatic installation using giteapc
|
||||
|
||||
You can also use the `gitea install Slyvtt/cPNG1_5_30` command to get an automatic install
|
||||
|
||||
when you compile a program for use with libPNG, do not forget to add a `-lcPNG -lczlib` option in your compilator command line.
|
||||
|
||||
and then a `#include <png.h>` in your C/C++ sources
|
||||
|
||||
|
||||
## Manual compilation using a Makefile
|
||||
|
||||
Compilation is done by using the adhoc Makefile :
|
||||
`make -f Makefile.prizm` in the main directory
|
||||
|
||||
It should produce the library libczlib.a
|
||||
It should produce the library libcPNG.a and copy everything in the right place.
|
||||
|
||||
The following steps are not automatically done, so please proceed with the following manipulations :
|
||||
* copy the library `libczlib.a` into your SH3/SH4 compiler lib folder
|
||||
* copy `zlib.h` and `zconf.h` files contained in the include folder into the include folder of the SH3/SH4 compiler
|
||||
|
||||
You can also use the `gitea install Slyvtt/cZlib1_2_5` command to get an automatic install
|
||||
|
||||
when you compile a program for use with Zlib, do not forget to add a `-lczlib` option in your compilator command line.
|
||||
|
||||
and then a `#include <zlib.h>` in your C/C++ sources
|
||||
|
||||
* copy the library `libcPNG.a` into your SH3/SH4 compiler lib folder
|
||||
* copy `png.h`, `pngconf.h` and `pnglibconf.h` files contained in the include folder into the include folder of the SH3/SH4 compiler
|
||||
|
|
Loading…
Reference in New Issue