On Wednesday, June 23, 1999 2:14 PM, Luke (boo) Farrar
[SMTP:[EMAIL PROTECTED]] wrote:
:
: I just tried nano-X-0.61.
: It compiles now.
:
: I changed the -I /home/greg/net.. blah to /usr/src/linux-86/elks/include
: and it compiled fine.
:
: It hadn't clicked that that was your main elks directory. ;-) Silly boo.
:
: And then I got an Out of memory error on my 386 and pentium when I tried
: to run the ELKS version.
:
: Recompiled with a different demo, for ELKS.
:
: Now it runs on ELKS, the screen flickers and it says Cannot open graphics.
: This is on a 386 and a pentium.
You must be using ELKS version 0.77. Otherwise it won't work.
See mwin/server/drivers/scr_bios.c, function VGA_open(), and the ioctl for ELKS.
:
:
: Then I tried Microwindows.
: First compile:
:
: bcc -0 -ansi -I/usr/src/linux-86/elks/include -DELKS=1 -DUNIX=1 -Dconst=
: -Dvolatile= -DGS_NONETWORK=1 -DFASTMOVE=1 -c demo.c -o demo.o
: graph3d.h:7.19 (from demo.c:15): error: cannot find include file tgmath.h
: make: *** [demo.o] Error 1
This is strange. My system requires tgmath.h, others tell me
that they don't have it. I'm running Caldera 2.2, which probably uses a different
libc.
To fix: (required for ELKS anyway)
server/demo.c:
#define GRAPH3D 0
server/graph3d.h:
#include <math.h> instead of <tgmath.h>
:
: Seems simple enough. The other demos have probs too, but I think that is
: all.
:
: I changed tgmath to just math, and got much further, and it just compiled
: for Linux.
:
: It definetly has potential, but on my 486 using gpm + svgalib it was
: vslow. Mouse especially. But its going well though, I think.
The mouse is setup by changing the TRESH and SCALE constants
in mwin/server/drivers/mou_ser.c Also change the server/Makefile:
SERMOUSE=1
undo
GPMMOUSE=1
Read the file INSTALL, it goes thru all this.
:
: With bcc and tgmath set to math, it gave the error:
: demo.c:204.4: error: bad expression
: demo.c:204.24: error: need scalar
: demo.c:205.4: error: bad expression
: demo.c:205.31: error: need scalar
:
I'll check into this. Al - do you have comments?
:
: The other demo's give errors not dissimilar to:
:
: bcc -0 -ansi -I/usr/src/linux-86/elks/include -DELKS=1 -DUNIX=1 -Dconst=
: -Dvolatile= -DGS_NONETWORK=1 -DFASTMOVE=1 winmain.o winuser.o wingdi.o
: winexpos.o winclip.o winevent.o windefw.o list.o devdraw.o devmouse.o
: devkbd.o devclip.o devpal4.o drivers/scr_bios.o drivers/vgaplan4.o
: drivers/elksutil.o drivers/mou_ser.o drivers/kbd_tty.o
: ../examples/landmine.o stubs.o -o microwin
: ld86: warning: _main redefined in file ../examples/landmine.o; using
: definition
: in winmain.o
: undefined symbol: _WinMain
: undefined symbol: _Draw3dBox
: make: *** [microwin] Error 1
:
:
change the DEMO= line in Makefile. Micro-windows only has one
demo: demo.c. Nano-X has three demos, ../examples/demo.c, landmine.c, and world.c.
There are two different makefiles, and you must make clean and start from scratch:
Makefile.mwin, Makefile.nanox.
Greg