On Thu, 4 May 2017, Graeme Geldenhuys wrote:

On 2017-05-04 13:21, Mark Morgan Lloyd wrote:
text-mode console or over something really crude like telnet... and I hope you're doing that for fpGUI since you keep telling us how good it is :-)

As I said, I do that often in my own (and commercial) applications that
use fpGUI. The fpGUI framework itself also has some extra checks in to
see if a GUI environment is available, and will exit gracefully with a
error message if such an environment doesn't exist.

All this fails if the needed libraries are not available, and they are
compiled in statically for X.

home: >ldd fpguidemo
        linux-vdso.so.1 =>  (0x00007fffbfbdb000)
        libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 
(0x00007ff823a12000)
        libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 
(0x00007ff8236d8000)
        libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 
(0x00007ff8234c5000)
        libXft.so.2 => /usr/lib/x86_64-linux-gnu/libXft.so.2 
(0x00007ff8232b0000)
        libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 
(0x00007ff82306d000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff822e68000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff822a9f000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff822885000)
        libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 
(0x00007ff82265f000)
        libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 
(0x00007ff82243d000)
        libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 
(0x00007ff822233000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 
(0x00007ff822009000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x00007ff821dec000)
        /lib64/ld-linux-x86-64.so.2 (0x0000562638a98000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff821ae3000)
        libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 
(0x00007ff8218de000)
        libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 
(0x00007ff8216d8000)


We have lots of headless server instances where the X libs are simply not
installed. So the binary will not even start, and there will be no fallback
to text either.

The only solution for this situation are 2 binaries.

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

Reply via email to