Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Mesa 3D Libraries(Using the Mesa 3D Libraries)
Mesa 3D Libraries [message #657389] Wed, 02 March 2011 16:25 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: March 2011
Junior Member
Hi

I'm working on a C project at the moment that uses the Mesa 3D libraries (available at: http://mesa3d.org/). I usually work on Ubuntu (which I've compiled the Mesa libraries on). I also have a make file that I can use to compile my code (I just type "make xxx" in the terminal).

My make file is:
CC = gcc
MESA3D=/home/t/Documents/Mesa/Mesa-7.9.1

INCLUDE = -I$(MESA3D)/include/
CFLAGS =  -O2 $(INCLUDE)
LIBS = -lglut -lGLU -lGL -lm
LDFLAGS = -Wl,-rpath,$(MESA3D)/lib -L$(MESA3D)/lib

%: %.c 
	$(CC) -o $@ $< $(INCLUDE) $(CFLAGS) $(LDFLAGS) $(LIBS)


I reference the Mesa libraries in my code with:
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>


I'd like to move into using Eclipse, rather than using a text editor and the terminal, however I'm having a few problems integrating the Mesa libraries into Eclipse.

I've tried adding the includes path:
http://i52.tinypic.com/2007dpl.png

But eclipse underlines all gl functions in pink (giving the error: "undefined reference to '....' "):
http://i53.tinypic.com/k4jwo8.png

Does anybody know how to get the Mesa libraries working in Eclispe?

Thanks very much

Dave
Re: Mesa 3D Libraries [message #657400 is a reply to message #657389] Wed, 02 March 2011 16:40 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 02-Mar-11 09:25, trombodave@gmail.com wrote:
> Hi
>
> I'm working on a C project at the moment that uses the Mesa 3D libraries
> (available at: http://mesa3d.org/). I usually work on Ubuntu (which I've
> compiled the Mesa libraries on).
> [snip]
> Does anybody know how to get the Mesa libraries working in Eclispe?
>
> Thanks very much
>
> Dave

http://www.eclipse.org/forums/index.php?t=msg&th=161206& amp;start=0&S=0b42c1f9151aeca27428ac16016f1b80
Re: Mesa 3D Libraries [message #657407 is a reply to message #657389] Wed, 02 March 2011 17:05 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: March 2011
Junior Member
Hi

I've fixed it now:

I applied the following settings:
http://i52.tinypic.com/i5cf29.png
Previous Topic:Everything set to Java 1.5, but compiles as 1.6
Next Topic:"Phantom" project
Goto Forum:
  


Current Time: Thu Apr 25 14:49:59 GMT 2024

Powered by FUDForum. Page generated in 0.07960 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top