Skip to content

Classic Building the libraries

suborb edited this page Mar 5, 2024 · 6 revisions

(Re)building the z88dk libraries

Warning

Rebuilding the libraries can take a very long time, especially on Windows and older hardware. The nightly source tarballs and kits contains pre-built libraries which you can extract to save time.

The z88dk libraries are placed in the {z88dk}/libsrc folder.

The compiler itself must be built (or installed) already and the system environment must be set with the correct file paths.

The Unix style 'make' command must be present too.

Type make and let the build process proceed.

Once the libs are compiled copy them (*.lib) to {z88dk}/lib/clibs.

Happy coding!

(Re)building the z88dk libraries on Windows

The following is a recipe for building the libraries from a vanilla machine, you will probably need adjust if you've already got a source tree.

  1. Open git-bash
  2. git clone https://www.github.com/z88dk/z88dk
  3. Download the latest build from http://nightly.z88dk.org
  4. Copy the bin folder from the nightly kit into the cloned tree
  5. Download make-4.1-2-without-guile-w32-bin.zip (get the version without guile) from https://sourceforge.net/projects/ezwinports/files/
  6. Open git-bash in administrator mode
  7. cd /
  8. unzip make-4.1-2-without-guile-w32-bin.zip
  9. Open git-bash as a normal user
  10. cd z88dk/
  11. export PATH=$(pwd)/bin:$PATH
  12. export ZCCCFG=$(pwd)/lib/config
  13. cd libsrc
  14. make
  15. cp *.lib ../lib/clibs/

Despite providing this recipe, it should be noted that it will an order of magnitude quicker to use the libraries from an appropriate nightly build.

Clone this wiki locally