Home Overview FAQ Documentation Download Mailing List Geomview For Windows? Support Users Development Bug Reporting Contributing Contact Us Sponsors
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Update REQ 5332]: compiling geomview with solaris & GL graphics
OK, here's a guess about using NPGL. I'll assume you have Motif libraries. I've no idea what NPGL's libraries are called; suppose it's ``-lnpgl'', corresponding to a file name of ``libnpgl.a''. 0) setenv CPU solaris (or put ``CPU = solaris'' in Geomview/makefiles/Makedefs.global) 1) Make the appropriate include-files visible. If NPGL's include files aren't in the compiler's default search path (/usr/include or /usr/local/include), edit Geomview/makefiles/mk.solaris, changing SYSCOPTS to add an appropriate -I flag. For example: suppose you're using Sun Open Windows (which NPGL probably requires); its include-files are in /usr/openwin/include. Your copy of Motif's include-files might be in /usr/local/Motif/include, and NPGL's might be in /usr/local/NPGL/include. Then you'd change the line in Geomview/makefiles/mk.solaris from SYSCOPTS = -DSVR4 -I/usr/X11R5/include -I/usr/local/Motif1.2.2/include to read instead SYSCOPTS = -DSVR4 -I/usr/openwin/include -I/usr/local/Motif/include -I/usr/local/NPGL/include 2) Compile the GL minnegraphics library. In Geomview/src/lib/mg/gl, you'll find an O.sgi directory. You might as well just ``mv O.sgi O.sun4''. Then type "make" in Geomview/src/lib/mg, and it should rebuild libmg. 3) Edit Geomview/src/bin/geomview/x11/O.sun4/Makefile, changing the lines MORECOPTS = -DMGX11 -Ddark_ui -I/usr/include/X11 XMLIBS= -lmib ${SYSXLIBS} to read something like MORECOPTS = -DMGGL -Ddark_ui -I/usr/include/X11 XMLIBS = -lmib -lnpgl ${SYSXLIBS} (Depending on where the NPGL library is installed, you might need to add a -L option to indicate the directory it lives in, e.g.: XMLIBS = -lmib -L/usr/local/NPGL/lib -lnpgl ${SYSXLIBS} ) If you'd previously compiled geomview for X, you should remove *.o in the Geomview/src/bin/geomview/x11/O.sun4 directory, since some of the C source files get compiled differently with -DMGGL than with -DMGX11. 4) Type "make" in Geomview/src/bin/geomview/x11 (or at the top level, if you hadn't already done that).
|
||
Home | Overview | FAQ | Documentation | Support | Download | Mailing List Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors |
|||
site hosted by |