Dear XFormers,
XForms works beautifully on my Linux (using Mesa 2.0), and now I need
to port my application to a different machine. I downloaded xforms-081
(for solaris), and installed it on the following machine : SunOS 5.5
Generic sun4u sparc SUNW, Ultra-2, running OpenWindows Version 3.5, with
OpenGL 1.0-3, and gcc version 2.7.2. Then, I rename gl.c in directory FORMS
as gllib.c, make a copy to directory DEMOS, then I compiled the gl.c in
DEMOS as follows (makefile contents):
CC=gcc
SYSLIB=-lnsl -L/usr/openwin/lib -lX11 -lXext -lm -L/usr/local/lib
-laux -lGLU -lGL
LIBS=-L/<myhomedir>/xforms/FORMS -R/<myhomedir>/xforms/FORMS
-lforms
gltry: gl.o gllib.o
gcc -o gltry gl.o gllib.o $(LIBS)
gl.o: forms.h
gllib.o: forms.h
1st question: there's the compiler warning -
gllib.c: In function `fl_create_glcanvas':
gllib.c:132: warning: assignment makes pointer from integer
without a cast
Is this something to worry about ? (the mesg was there when I
did it on my Linux, but then I didn't need to worry...)
2nd question:
when I clicked on the 'Single' button (for single
buffer), the program crashed ,and there's the message
GLCanvas: Can't get visual
In CanvasInit [canvas.c 198] Unable to initialize canvas
X Error of failed request: GLXBadContextTag
Major opcode of failed request: 141 (GLX)
Minor opcode of failed request: 11 ()
Serial number of failed request: 649
Current serial number in output stream: 65
what's wrong ??
Thanx in advance.
MNZ