The well known libPNG 1.5.30 working on the Casio fx-CG50/Graph 90+E and fx-Cg10/20/PRIZM
| cmake | ||
| .gitignore | ||
| CMakeLists.txt | ||
| config.h | ||
| example.c | ||
| giteapc.make | ||
| png.c | ||
| png.h | ||
| pngconf.h | ||
| pngdebug.h | ||
| pngerror.c | ||
| pngget.c | ||
| pnginfo.h | ||
| pnglibconf.c | ||
| pnglibconf.h | ||
| pngmem.c | ||
| pngpread.c | ||
| pngpriv.h | ||
| pngread.c | ||
| pngrio.c | ||
| pngrtran.c | ||
| pngrutil.c | ||
| pngset.c | ||
| pngstruct.h | ||
| pngtest.c | ||
| pngtrans.c | ||
| pngwio.c | ||
| pngwrite.c | ||
| pngwtran.c | ||
| pngwutil.c | ||
| README.md | ||
Library cPNG 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.
Note: libcPNG requires cZlib available, so the very first step is to get that library available and working prior to libcPNG. 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 : libcZlib for PRIZM
You can use the giteapc install Slyvtt/cPNG command to get an automatic install
Using in a program
With CMake
find_package(cPNG 1.5.30 REQUIRED)
target_link_libraries(<TARGET> PRIVATE cPNG::cPNG)
With make, the following steps are not automatically done, so please proceed with the following manipulations :
- copy the library
libcPNG.ainto your SH3/SH4 compiler lib folder - copy
png.h,pngconf.handpnglibconf.hfiles contained in the include folder into the include folder of the SH3/SH4 compiler - link with
-lcPNG -lcZlib
In the C/C++ sources #include <png.h>