[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] OpenGL



Sune Fischer wrote:
> 
> Hej Alle, specielt jer der bruger OpenGL.
> 
> Jeg har downloadet mesa, kompileret der med 'make
> linux elf', og det fungede bare fint. De samples og
> demos der er med er for seje, men så stopper morskaben
> også.
> Jeg vil naturligvis lave mine egne OpenGL app., men
> det er ikke-trivielt at få konstrueret en korrekt
> makefile, med de korrekte libs inkluderet på den
> korrekte måde. Kort sagt så kan jeg ikke finde ud af
> at hacke koden, det går altid galt hvis jeg prøver at
> udfiltrere et enkelt eksempel og putte det i en
> særskilt mappe placeret andetsteds.
> Kan man ikke bare lave en enkelt mappe mad al lortet,
> og så på en eller anden måde bare inludere den, og så
> kan alle se hinanden? Dette ville da være smart.

Det er smart at bruge:

make linux-386-elf

I docs/INSTALL står der følgende forslag til
installation af Mesa:

Header and library files:
   After you've compiled Mesa and tried the demos I recommend the
following
   procedure for "installing" Mesa on Unix systems.

   Copy the Mesa include/GL directory to /usr/local/include:
        cp -r include/GL /usr/local/include

   Copy the Mesa library files to /usr/local/lib:
        cp lib/* /usr/local/lib

        (actually, use "cp -d" on Linux to preserve symbolic links)

   Create a few symbolic links so that compiling OpenGL applications is
easy:
        cd /usr/local/lib
        IF USING STATIC (lib*.a) FILES THEN
                ln -s libMesaGL.a libGL.a 
                ln -s libMesaGLU.a libGLU.a
        ELSE
                ln -s libMesaGL.so libGL.so		<== du skal bruge disse to
linier
                ln -s libMesaGLU.so libGLU.so
        ENDIF

Så kan du lave følgende i din makefile:


gulerod:	gulerod.o
	cc -o gulerod gulerod.o -L/usr/local/lib -lglut -lGLU -lGL
-L/usr/X11R6/lib -lXi -lXmu -lXext -lm

gulerod.o:	gulerod.c
	cc -I/usr/local/include -c gulerod.c

for at compilere programmet "gulerod".

Jeg har valgt at installere GL libraries i /usr/X11R6/lib og header
filerne i /usr/X11R6/include/GL.

Mogens


-- 
Mogens Kjaer, Carlsberg Laboratory, Dept. of Chemistry
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: sslug@sslug Homepage: http://www.crc.dk


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *