A simple project to render an image to spiral.png
. It's meant as an example of using Cairo DLLs for Windows. You can build it on Windows, MacOS or Linux.
CairoSample expects to find the Cairo header files, import libraries and DLLs in a subfolder named extern\cairo-windows-1.15.12
. You can download and extract the package automatically by running the Python 3 script setup-win32.py
. If you don't have Python installed, download and extract the package by hand.
Install the Cairo headers and libraries using MacPorts.
sudo port install cairo
Install the Cairo headers and libraries.
sudo apt install libcairo2-dev
For build instructions, see the blog post How to Build a CMake-Based Project.