This build script builds a static version of the Cairo graphics library under Windows using MSYS2. It builds the following libraries:
- ZLib
- Libpng
- Freetype2
- Pixman
- Cairo
- Download and install MSYS2.
- Make sure that you have all the packages installed that are listed in the file "Installed MSYS2-Packages.txt".
- Clone this repository to a location of your choice.
- Download the sources of Cairo and its dependencies. Make sure to download the versions that can be decompressed with the
tar
command, i.e files ending intar.gz
,tar.bz2
ortar.xz
! Download them here: - Put the downloaded files into the
packages
folder. - Depending on the versions of the libraries and the type of archives that you have downloaded you might have to adjust the script
build-all.sh
. If you don't want to do this just make sure to download the versions that are defined in the script.- Adjust the variables
ZLIB
,LIBPNG
,PIXMAN
,FREETYPE
andCAIRO
found at the top of the script according to the versions you have downloaded. - Adjust the variables
ZLIB_ARCHIVE
,LIBPNG_ARCHIVE
,PIXMAN_ARCHIVE
,FREETYPE_ARCHIVE
andCAIRO_ARCHIVE
according to the type of archive that you have downloaded, i.e.tar.gz
,tar.xz
etc.
- Adjust the variables
- Run the script
build-all.sh
. You might have to make it executable using the commandchmod u+x build-all.sh
. - If the script runs successfully you should find the libraries with their headers in the folder
install
.
Michael Gregorius 2018