skd_aitpune
Registered
Hi,
I am using mac to compile and run a graphics example. I had the trouble with the glut libraries but then I downloaded and installed them. The application compiles without errors but fails when I try to execute it giving error
dyld: Library not loaded: /usr/X11/lib/libglut.3.dylib
Referenced from: /Users/sandeep/Documents/graphics/./cube
Reason: image not found
Trace/BPT trap
The make file I am using is
INCLUDE = /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include
LIBDIR = -L/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib
CC = gcc
CCFLAGS =
OBJFILES = cube.o
LDLIBS = -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
cube : $(OBJFILES)
$(CC) $(CCFLAGS) -o $@ $(LIBDIR) $(OBJFILES) $(LDLIBS)
cube.o : cube.c
$(CC) $(CCFLAGS) -c cube.c -I$(INCLUDE)
I have been trying out different options through google but nothing helps. If anyone can help me on this. Thanks in advance.
I am using mac to compile and run a graphics example. I had the trouble with the glut libraries but then I downloaded and installed them. The application compiles without errors but fails when I try to execute it giving error
dyld: Library not loaded: /usr/X11/lib/libglut.3.dylib
Referenced from: /Users/sandeep/Documents/graphics/./cube
Reason: image not found
Trace/BPT trap
The make file I am using is
INCLUDE = /Developer/SDKs/MacOSX10.5.sdk/usr/X11/include
LIBDIR = -L/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib
CC = gcc
CCFLAGS =
OBJFILES = cube.o
LDLIBS = -lX11 -lXi -lXmu -lglut -lGL -lGLU -lm
cube : $(OBJFILES)
$(CC) $(CCFLAGS) -o $@ $(LIBDIR) $(OBJFILES) $(LDLIBS)
cube.o : cube.c
$(CC) $(CCFLAGS) -c cube.c -I$(INCLUDE)
I have been trying out different options through google but nothing helps. If anyone can help me on this. Thanks in advance.