[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: opengl (mesa) compiling problem.




On 19 May 2001, Felix Natter wrote:

> Jan Krupa <krupa@alpha.sggw.waw.pl> writes:
> 
> > I would like to use the mesa (opengl) library in C or C++.
> > 
> > I installed (debian2.2 potato) 
> > mesa-glide2 3.1-17
> > mesa-widget 3.1-17
> > mesademos
> > 
> > or tried (instead)
> > mesa-dev
> > mesag3
> > 
> > I tried to compile some example of using opengl (mesa) library
> > with the following heather:
> > 
> > #include <GL/glut.h>
> > 
> > and using the following command:
> > 
> >  gcc  -lglut -lMesaGLU -lMesaGL -lXi -lXmu -lX11 -lXext -lm -o 
> > triangle triangle.c
> 
> the Mesa-prefixes have been dropped to make it easier to port
> applications to MesaGL.
> I compile with, for example:
> gcc -Wall -o gluttest gluttest.c -lGLU -lglut -lGL -lm -L/usr/X11R6/lib -lXi -lXext -lX11 -lXmu

Thanks. It works. But how to configure Linux to be able compiling
without -L/usr/X11R6/lib ?
When I tried:
> > triangle triangle.c
>  
> the Mesa-prefixes have been dropped to make it easier to port
> applications to MesaGL.
> I compile with, for example:
> gcc -Wall -o gluttest gluttest.c -lGLU -lglut -lGL -lm -L/usr/X11R6/lib
-lXi $
  
Thanks. It works. But how to configure Linux to be able compiling
without -L/usr/X11R6/lib ?
When I tried:
> > triangle triangle.c
>  
> the Mesa-prefixes have been dropped to make it easier to port
> applications to MesaGL.
> I compile with, for example:
> gcc -Wall -o gluttest gluttest.c -lGLU -lglut -lGL -lm -L/usr/X11R6/lib
-lXi $
  
Thanks. It works. But how to configure Linux to be able compiling
without -L/usr/X11R6/lib ?
When I tried:
 gcc  -lglut -lGLU -lGL -lXi -lXmu -lX11 -lXext -lm -o triangle triangle.c

I got:
/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status

Which of the following componets would you think is better to install?:

When I tried:
 gcc  -lglut -lGLU -lGL -lXi -lXmu -lX11 -lXext -lm -o triangle triangle.c

I got:
/usr/bin/ld: cannot find -lXi 
collect2: ld returned 1 exit status

Which of the following componets would you think is better to install?:
   
> 
> you might have to install a "glut"-package as well.
I've done.

Which of the following set of  components would you think is better to
install?:

 mesa-glide2 3.1-17
 mesa-widget 3.1-17
 mesademos
...? (what else?)
 
 or (instead)
 mesa-dev
  mesag3
 ...(what else?)
      
Jan


> -- 
> Felix Natter
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 



Reply to: