[fpc-pascal] Using Cairo lib on Linux without X

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Apr 7 22:17:04 CEST 2015

On 2015-04-07 20:13, Juha Manninen wrote:
> However on my Linux Mint 17 libcairo has a dependency for libX11.so.6.

Pretty much the same here under FreeBSD 10.1

[lib]$ ldd libcairo.so
	libpixman-1.so.0 => /usr/local/lib/libpixman-1.so.0 (0x8016f8000)
	libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1 (0x80199b000)
	libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x801bda000)
	libpng16.so.16 => /usr/local/lib/libpng16.so.16 (0x801e70000)
	libxcb-shm.so.0 => /usr/local/lib/libxcb-shm.so.0 (0x8020a8000)
	libxcb-render.so.0 => /usr/local/lib/libxcb-render.so.0 (0x8022aa000)
	libxcb.so.1 => /usr/local/lib/libxcb.so.1 (0x8024b3000)
	libXrender.so.1 => /usr/local/lib/libXrender.so.1 (0x8026d1000)
	libX11.so.6 => /usr/local/lib/libX11.so.6 (0x8028d9000)
	libXext.so.6 => /usr/local/lib/libXext.so.6 (0x802c0b000)
	libz.so.6 => /lib/libz.so.6 (0x802e1c000)
	libm.so.5 => /lib/libm.so.5 (0x803032000)
	libthr.so.3 => /lib/libthr.so.3 (0x80325a000)
	libc.so.7 => /lib/libc.so.7 (0x80081f000)
	libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x80347f000)
	libbz2.so.4 => /usr/lib/libbz2.so.4 (0x8036a5000)
	libXau.so.6 => /usr/local/lib/libXau.so.6 (0x8038b7000)
	libpthread-stubs.so.0 => /usr/local/lib/libpthread-stubs.so.0 (0x803ab9000)
	libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x803cba000)
	librpcsvc.so.5 => /usr/lib/librpcsvc.so.5 (0x803ebf000)

Above is the default, but similar to what David W Noon mentioned about
Gentoo, under FreeBSD with the ports system I can configure the
dependencies without OpenGL, X11 or XCB. So probably compiling
libcairo.so yourself is the only option.

Alternative for PDF generation, as I mentioned before to you I believe,
fpGUI includes a very good PDF report engine which could easily work
without depending on fpGUI or any GUI.

Michael van Canneyt also created a PDF report engine (based on some of
the code included in fpGUI), and I believe this is already in FPC Trunk

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-pascal mailing list