tce-load -i compiletc glib2-dev libEGL-dev libGLES-dev libXrender-dev libXext-dev fontconfig-dev pixman-dev wget https://download.gnome.org/sources/cairo/1.17/cairo-1.17.6.tar.xz cd cairo-1.17.6 CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local localstatedir=/var --disable-static --enable-xlib-xcb --enable-tee --enable-glesv2 [use either --enable-gl=yes or --enable-glesv2=yes. Not both at the same time] [--enable-glesv3 fails] [flto fails] find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [7m 28.34s] sudo make install cairo (version 1.17.6 [snapshot]) will be compiled with: The following surface backends: Image: yes (always builtin) Recording: yes (always builtin) Observer: yes (always builtin) Mime: yes (always builtin) Tee: yes XML: no (disabled, use --enable-xml to enable) Xlib: yes Xlib Xrender: yes Quartz: no (requires CoreGraphics framework) Quartz-image: no (disabled, use --enable-quartz-image to enable) XCB: yes Win32: no (requires a Win32 platform) CairoScript: yes PostScript: yes PDF: yes SVG: yes OpenGL: no (disabled, use --enable-gl to enable) OpenGL ES 2.0: yes OpenGL ES 3.0: no (disabled, use --enable-glesv3 to enable) The following font backends: User: yes (always builtin) FreeType: yes Fontconfig: yes Win32: no (requires a Win32 platform) Quartz: no (requires CoreGraphics framework) The following functions: PNG functions: yes GLX functions: no (not required by any backend) WGL functions: no (not required by any backend) EGL functions: yes X11-xcb functions: yes XCB-shm functions: yes The following features and utilities: cairo-trace: yes cairo-script-interpreter: yes And the following internal features: pthread: yes gtk-doc: no gcov support: no symbol-lookup: yes test surfaces: no (disabled, use --enable-test-surfaces to enable) ps testing: no (requires libspectre) pdf testing: no (requires poppler-glib >= 0.17.4) svg testing: no (requires librsvg-2.0 >= 2.35.0) --- The Xlib/XCB functions feature is still under active development and is --- included in this release only as a preview. It does NOT fully work yet --- and incompatible changes may yet be made to Xlib/XCB functions specific --- API. --- The OpenGLESv2 surface backend feature is still under active development --- and is included in this release only as a preview. It does NOT fully work --- yet and incompatible changes may yet be made to OpenGLESv2 surface --- backend specific API. --- The tee surface backend feature is still under active development and is --- included in this release only as a preview. It does NOT fully work yet --- and incompatible changes may yet be made to tee surface backend specific --- API.