XForms: xforms:fl_add_glcanvas

Kay Fleetwood (rfleetwood@tecmasters.com)
Wed, 26 May 1999 10:57:17 -0500

# To subscribers of the xforms list from Kay Fleetwood <rfleetwood@tecmasters.com> :

Greetings,

I've tried everything. (Well, not everything, otherwise, it would
work.) I searched the list for an answer to my problem, but all of the
postings I found dealt with questions that made it past where I am. I
would like to start using glcanvases in my applications. The first
obvious step would be to look at some demos that have them in it. From
what I could gather, gl.c needs to be compiled to make the demos work.

By the way, I downloaded Mesa3.0 and placed the libraries in
/usr/local/lib/, and also in ..../FORMS/GL/ just to cover my bases. I
made links from the Mesa libraries to libGL.a, too.

tried to make gl.c and glwin.c with the command: make gl glwin. The
following are the errors that are generated.

gcc -O -s -o gl gl.o -L../FORMS -lforms -lGL -lXext -L/usr/X11R6/lib
-lX11 -lm
gl.o: In function `idle_cb':
gl.o(.text+0x2f7): undefined reference to `fl_activate_glcanvas'
gl.o: In function `buffer_cb':
gl.o(.text+0x5dc): undefined reference to `fl_set_glcanvas_attributes'
gl.o: In function `create_form_form':
gl.o(.text+0x821): undefined reference to `fl_add_glcanvas'
collect2: ld returned 1 exit status
make: [gl] Error 1 (ignored)
gcc -O -s -o glwin glwin.o -L../FORMS -lforms -lGL -lXext
-L/usr/X11R6/lib -lX11 -lm
glwin.o: In function `main':
glwin.o(.text+0x69): undefined reference to `fl_glwincreate'
collect2: ld returned 1 exit status
make: [glwin] Error 1 (ignored)

I guess what amazed me was that the errors were on xforms functions and
only on functions that dealt with glcanvases. I'm using xforms 0.88
(the glibc version).

I know this is probably very obvious to most of you, but any and all
help would be greatly appreciated.

Thank you,
Kay Fleetwood

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/