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

2015-04-09 Thread Juha Manninen
FYI, I got ssh access to a Linux server and tested a program made with Lazarus CairoCancas with NoGui widgetset. The machine had Mint Linux and libcairo was installed. X11 was installed, too, but not running. ldd shows libcairo depends on X11. The program amazingly works! It builds a PDF file

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

2015-04-09 Thread Juha Manninen
On Thu, Apr 9, 2015 at 1:26 AM, fredvs fi...@hotmail.com wrote: Hum, from previous mail ;) = You may download src from = = http://cairographics.org/releases/cairo-1.14.2.tar.xz = unzip it. = $ cd cairo-1.14.2 = $ ./configure --disable-libX11 (or --disable-X11 ?) (or --enable-X11=no ?) = $

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

2015-04-08 Thread fredvs
Where is it? Hum, from previous mail ;) = You may download src from = = http://cairographics.org/releases/cairo-1.14.2.tar.xz = unzip it. = $ cd cairo-1.14.2 = $ ./configure --disable-libX11 (or --disable-X11 ?) (or --enable-X11=no ?) = $ make = $ sudo make install Fre;D - Many

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

2015-04-08 Thread Juha Manninen
Thanks for answers everybody. On Tue, Apr 7, 2015 at 11:17 PM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: 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

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

2015-04-08 Thread Graeme Geldenhuys
On 2015-04-08 09:59, Juha Manninen wrote: different API that I could not yet join it into our code which currently uses PowerPDF. No worries. Maybe somebody will one day contribute an adapter class for a PowerPDF-to-fpGUI_PDF api. ;-) I checked carefully the recent FPC trunk history using

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

2015-04-08 Thread Juha Manninen
On Wed, Apr 8, 2015 at 1:21 AM, fredvs fi...@hotmail.com wrote: If you build the library from source, you can select various output streams during the configure script. = $ sudo apt-get build-dep cairo Interesting. That works in Ubuntu but not in Mint. They are more and more distinct. $

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

2015-04-08 Thread Graeme Geldenhuys
On 2015-04-08 14:36, fredvs wrote: Yep, usually i use sudo apt-get build-dep xxx but it does not work any more... You guys should switch to FreeBSD (or PC-BSD for that matter). ;-) # cd /usr/ports/graphics/cairo # make config (to configure the features you want) # make

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

2015-04-08 Thread fredvs
$ sudo apt-get build-dep cairo Interesting. That works in Ubuntu but not in Mint. They are more and more distinct. Ooops, indeed, just try on my Mint 17 = E: Impossible to find source for cairo package... I guess I must download the Cairo sources from somewhere before doing cd cairo.

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

2015-04-08 Thread Juha Manninen
On Wed, Apr 8, 2015 at 4:36 PM, fredvs fi...@hotmail.com wrote: Yep, usually i use sudo apt-get build-dep xxx but it does not work any more... I also have XUbuntu where I could run that command. It downloaded and installed many packages but I don't find the cairo source directory. Where is it?

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

2015-04-07 Thread Juha Manninen
FPC has the API wrapper for Cairo lib. I am studying its dependencies and maybe use it in a Linux server with no X Window installed, for generating PDFs. Cairo is advertized to support multiple output devices, including X Window, image buffers, PostScript, PDF, and SVG file output. I understand

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

2015-04-07 Thread Graeme Geldenhuys
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 libcairo.so: libpixman-1.so.0 = /usr/local/lib/libpixman-1.so.0 (0x8016f8000) libfontconfig.so.1 =

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

2015-04-07 Thread David W Noon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 7 Apr 2015 22:13:51 +0300, Juha Manninen (juha.mannine...@gmail.com) wrote about [fpc-pascal] Using Cairo lib on Linux without X (in CAPN1EhAK6YF2+AJ1To4qD064cr5+UXq14MFeUncwCM_2K=x...@mail.gmail.com): [snip] Cairo is advertized to support

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

2015-04-07 Thread Ewald
On 04/07/2015 09:13 PM, Juha Manninen wrote: FPC has the API wrapper for Cairo lib. I am studying its dependencies and maybe use it in a Linux server with no X Window installed, for generating PDFs. Cairo is advertized to support multiple output devices, including X Window, image buffers,

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

2015-04-07 Thread fredvs
If you build the library from source, you can select various output streams during the configure script. = $ sudo apt-get build-dep cairo $ cd cairo $ ./configure --disable-libX11 $ make $ sudo make install Fre;D - Many thanks ;-) -- View this message in context: