Date: Mon, 27 Apr 1998 13:26:33 +0300 (IDT) From: Eli Zaretskii To: Esa A E Peuha cc: djgpp AT delorie DOT com Subject: Re: [Q] is xlib.h available to build GLUT for MESA with DJGPP under DOS? In-Reply-To: <86pzph7wuau.fsf@vesuri.Helsinki.FI> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 27 Apr 1998, Esa A E Peuha wrote: > > X11/Xlib.h is from X-Windows, which is windows used on Unix machines. > > I don't think you stand any chance of finding a free emulation of it > > which will work with DJGPP. > > How difficult would it be to write one? I have never tried, and I don't know enough X to estimate how hard it is. There is an old X emulation written for DJGPP v1.x which can be used as a starting point. It used GRX as its graphics back-end, and was quite good (I was told at some point that GNU Emacs could be built with X support using that emulation). The only hard problem known to me that prevents this emulation from working with DJGPP v2 is that it relied on a mouse handler which used special hooks built into go32.exe in order to report mouse events together with the keyboard events, and in the right order. AFAIK, GRX 2.x doesn't support this. A pointer to this old emulation is in the FAQ, section 22.2 (look for "Xlibemu"). Personally, I think that if a decent X emulation were available for DJGPP v2, it would be really great.