[Gllug] Makefile for OpenGL / GLUT

Andy Millar andy at andymillar.co.uk
Fri Jul 18 14:18:32 UTC 2008


Now you're missing a -L before /usr/X11....

---
Andy Millar

t: +44 (0) 845 862 0268
e: andy at andymillar.co.uk

-----Original Message-----
From: Henry Gilbert <henry.gilbert at gmail.com>
Sent: 18 July 2008 15:17
To: Greater London Linux User Group <gllug at gllug.org.uk>
Subject: Re: [Gllug] Makefile for OpenGL / GLUT

2008/7/18 Andy Millar <andy at andymillar.co.uk>:
>> You weren't being ignored, but you were assuming that your %(LIBDIR) ??
>> would prompt me to change that to $(LIBDIR) instead
>> when I am new to the Makefile's syntax.
>
> You should have said :(
>
> I thought it would have been enough as you had used both $() and %() in your Makefile.
>

It's all pretty new to me, the only knowledge of Makefile I have is
how to change the subversion variable for recompiling a kernel.

Anyway, one of the exercises that doesn't require GL/glew.h and
bibutil.h gives the following error:

$make Exemplo3DOrto

g++ -I/usr/X11R6/include/ -L/usr/lib /usr/X11R6/lib  Exemplo3DOrto.cpp
-lglut -lGLU -lGL -lm -lpthread -lX11 -lXmu -lXi -o Exemplo3DOrto
/usr/X11R6/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [Exemplo3DOrto] Error 1

So I think (or I hope) we are getting close.

regards

Henry
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list