You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
9 months ago | |
---|---|---|
cmake | 9 months ago | |
.gitignore | 9 months ago | |
CMakeLists.txt | 9 months ago | |
README.md | 9 months ago | |
config.h | 1 year ago | |
example.c | 1 year ago | |
giteapc.make | 9 months ago | |
png.c | 1 year ago | |
png.h | 1 year ago | |
pngconf.h | 1 year ago | |
pngdebug.h | 1 year ago | |
pngerror.c | 1 year ago | |
pngget.c | 1 year ago | |
pnginfo.h | 1 year ago | |
pnglibconf.c | 1 year ago | |
pnglibconf.h | 1 year ago | |
pngmem.c | 1 year ago | |
pngpread.c | 1 year ago | |
pngpriv.h | 1 year ago | |
pngread.c | 1 year ago | |
pngrio.c | 1 year ago | |
pngrtran.c | 1 year ago | |
pngrutil.c | 1 year ago | |
pngset.c | 1 year ago | |
pngstruct.h | 1 year ago | |
pngtest.c | 1 year ago | |
pngtrans.c | 1 year ago | |
pngwio.c | 1 year ago | |
pngwrite.c | 1 year ago | |
pngwtran.c | 1 year ago | |
pngwutil.c | 1 year ago |
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
andpnglibconf.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>