www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/15/01:14:18

Xref: news-dnh.mv.net comp.os.msdos.djgpp:369
Newsgroups: comp.os.msdos.djgpp
Path: news-dnh.mv.net!mv!news.sprintlink.net!EU.net!Portugal.EU.net!news.rccn.net!master.di.fc.ul.pt!news.inesc.pt!animal.inescn.pt!bart.inescn.pt!cgcad
From: acc AT asterix DOT inescn DOT pt (Antonio Costa)
Subject: Xlibemu (Xlib for DJGPP)
Keywords: X11
Sender: cgcad AT bart DOT inescn DOT pt (Comp. Graphics/CAD)
Nntp-Posting-Host: bart.inescn.pt
Organization: INESC-Porto, Portugal
Date: Tue, 13 Jun 1995 16:23:39 GMT
Lines: 115
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

New X libs added to xlibemu, based on X11R5:

libXt.a - the famous X toolkit
libXext.a - some extensions
libXi.a - X input extensions
libXmu - CMU toolkit
libXaw3d - the 3D version of AW toolkit

HELP IS WELCOME!

xlibemu was modified because some functions were missing.
All the modifications are delimited by #ifdef GO32 ... #endif
directives. One new file added (xreadsen.c).
The Xt sources were also slightly modified (for fvwm support and other
reasons).

The file names of all those lib' sources, includes and so on have been
converted to DOS, but some editing of some source files was needed to
cope with new names.

With all these I have been able to compile and run several programs:

xmine  - like Windows Minesweeper (not 100%)
ico    - simple X demo
maze   - simple X demo
puzzle - simple X game
bez    - a Bezier curve demo program

bez uses another lib (libsx.a) which I managed to build over libXaw3d
and the others, although not yet fully tested...

Please get all the stuff in pub/PC/X to have a look:
xlib-app.zip - Applications source (xmine, puzzle, ico, tetris...)
xlib-bin.zip - Applications binaries
xlib-inc.zip - All header files
xlib-lib.zip - All libraries
xlib-man.zip - Man pages
xlib-sr0.zip - Libraries source (part 1)
xlib-sr1.zip - Libraries source (part 2)

Antonio Costa
acc AT asterix DOT inescn DOT pt
-----
# $Id: readme 1.5 1994/02/01 15:20:18 ulrich Exp $
#
# Readme for Xlibemu version 0.3
#
# Author:	Ulrich Leodolter
# Email:	ulrich AT lab1 DOT psy DOT univie DOT ac DOT at
# Address:	Austria 3051 St.Christopen, Ludmerfeld 33
#

This is the distribution for Xlibemu, an emulation for Xlib.
Xlibemu is not an X Window server and has no network support.
Xlibemu covers most of the library functions only partly or
in a dummy way, and some functions aren't implemented at all.
It was developed to be able to compile X applications that
are useful even when not running in an multitasking system.

Xlibemu does not use the X Window System Protocol, it replaces
most(some) of the library functions by emulation functions.

With this version of Xlibemu it is possible to run Emacs 19.19,
or Tcl7.0/Tk3.3 (I have tested both).

To understand what Xlibemu does or doesn't please look at the
sources. First look at "hello.c" to see how an window manager
(fvwm()) can be linked together with an application.

Compilation:

You need the following packages installed:

DJGPP 1.11 or later
GRX 1.03 library, sources and fonts
The sources from X11R5 subdirectory mit/lib/X/*
The include files from X11R5 distribution
(I have copied the directory /usr/include/X11 from my Linux
 installation, so I don't know exactly which files are used
 to compile X applications that need only libX11.a)

First Step:

	>cd xlibemu
	>set DJGPP=<your djgpp directory>
	>rem fvwm 1.18d
	>make -C../fvwm/fvwm libfvwm.o
	>cp ../fvwm/fvwm/libfvwm.o ../fvwm
	>make depend
	>make install

If you want to use cursor.fnt you must update fonts.dir:
	>cp cursor.fnt %GRXFONT%
	>cd %GRXFONT%
	>fntool -itype fnt -otype dir *.fnt

To run hello:
	
	>set GRXFONT=%DJGPP%/contrib/libgrx/fonts
	>set DISPLAY=1024x758x256
	>set HOME=<your home directory>
	>rem # not really needed for hello
	>set XMODMAP=<your modmap file>
	>cp _fvwmrc %HOME%
	>go32 hello

Type 'q' to quit hello.

Please send all comments, flames, patches, etc, to me.  I am responsible
for the Xlibemu development.

For Copyright information look at "copying.h".

I someone want's to use this sources in a commercial software package,
(I don't believe in that) percentages are welcome by the author.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019