Re: XForms: using xforms and GL (Mesa)

Luis IBANEZ (luisiban@club-internet.fr)
Fri, 21 Aug 1998 00:55:07 +0200

# To subscribers of the xforms list from Luis IBANEZ <luisiban@club-internet.fr> :

This is a multi-part message in MIME format.
--------------B198C509AA19AEEC60D07D19
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

A hint to build the library can be seen in
the mkconfig.h file in the xforms/FORMS
directory.

I'd written a little Makefile to explode the
libforms.a library, compile the gl.c (glcanvas)
and reconstruct the library.

It should be used it in a temporary directory,
in order to isolate all the *.o files generated
by the extraction of modules done by "ar".

In my Linux case the place is

/usr/local/xforms/FORMS/tmp

In this directory there are:

1) the Makefile attached to this mail
2) the gl.c file (you can copy it from xforms/FORMS)
3) the libXpm.a library (usually included in linux distribution).

It seems that (3) is optional, but I include it
to be consistent with libforms.a

Take a look at the makefile,
specially to the "install"
option which will copy libraries
to "/usr/lib".

hope this help.

Enjoy (Xforms+Mesa) = Nice combination !

-- 
________________________________________________________________

Luis Eduardo IBANEZ

PhD Student Departement Image et Traitement de l'Information Ecole Nationale Superieure des Telecommunications de Bretagne Technopole de Brest-Iroise BP 832, 29285 BREST - FRANCE Tel (33)2.98.00.13.57 Fax (33)2.98.00.10.98 e-mail: luis.ibanez@ieee.org ________________________________________________________________ --------------B198C509AA19AEEC60D07D19 Content-Type: text/plain; charset=us-ascii; name="Makefile" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Makefile"

####################################################3 # # Makefile for libforms.so # # created form mkconfig.h # # Ibanez: Thu May 21 11:39:29 MET DST 1998 # # ####################################################3

SHARED_LIB=libforms.so.0.88 SHARED_SO=libforms.so.0.88 SHARED_NAME=libforms.so STATIC_LIB=libforms.a

# # this is how the shared library is made # all: $(SHARED_SO)

gl: gl.c gcc -c gl.c -I../

lib: $(SHARED_SO)

objects: ar -x ../libforms.a

install: cp -f $(SHARED_SO) /usr/lib cp -f $(STATIC_LIB) /usr/lib

clean: rm *.o rm libforms.*

$(SHARED_SO): *.o libXpm.a ld -shared -soname $(SHARED_SO) -o $(SHARED_LIB) *.o libXpm.a ar -cvr $(STATIC_LIB) *.o

--------------B198C509AA19AEEC60D07D19--

_________________________________________________ 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/