GLUT Toolkit

Technical FAQs

Technical


Q:
How do I compile an original GLUT source distribution using the Sun ONE Studio (formerly Sun Workshop and Forte Tools) C compiler?
A:
% cd my_glut_directory
% mkmkfiles.imake
% make -i

Back to Top


Q:
How do I compile an example using gcc?
A:
To compile with gcc the makefiles being used have to be modified. Replace cc references with gcc and remove compile flags -xF, -Wa and -cg92.

Example output compiling demo opengl_logo:

% cd sparc_solaris/glut-3.7/progs/demos/opengl_logo
% rm *.o; make
gcc -O -DSYSV -DSVR4 -I../../.././include -I/include -I/include -I/include -DSVR4 -DSYSV -c opengl_logo.c
gcc -O -DSYSV -DSVR4 -I../../.././include -I/include -I/include -I/include -DSVR4 -DSYSV -c def_logo.c
rm -f opengl_logo
gcc -o opengl_logo opengl_logo.o def_logo.o -O -DSYSV -DSVR4 -R:/usr/openwin/lib -L/lib ../../.././lib/glut/libglut.a -L/lib -lGLU -L/lib -lGL -L -ldga -lXmu -z nodefs -lXi -lXext -lX11 -lm -lsocket -lnsl


opengl_logo demo makefile diffs:

% diff Makefile makefile
55c55
< CC = cc
---
> CC = gcc
106,107c106,107
< CDEBUGFLAGS = -O -xF
< CCOPTIONS = -DSYSV -DSVR4 -xF -Wa,-cg92
---
> CDEBUGFLAGS = -O
> CCOPTIONS = -DSYSV -DSVR4

Back to Top


Q:
test
A:
skyfly needs to be ported to 64-bit Solaris Operating System (Solaris 7, 8 or 9 platforms).

Back to Top