FLTK logo

Re: [fltk.general] FLTK without X11 on Linux

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: FLTK without X11 on Linux "ed.vi... Jan 06, 2022  
  I was just wondering because I figured with all the WMs supported, it might not be too hard to add one which was a dummy and basically ignored events. Anyways, the main issue was that I was on a cluster without a working Xvfb which has since been fixed.

15+ years and 1000's of lines into developing my program, I probably would have done things differently if I had known.

On Tuesday, January 4, 2022 at 3:09:48 AM UTC+1 er...@seriss.com wrote:

On 1/3/22 6:18 AM, ed.vi...@gmail.com wrote:

Hello

I have developed an FLTK visualization application which uses GL and produces PNGs. I would also like to use it on systems remotely without having to connect to an X11 server. I can use OSmesa to create the OpenGL context but FLTK uses some X11 calls. Would it be possible to compile FLTK without having to link any X11 libraries? I need a window in which to run the OpenGL commands. 

    FLTK is pretty tied to the window manager's event systems (mouse, keyboard..).

    If your needs are purely openGL and PNG generation, you probably
    should decouple  your program from all window manager oriented graphics
    (e.g. FLTK, GLUT, etc) by splitting it into a back end (that doesn't require FLTK)
    and a front end (that does use FLTK) so you can compile your program in two
    different modes, e.g. one for headless rendering, the other for interactivity
    with the user using widgets/events.


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/1fa273b1-9592-46e1-8c6d-f8c91853d8bdn%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.