Add-in development tools for fx-9860G and fx-CG 50, to use with GCC and gint.
Go to file
Lephenixnoir 0d6a7728a1
fix return code for build-* and -s option
No idea how that slipped in there, damn.
2021-01-07 11:50:01 +01:00
fxconv fxconv: introduce an ObjectData interface to avoid assembly 2020-12-22 14:51:43 +01:00
fxg1a use a variant of <endian.h> on Mac OS 2019-06-29 09:43:32 -04:00
fxsdk fix return code for build-* and -s option 2021-01-07 11:50:01 +01:00
.gitignore fxsdk: initial push for gint v2 (WIP but mostly done) 2019-03-21 22:54:06 +01:00
Makefile fxconv: add support for script mode (-s) 2020-05-30 12:17:06 +02:00
README.md fxos: remove fxos from this repository 2020-02-19 23:33:14 +01:00
configure fxos: remove fxos from this repository 2020-02-19 23:33:14 +01:00

README.md

fxSDK

The fxSDK is a development kit for Casio graphing calculators of the family of the fx-9860G and fx-CG 50. It's a set of command-line compilation and project tools used to facilitate development with the gint kernel.

This kit is free software; you may use it for any purpose, share it, and modify it as long as you share your changes. No credit required, but please let me know!

The fxSDK is compatible with Linux and has been successfully built on Mac OS. If there are compatibility issues, I am willing to try and port stuff to your favorite operating system.

Tool description

A tool called fxos used to live here and has now moved to its own repository.

Project management (fxsdk)

fxsdk lets you set up projects almost instantly with a default folder structure and a working Makefile linking against gint for both fx-9860G and fx-CG 50. You can then use it to build and transfer your add-ins to a calculator.

Most project parameters can be changed just by editing a text file annotated with the role and description of each option.

fxsdk only writes files at project creation time, so you keep control over your build system and configuration - it just helps you get started faster.

G1A file generation (fxg1a)

fxg1a is a versatile g1a file editor that creates, edits and dumps the header of fx-9860G add-ins files. It is used to build a g1a file out of a binary program.

It supports PNG icons, checking the validity and checksums of the header, repairing broken headers and dumping both the application data and icon.

Data conversion (fxconv)

fxconv is a tool that interacts specifically with gint. It converts data files such as images and fonts into gint-specific format and embeds the result into object files that expose a single variable.

Build instructions

The fxSDK is platform-agnostic; a single install will cover any target platforms. Here are the dependencies:

  • libpng ≥ 1.6
  • Python ≥ 3.7 (might work in 3.6)
  • The Pillow library for Python 3

First configure; you can specify the install folder with --prefix, which defaults to your local home folder. You can also enable or disable tools. Broadly, you will need:

  • fxsdk if you want to benefit from the automated project setup
  • fxg1a if you want to compile add-ins for fx-9860G
  • fxconv if you want to compile gint or develop add-ins with it

Each tool can be enabled or disabled with --enable-<tool> and --disable-<tool>. For a default build you need no arguments:

% ./configure

Then make and install as usual.

% make
% make install

If you selected an install folder for which you don't have write access (which apparently includes the default folder on Mac OS), you will need sudo to install.

Usage instructions

Most details are covered in the help of each individual tool, which you can get with -h, --help or by invoking each tool without arguments.