linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Mesa Application Makefile
@ 2000-10-22  5:21 Michael Norton
  2000-10-22 16:10 ` Michael Schmitz
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Norton @ 2000-10-22  5:21 UTC (permalink / raw)
  To: linuxppc-dev


hi,

I am trying to get a program I wrote on Linux (Intel) to compile on my LinuxPPC G4 machine.

Here is my Makefile:
CC = gcc
CFLAGS = -g

INCLUDE = -I/usr/X11R6/include -I/usr/include/GL

GLUT = /usr/lib/libglut.so.3.7.0

LIBPATH = -L/usr/X11R6/lib -L/usr/local/lib
XLIBS =  -L/usr/X11R6/lib -lXext -lX11

GLLIBS = -lMesaGLU -lMesaGL $(XLIBS)



PROG = gameCon
SRCS = glConsole.c
OBJS = glConsole.o

$(PROG) : $(OBJS)
	$(CC)	$(INCLUDE)	-o	$(PROG)	$(OBJS)	$(GLLIBS)	$(GLUT)

I see thois error form the linker:

[mnorton@b9 console]#make
gcc     -I/usr/X11R6/include -I/usr/include/GL  -o     gameCon glConsole.o      -lMesaGLU -lMesaGL -L/usr/X11R6/lib -lXext -lX11   /usr/lib/libglut.so.3.7.0
/usr/bin/ld: cannot find -lMesaGLU
collect2: ld returned 1 exit status
make: *** [gameCon] Error 1


What am I doing wrong? What is missing from my Makefile?

thanks,

Mike


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mesa Application Makefile
  2000-10-22  5:21 Mesa Application Makefile Michael Norton
@ 2000-10-22 16:10 ` Michael Schmitz
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Schmitz @ 2000-10-22 16:10 UTC (permalink / raw)
  To: Michael Norton; +Cc: linuxppc-dev


> GLUT = /usr/lib/libglut.so.3.7.0
>
> LIBPATH = -L/usr/X11R6/lib -L/usr/local/lib
> XLIBS =  -L/usr/X11R6/lib -lXext -lX11
>
> GLLIBS = -lMesaGLU -lMesaGL $(XLIBS)
>
> [mnorton@b9 console]#make
> gcc     -I/usr/X11R6/include -I/usr/include/GL  -o     gameCon glConsole.o      -lMesaGLU -lMesaGL -L/usr/X11R6/lib -lXext -lX11   /usr/lib/libglut.so.3.7.0
> /usr/bin/ld: cannot find -lMesaGLU
> collect2: ld returned 1 exit status
> make: *** [gameCon] Error 1
>
>
> What am I doing wrong? What is missing from my Makefile?

-L/path/to/libMesaGLU perhaps? Add it in front of your GLLIBS def.

	Michael


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-10-22 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-22  5:21 Mesa Application Makefile Michael Norton
2000-10-22 16:10 ` Michael Schmitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).