Re: [fpc-pascal] EAccessViolation on wrong exception re-raise: intended behavior?

2015-04-07 Thread Michael Van Canneyt



On Sun, 5 Apr 2015, leledumbo wrote:


I tested in Delphi XE, it also crashes. So, yes it is intended behaviour.

It is not desirable, of course. But there is no way the compiler can
decide
whether the 'raise e' statement is correct.


That's bad to know :|
What if you ask Embarcadero first? Probably they missed the point. I don't
have Delphi so I can't ask them.


Like I said, there is no way of knowing what is correct or not.

I don't really see what can be done except maybe checking if an object is already in the exception stack before adding 
it again (which I assume is what is happening)


Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[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 it means that X Window is required only for the X Window backend.
PDF or SVG backends should not require X Window.

However on my Linux Mint 17 libcairo has a dependency for libX11.so.6.
See :

# ldd /usr/lib/i386-linux-gnu/libcairo.so.2
linux-gate.so.1 =  (0xf77a7000)
libpthread.so.0 = /lib/i386-linux-gnu/libpthread.so.0 (0xf763b000)
libpixman-1.so.0 = /usr/lib/i386-linux-gnu/libpixman-1.so.0
(0xf7591000)
libfontconfig.so.1 =
/usr/lib/i386-linux-gnu/libfontconfig.so.1 (0xf7555000)
libfreetype.so.6 = /usr/lib/i386-linux-gnu/libfreetype.so.6
(0xf74b5000)
libpng12.so.0 = /lib/i386-linux-gnu/libpng12.so.0 (0xf748d000)
libxcb-shm.so.0 = /usr/lib/i386-linux-gnu/libxcb-shm.so.0 (0xf7489000)
libxcb-render.so.0 =
/usr/lib/i386-linux-gnu/libxcb-render.so.0 (0xf747f000)
libxcb.so.1 = /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf745c000)
libXrender.so.1 = /usr/lib/i386-linux-gnu/libXrender.so.1 (0xf7451000)
libX11.so.6 = /usr/lib/i386-linux-gnu/libX11.so.6 (0xf731d000)
libXext.so.6 = /usr/lib/i386-linux-gnu/libXext.so.6 (0xf730a000)
libz.so.1 = /lib/i386-linux-gnu/libz.so.1 (0xf72f)
librt.so.1 = /lib/i386-linux-gnu/librt.so.1 (0xf72e6000)
libm.so.6 = /lib/i386-linux-gnu/libm.so.6 (0xf72a)
libc.so.6 = /lib/i386-linux-gnu/libc.so.6 (0xf70f2000)
/lib/ld-linux.so.2 (0xf77a8000)
libexpat.so.1 = /lib/i386-linux-gnu/libexpat.so.1 (0xf70c9000)
libXau.so.6 = /usr/lib/i386-linux-gnu/libXau.so.6 (0xf70c5000)
libXdmcp.so.6 = /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf70bd000)
libdl.so.2 = /lib/i386-linux-gnu/libdl.so.2 (0xf70b8000)

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

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 = /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 (0x801e7)
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
(Michael?).

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

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 multiple output devices, including
 X Window, image buffers, PostScript, PDF, and SVG file output. I
 understand it means that X Window is required only for the X Window
 backend. PDF or SVG backends should not require X Window.

If you build the library from source, you can select various output
streams during the configure script.  We Gentoo users have that choice
since we build almost everything from source with configuration flags
to drive the configure script.

 However on my Linux Mint 17 libcairo has a dependency for
 libX11.so.6.

That's because the Mint people have configured it for X11.
- -- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.n...@googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iEYEARECAAYFAlUkMe8ACgkQogYgcI4W/5QOtgCgplRdO5D1YXUHCiIIUKtOGdyB
CG0AoLV/tfRJKIGZMwsgHDRnAe0aRHB4
=LJZz
-END PGP SIGNATURE-
___
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

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, PostScript, PDF, and SVG file output.
 I understand it means that X Window is required only for the X Window backend.
 PDF or SVG backends should not require X Window.

 However on my Linux Mint 17 libcairo has a dependency for libX11.so.6.

Maybe libcairo always links to it, but does not use X11 functionality
when XOpenDisplay fails?

Just an idea... I'm no expert on the matter.

-- 
Ewald

___
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

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: 
http://free-pascal-general.1045716.n5.nabble.com/Using-Cairo-lib-on-Linux-without-X-tp5721574p5721578.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