Re: [fpc-pascal] Using Cairo lib on Linux without X
Thanks for answers everybody. On Tue, Apr 7, 2015 at 11:17 PM, Graeme Geldenhuys 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 GUI. Don't worry Graeme, I did not forget that PDF engine. It only has so different API that I could not yet join it into our code which currently uses PowerPDF. The standard Canvas API fits there more easily. > 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 > (Michael?). I checked carefully the recent FPC trunk history using your Git mirror and Gitk. I don't see any PDF engine there. In any case I will continue to adapt the PDF engine either from FpGUI or from FPC once it is committed by Michael. An ideal situation would be proof of concept versions using both Cairo lib and this pure-Pascal engine. Regards, Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
On Wed, Apr 8, 2015 at 1:21 AM, fredvs 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. > $ cd cairo I guess I must download the Cairo sources from somewhere before doing "cd cairo". > $ ./configure --disable-libX11 > $ make > $ sudo make install Regards, Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
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 your Git mirror and > Gitk. > I don't see any PDF engine there. I couldn't find it in FPC either. Maybe I jumped the gun a bit with all the things discussed in private emails between Michael and myself. > An ideal situation would be proof of concept versions using both Cairo > lib and this pure-Pascal engine. In fpGUI there is already a PDF engine demo (/examples/gui/reporting/) which shows many of the PDF engine feature. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
> $ 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". Yep, usually i use sudo apt-get build-dep xxx but it does not work any more... 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 thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Using-Cairo-lib-on-Linux-without-X-tp5721574p5721582.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
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 reinstall clean That would download the latest Cairo release directly from http://cairographics.org, then build and update your existing install. FreeBSD - Think correctly. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
On Wed, Apr 8, 2015 at 4:36 PM, fredvs 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? Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
On 4/8/2015 1:40 PM, Juha Manninen wrote: On Wed, Apr 8, 2015 at 4:36 PM, fredvs 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? did you install the dev package as well? probably called cairo-dev... -- NOTE: No off-list assistance is given without prior approval. Please *keep mailing list traffic on the list* unless private contact is specifically requested and granted. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
> 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 thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Using-Cairo-lib-on-Linux-without-X-tp5721574p5721586.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Using Cairo lib on Linux without X
On Thu, Apr 9, 2015 at 1:26 AM, fredvs 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 > ?) > => $ make > => $ sudo make install Right, sorry, I thought the sources should come from apt-get. I tested the configuration with the flags you suggested and also "--disable-Xlib" but they don't help. There is always : Xlib: yes Xlib Xrender: yes I think it must be configured in a machine without X. FreeBSD or Gentoo would be valid choices except that my final target machine has an Ubuntu server. I will continue with my experiments. This is not exactly related to FPC or Pascal any more. Thanks for help. Juha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal