Ktam3874/pitx software guide, One possible makefile might look like this, There are some sourcecode examples on the webpage – Kontron KTAM3874-pITX User Manual
Page 145: And cairo graphic output, And cairo) and a simple x11, Status bar

KTD-S0057-I
Page 141 Linux® Programming Examples (DebianTM)
KTAM3874/pITX Software Guide
The following NEW packages will be installed:
binutils gcc gcc-4.6 libc-dev-bin libc6-dev libcairo-script-interpreter2
libcairo2-dev libelf1 libexpat1-dev libfontconfig1-dev libfreetype6-dev
libglib2.0-bin libglib2.0-dev libice-dev libpcre3-dev libpcrecpp0
libpixman-1-dev libpng12-dev libpthread-stubs0 libpthread-stubs0-dev
libsm-dev libx11-dev libx11-doc libxau-dev libxcb-render0-dev
libxcb-shm0-dev libxcb1-dev libxdmcp-dev libxrender-dev linux-libc-dev
manpages-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev
x11proto-render-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
The following packages will be upgraded:
libcairo-gobject2
libcairo2
One possible Makefile might look like this:
CC := arm-linux-gnueabihf-gcc -march=armv7
LDFLAGS := -l cairo -l png12 -l pixman-1 -l fontconfig -l freetype -l expat -l pthread -l X11 -l Xrender -l z -l m
all: cairo
cairo.o: cairo.c
cairo: cairo.o
$(CC) -o $@ cairo.o $(LDFLAGS)
clean:
rm cairo cairo.o
There are some sourcecode examples on the webpage
http://cairographics.org/examples/
An interesting fact of Cairo represents the ability to combine X11
TM
and Cairo graphic output:
The following demonstration program realizes six independent Cairo samples (the top right sample com-
bines X11
TM
and Cairo) and a simple X11
TM
status bar:
/***************************************************************
* Cairo demonstration program
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
****************************************************************/