Results 1 to 3 of 3

Thread: using glui in sgi

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Posts
    25

    using glui in sgi

    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)
    clean:
    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?

    Thanks,
    Vijay.
    -vijay.

  2. #2
    Junior Member Newbie
    Join Date
    Oct 2002
    Location
    Los Angeles, Ca, USA
    Posts
    21

    Re: using glui in sgi

    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

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2002
    Location
    Los Angeles, Ca, USA
    Posts
    21

    Re: using glui in sgi

    Actually looks like you libglut
    is of unknown origin.

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

Similar Threads

  1. GLUI?
    By schmudu in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 12-17-2002, 06:41 AM
  2. GLUI
    By Suf in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-21-2002, 12:00 AM
  3. GLUI
    By tim_ganly in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-18-2002, 10:08 AM
  4. GLUI and VC++ Help
    By HyperDoubt in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-24-2001, 04:46 PM
  5. GLUI
    By Dr. Lecter in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 11-28-2000, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean