Re: XForms: Using omnithreads with xforms

Eef Hartman (E.J.M.Hartman@math.tudelft.nl)
Sun, 28 Jun 1998 13:28:42 +0200 (METDST)

# To subscribers of the xforms list from Eef Hartman <E.J.M.Hartman@math.tudelft.nl> :

In a message to me D.P. Raynaud wrote:
> 18268:./EG: /sbin/loader: Error: unresolvable symbol in
> /homes/dpr21/xforms/FORMS//libforms.so.0.86: glXQueryExtension

It looks like you're using, directly or indirect, the OpenGL to X extensions
(see "GLcanvas" in the manual), but didn't link in the OpenGL libraries.

In "our" version of XForms those are a separate object file (gl.c/o), not
in the shared library, and you should only link it in IF you're using
glcanvasses AND have a port of OpenGl available (libs GL and maybe GLU):

lrwxr-xr-x 1 root other 12 Jun 3 11:04 libGL.sl -> libMesaGL.sl
lrwxr-xr-x 1 root other 13 Jun 3 11:04 libGLU.sl -> libMesaGLU.sl
-rwxr-xr-x 1 admin admin 1101948 Jun 3 11:03 libMesaGL.sl
-rwxr-xr-x 1 admin admin 127395 Jun 3 11:03 libMesaGLU.sl

lrwxr-xr-x 1 admin admin 15 May 29 10:02 libforms.a -> libforms.a.0.88
-rw-r--r-- 1 admin admin 709028 May 29 10:01 libforms.a.0.86
-rw-r--r-- 1 admin admin 864112 May 29 10:01 libforms.a.0.88
lrwxr-xr-x 1 admin admin 16 May 29 10:02 libforms.sl -> libforms.sl.0.88
-rwxr-xr-x 1 admin admin 688128 May 29 10:01 libforms.sl.0.86
-rwxr-xr-x 1 admin admin 831488 May 29 10:01 libforms.sl.0.88

(the gl.o file is somewhere else, in this installation, which is HP-UX).

But to link a program to Mesa I need somethink like:

INC=-I/usr/local/tainc
(include files, both for XForms and for OpenGl)
LIB=-L/usr/local/talib -lMesaGL -lforms -L/usr/lib/X11R5 -lX11 -lXext -lm
(libraries, first Mesa and then XForms (and normal X11 etc))

FIL=gldraw
OBJ=$(FIL).o glform.o gl.o
(gl.o is linked in separately)

.c.o:
$(CC) -c -Aa $(OPT) $(INC) $<

$(FIL): $(OBJ)
cc -o $@ $(OBJ) $(LIB)

-- 
    \     /   /
   /#. # #-  #  /
  ## ## ## ##  ##
 # #   ## ##  ##
" "  #    ## ##
"."  ".   "./
TTTTTTTTTT  UU      UU    Eef Hartman, System Administrator
    TT      UU      UU
    TT      UU      UU    Delft University of Technology
    TT      UU      UU    Mathematics (Applied Analysis) dept.
    TT      UU      UU    Mekelweg 4, P.O. Box 5031
    TT      UU      UU    2600 GA  Delft, The Netherlands
    TT       UU    UU     e-mail : E.J.M.Hartman@math.tudelft.nl
    TT        UUUUUU      fax    : +31-15-278 7209
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil   or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/