Original geschrieben von DanDanger
Hast Du auch die richtigen Versionen installiert ????
Versuch mal, Programme zu kompilieren, die kein GLUT benutzen.......
@1.: ja
@2.: geht - z.b. die sdl-version von dem ersten proggi von http://www.gametutorials.com/Tutoria...OpenGL_Pg1.htm
die glut-version will nicht
goil, das ist ja genau das problem das ich auch habe - thx
aber die lösung will nicht so ganz...
ich soll glut neu compilieren - also hab ich die datei http://www.opengl.org/developers/doc...lut-3.7.tar.gz von der website http://www.opengl.org/developers/doc...t/index.html#2 runtergeladen und entpackt
im entpackten ordner linux gibt es eine datei "README", die beschreibt, was ich tun soll und da fangen die probs schon an: die readme ist total fürn a**** - da steht andauernd was von einem pfad "$GLUT_HOME" - die umgebnungsvariable habe ich nicht - toll...
bin dann erstmal ein verzeichnis zurückgegegangen und habe "./mkmkfiles.imake" ausgeführt, wie es in punkt 2 der readme steht
dann habe ich mit punkt 4 weitergemecht: "make"
und jetzt kommts: die compilierung bricht ab mit folgender fehlermeldung:
Code:
gcc -m32 -o test21 -O2 -pipe -march=i386 -mcpu=i686 -fno-strength-reduce -fno-strict-aliasing -pipe -L/usr/X11R6/lib test21.o ../../lib/glut/libglut.a -lGLU -lGL -lXmu -lXt -lSM -lICE -lXext -lX11 -lXi -lXext -lX11 -lm
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0xd5): In function `glutVideoResizeGet':
: undefined reference to `glXQueryChannelRectSGIX'
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0x1d8): In function `glutVideoResizeGet':
: undefined reference to `glXQueryChannelDeltasSGIX'
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0x28d): In function `glutSetupVideoResizing':
: undefined reference to `glXBindChannelToWindowSGIX'
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0x2f6): In function `glutStopVideoResizing':
: undefined reference to `glXBindChannelToWindowSGIX'
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0x346): In function `glutVideoResize':
: undefined reference to `glXChannelRectSyncSGIX'
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0x381): In function `glutVideoResize':
: undefined reference to `glXChannelRectSGIX'
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0x3c7): In function `glutVideoPan':
: undefined reference to `glXChannelRectSyncSGIX'
../../lib/glut/libglut.a(glut_vidresize.o)(.text+0x402): In function `glutVideoPan':
: undefined reference to `glXChannelRectSGIX'
collect2: ld returned 1 exit status
make[2]: *** [test21] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis »/home/user/pkgs/glut-workaround/glut-3.7/test/glut«
make[1]: *** [all] Fehler 2
make[1]: Verlassen des Verzeichnisses Verzeichnis »/home/user/pkgs/glut-workaround/glut-3.7/test«
make: *** [all] Fehler 2
das ist so ziemlich die gleiche fehlemeldung, die ich auch beim compilieren von den glut-beispiel-proggis hatte...
so ein schrott
hier nochmal die tolle readme:
Code:
Files For Making a Mesa/GLUT System For Linux ELF
Version 0.0.6
Peter F. Martone
updated by Mark Kilgard (for GLUT 3.7)
//************************************************************
There are three files included in this archive:
Glut.cf -- file required by imake-- use this to replace the
stock version that came with GLUT.
Makefile -- Makefile required to build ELF library, belongs in
the $GLUT_HOME/lib/glut/. directory.
path -- the line required for ld.so to find the libraries at
run-time. Add this to your .profile file.
//************************************************************
The steps to make this work are:
1) Change into $GLUT_HOME/. and make a backup copy of the
Glut.cf file. Then, take the copy from this archive and move it
into $GLUT_HOME.
2) Run the script to build all the makefiles:
./mkmkfiles.imake
3) Change into $GLUT_HOME/lib/glut/. and make a backup copy of
the Makefile. Now, take the Makefile out of the archive and
replace the old one.
4) WHILE STILL IN THE $GLUT_HOME/lib/glut/. DIRECTOR, RUN:
make
This should build the shared library 'libglut.so.3.7'.
IF YOU HAVE PROBLEMS WITH HEADER FILE DEPENDENCIES, try
doing:
make depend
make
This should rebuild the Makefile dependencies.
If this does not work, remove all the lines in "Makefile" below
the line saying "DO NOT DELETE" (yes, disregard what the line
says). Then try "make depend; make"
5) Make two symbolic links:
ln -s libglut.so.3.7 libglut.so.3
ln -s libglut.so.3.7 libglut.so
6) Now, back up to $GLUT_HOME/. and:
make
This will make all the example programs.
7) Add the line from archive file 'path' to your .profile, or
better to your systemwide (/etc/profile). Then logout out and
back in again (to refresh your path.)
*hardly confused*
Lesezeichen