The well known libPNG 1.5.30 working on the Casio fx-CG50/Graph 90+E and fx-Cg10/20/PRIZM
Go to file
Sylvain PILLOT 89dfc20089 corrected find_package and target_link_libraries stuff 2022-08-30 10:48:23 +02:00
cmake corrected find_package and target_link_libraries stuff 2022-08-30 10:48:23 +02:00
.gitignore Updated name to cPNG + creation of automatic link with cZlib 2022-08-30 10:27:49 +02:00
CMakeLists.txt corrected find_package and target_link_libraries stuff 2022-08-30 10:48:23 +02:00
README.md Updated name to cPNG + creation of automatic link with cZlib 2022-08-30 10:27:49 +02:00
config.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
example.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
giteapc.make Updated name to cPNG + creation of automatic link with cZlib 2022-08-30 10:27:49 +02:00
png.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
png.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngconf.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngdebug.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngerror.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngget.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pnginfo.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pnglibconf.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pnglibconf.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngmem.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngpread.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngpriv.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngread.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngrio.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngrtran.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngrutil.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngset.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngstruct.h rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngtest.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngtrans.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngwio.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngwrite.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngwtran.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00
pngwutil.c rev 1.0 - initial commit 2022-05-03 23:24:25 +02:00

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.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
  • link with -lcPNG -lcZlib

In the C/C++ sources #include <png.h>