View Full Version : using glui in sgi

11-22-2002, 12:26 PM
Hello guys,
I have a problem, which is common but i am not able to find a solution myself. I hope to have a solution from you guys who are doing a considerable work in opengl.
I was trying to use "glui" functions in my opengl program in an SGI environment for the first time. I knew that "libglui.a" and glui.h are to be present in the working directory. I get the following error when I run the code with my possible erronic Makefile structure.

ld32: FATAL 12 : Expecting n32 objects: ./libglui.a(glui.o) is of unknown type.
*** Error code 2 (bu21)

My makefile is something like this:

CC = gcc
LDFLAGS = -I /development/napi/stl -L. -lglut -lglui -lX11 -lGLU -lGL -lXmu -lm
CFLAGS = -g -I$(HOME)/research/include
OBJS = main.o input.o output.o
all: myprog
myprog: $(OBJS)
$(CC) -o myprog $(OBJS) $(LDFLAGS)
rm -f *.o core

I only knew that it is enough if i include glui.h in my source code and use the flag '-lglui' in the makefile. I dont know if I am wrong. Can any one help me please?


11-23-2002, 09:41 AM
You are so off topic (slap on the wrist)

Try -n32, older Irix versions compile -o32 by default.

CFLAGS = -n32 -g -I$(HOME)/research/include

11-23-2002, 09:43 AM
Actually looks like you libglut
is of unknown origin.

freeware.sgi.com has a precompiled
version of glut that might be
a good idea.