Software > Programmieren, Kompilieren
OpenGL unter SunOS 4.x ?
escimo:
Die Demos und Samples lassen sich anscheinend nicht mit dem Make-Target sunos4-sl (shared libraries) vereinbaren. ???
Daher habe ich einen weiteren Übersetzungslauf gestartet, diesmal unter Angabe des Make-Target "sunos4":
--- Code: ---$ diff Make-config.orig Make-config
626c626
< "CFLAGS = -O -DSHM -DSUNOS4" \
---
> "CFLAGS = -O -I/usr/openwin/include -DSHM -DSUNOS4" \
629c629
< "XLIBS = -lX11 -lXext"
---
> "XLIBS = -L/usr/openwin/lib -lX11 -lXext"
--- Ende Code ---
--- Code: ---date +'%D, %T' ; /usr/5bin/time make sunos4 ; date +'%D, %T'
12/29/;2, 15:44:17
mkdir lib
mkdir: lib: File exists
*** Error code 1 (ignored)
touch src/depend
touch src-glu/depend
cd src ; make sunos4
make targets \
"GL_LIB = libMesaGL.a" \
"GLU_LIB = libMesaGLU.a" \
"TK_LIB = libMesatk.a" \
"AUX_LIB = libMesaaux.a" \
"CC = acc" \
"CFLAGS = -O -DSHM -DSUNOS4" \
"MAKELIB = ar ruv" \
"RANLIB = ranlib" \
"XLIBS = -lX11 -lXext"
ar ruv libMesaGL.a accum.o alpha.o alphabuf.o api.o attrib.o bitmap.o blend.o bresenhm.o clip.o context.o copypix.o depth.o dlist.o draw.o drawpix.o enable.o eval.o feedback.o fog.o get.o interp.o image.o light.o lines.o logic.o masking.o matrix.o misc.o pb.o pixel.o points.o pointers.o polygon.o readpix.o scissor.o span.o stencil.o teximage.o texobj.o texture.o triangle.o varray.o vb.o vertex.o winpos.o xform.o cmesa.o glx.o osmesa.o svgamesa.o xfonts.o xmesa1.o xmesa2.o xmesa3.o
a - accum.o
a - alpha.o
a - alphabuf.o
a - api.o
a - attrib.o
a - bitmap.o
a - blend.o
a - bresenhm.o
a - clip.o
a - context.o
a - copypix.o
a - depth.o
a - dlist.o
a - draw.o
a - drawpix.o
a - enable.o
a - eval.o
a - feedback.o
a - fog.o
a - get.o
a - interp.o
a - image.o
a - light.o
a - lines.o
a - logic.o
a - masking.o
a - matrix.o
a - misc.o
a - pb.o
a - pixel.o
a - points.o
a - pointers.o
a - polygon.o
a - readpix.o
a - scissor.o
a - span.o
a - stencil.o
a - teximage.o
a - texobj.o
a - texture.o
a - triangle.o
a - varray.o
a - vb.o
a - vertex.o
a - winpos.o
a - xform.o
a - cmesa.o
a - glx.o
a - osmesa.o
a - svgamesa.o
a - xfonts.o
a - xmesa1.o
a - xmesa2.o
a - xmesa3.o
ar: creating libMesaGL.a
ranlib libMesaGL.a
mv libMesaGL.a* ../lib
cd src-glu ; make sunos4
make targets \
"GL_LIB = libMesaGL.a" \
"GLU_LIB = libMesaGLU.a" \
"TK_LIB = libMesatk.a" \
"AUX_LIB = libMesaaux.a" \
"CC = acc" \
"CFLAGS = -O -DSHM -DSUNOS4" \
"MAKELIB = ar ruv" \
"RANLIB = ranlib" \
"XLIBS = -lX11 -lXext"
ar ruv libMesaGLU.a glu.o mipmap.o nurbs.o nurbscrv.o nurbssrf.o nurbsutl.o project.o quadric.o tess.o tesselat.o polytest.o
a - glu.o
a - mipmap.o
a - nurbs.o
a - nurbscrv.o
a - nurbssrf.o
a - nurbsutl.o
a - project.o
a - quadric.o
a - tess.o
a - tesselat.o
a - polytest.o
ar: creating libMesaGLU.a
ranlib libMesaGLU.a
mv libMesaGLU.a* ../lib
cd src-tk ; make sunos4
make targets \
"GL_LIB = libMesaGL.a" \
"GLU_LIB = libMesaGLU.a" \
"TK_LIB = libMesatk.a" \
"AUX_LIB = libMesaaux.a" \
"CC = acc" \
"CFLAGS = -O -DSHM -DSUNOS4" \
"MAKELIB = ar ruv" \
"RANLIB = ranlib" \
"XLIBS = -lX11 -lXext"
ar ruv libMesatk.a cursor.o event.o font.o getset.o image.o shapes.o window.o
a - cursor.o
a - event.o
a - font.o
a - getset.o
a - image.o
a - shapes.o
a - window.o
ar: creating libMesatk.a
ranlib libMesatk.a
mv libMesatk.a* ../lib
cd src-aux ; make sunos4
make targets \
"GL_LIB = libMesaGL.a" \
"GLU_LIB = libMesaGLU.a" \
"TK_LIB = libMesatk.a" \
"AUX_LIB = libMesaaux.a" \
"CC = acc" \
"CFLAGS = -O -DSHM -DSUNOS4" \
"MAKELIB = ar ruv" \
"RANLIB = ranlib" \
"XLIBS = -lX11 -lXext"
ar ruv libMesaaux.a glaux.o font.o image.o shapes.o teapot.o vect3d.o xxform.o
a - glaux.o
a - font.o
a - image.o
a - shapes.o
a - teapot.o
a - vect3d.o
a - xxform.o
ar: creating libMesaaux.a
ranlib libMesaaux.a
mv libMesaaux.a* ../lib
cd demos ; make sunos4
make targets \
"GL_LIB = libMesaGL.a" \
"GLU_LIB = libMesaGLU.a" \
"TK_LIB = libMesatk.a" \
"AUX_LIB = libMesaaux.a" \
"CC = acc" \
"CFLAGS = -O -I/usr/openwin/include -DSHM -DSUNOS4" \
"MAKELIB = ar ruv" \
"RANLIB = ranlib" \
"XLIBS = -L/usr/openwin/lib -lX11 -lXext"
acc -I../include -O -I/usr/openwin/include -DSHM -DSUNOS4 gamma.c -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm -L/usr/openwin/lib -lX11 -lXext -o gamma
acc: Warning: OS level 4.1.4 not in table -- using 4.1.1 include path
[...]
cd samples ; make sunos4
make targets \
"GL_LIB = libMesaGL.a" \
"GLU_LIB = libMesaGLU.a" \
"TK_LIB = libMesatk.a" \
"AUX_LIB = libMesaaux.a" \
"CC = acc" \
"CFLAGS = -O -I/usr/openwin/include -DSHM -DSUNOS4" \
"MAKELIB = ar ruv" \
"RANLIB = ranlib" \
"XLIBS = -L/usr/openwin/lib -lX11 -lXext"
acc -I../include -O -I/usr/openwin/include -DSHM -DSUNOS4 accum.c -L../lib -lMesatk -lMesaGLU -lMesaGL -lm -L/usr/openwin/lib -lX11 -lXext -o accum
acc: Warning: OS level 4.1.4 not in table -- using 4.1.1 include path
[...]
cd book ; make sunos4
make targets \
"GL_LIB = libMesaGL.a" \
"GLU_LIB = libMesaGLU.a" \
"TK_LIB = libMesatk.a" \
"AUX_LIB = libMesaaux.a" \
"CC = acc" \
"CFLAGS = -O -I/usr/openwin/include -DSHM -DSUNOS4" \
"MAKELIB = ar ruv" \
"RANLIB = ranlib" \
"XLIBS = -L/usr/openwin/lib -lX11 -lXext"
acc -I../include -O -I/usr/openwin/include -DSHM -DSUNOS4 robot.c -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm -L/usr/openwin/lib -lX11 -lXext -o robot
acc: Warning: OS level 4.1.4 not in table -- using 4.1.1 include path
[...]
real 20:07.8
user 13:45.3
sys 4:25.8
12/29/;2, 16:04:25
--- Ende Code ---
Bibliotheken:
--- Code: ---$ pwd
/home/sx/opengl/Mesa-2.2/lib
$ ls -l
total 2762
lrwxrwxrwx 1 sx 12 Dec 22 03:49 libGL.so -> libMesaGL.so
lrwxrwxrwx 1 sx 13 Dec 22 03:49 libGLU.so -> libMesaGLU.so
-rw-r--r-- 1 sx 1124432 Dec 29 15:36 libMesaGL.a
-rwxr-xr-x 1 sx 942080 Dec 22 03:16 libMesaGL.so
-rw-r--r-- 1 sx 108358 Dec 29 15:36 libMesaGLU.a
-rwxr-xr-x 1 sx 98304 Dec 22 03:18 libMesaGLU.so
-rw-r--r-- 1 sx 48884 Dec 29 15:36 libMesaaux.a
-rwxr-xr-x 1 sx 49152 Dec 22 03:20 libMesaaux.so
-rw-r--r-- 1 sx 196728 Dec 29 15:36 libMesatk.a
-rwxr-xr-x 1 sx 196608 Dec 22 03:19 libMesatk.so
--- Ende Code ---
Link-Status eines Demo-Programmes:
--- Code: ---$ pwd
/home/sx/opengl/Mesa-2.2/lib
$ ldd bounce
-lX11.4 => /usr/openwin/lib/libX11.so.4.3
-lc.1 => /usr/lib/libc.so.1.9
-ldl.1 => /usr/lib/libdl.so.1.0
--- Ende Code ---
teils statisch, teils dynamisch - interessant
Ein Paar Videos von ausgewählten Demo- und Sample-Programmen, aufgenommen mit dem Handy, laufend auf der SPARCstation 2 (Hostname toosy). Entschuldigt die schlechte Qualität, das Handy gibt net mehr her :-[
* xdemo, gears, bounce, spin, textobj
Teil 1/2 (Mesa-2.2) ist geschafft. Teil 2/2 (GLUT 3.6) wird folgen
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln