Re: [PyOpenGL-Users] Getting (got) PyOpenGL working under Fedora (core 3)
Brought to you by:
mcfletch
From: JoN <jo...@we...> - 2006-03-26 02:53:47
|
That is good news! Unfortunately I can't upgrade across the workplace yet, hence the pain an= d suffering. But soon, soon.... Cheers Jon Quoting Black <py...@bl...>: > Getting PyOpenGL working under Fedora (Core 4) > - a tale with quite a bit less blood tears and not an ounce of betrayal >=20 > I grabbed a likely looking rpm and installed it... Everything just =20 > worked - even with freeglut >=20 >=20 >=20 >=20 > On Mar 24, 2006, at 12:34 AM, JoN wrote: >=20 > > > > > > Getting PyOpenGL working under Fedora (Core 3) > > > > - a tale of blood, tears and betrayal. > > > > > > Step 1. > > > > Make sure Mesa is installed - generally it has to be anyway because =20 > > about 50 > > programs rely on it. > > > > # rpm -qa | grep -i mesa > > xorg-x11-Mesa-libGL-6.8.2-1.FC3.45.2 > > xorg-x11-Mesa-libGLU-6.8.2-1.FC3.45.2 > > > > > > Step 2. > > > > UNinstall freeglut and freeglut-devel - PyOpenGL is NOT compatible =20 > > with freeglut!! > > (Actually it might be in FC4 or FC5, who the **** knows). > > > > > > Step 3. > > > > Get hold of the following, EXACTLY the following: > > > > > > PyOpenGL-2.0.2.01.tar.gz (NOT the rpm!) > > > > From the sourceforge (spits on floor) PyOpenGL site > > > > > > swigwin-1.3.23.zip (ditto) > > > > From: http://www.swig.org/ > > > > > > glut-3.7.tar.gz (YES, the old original GLUT, not freeglut) > > > > From: http://www.opengl.org/resources/libraries/glut/glut-3.7.tar.gz > > > > > > > > Step 4. Put it all together! > > > > > > 4.1 Compile and install SWIG > > > > Dont forget make and make install. > > > > > > 4.2 Compile and install GLUT > > > > This is a complete *****g bitch, but i have a feeling that all you =20 > > actually > > need are the .h files. > > > > Go into the linux directory and read the README _carefully_, its =20 > > actually fairly > > simple once you get what he's on about. > > > > I think the make install is implicit, do one anyway just to make sure= . > > > > > > 4.3 Make sure the GLUT .h files are in the right place. > > > > I haven't tested fully to see what the right place is, but take a =20 > > look at these > > ls's and you get the idea: > > > > # ls /usr/include/GL/ > > fgl.h fglut.h gl.h glu.h GLwDrawA.h GLwMDrawA.h =20 > > glxext.h glxint.h > > glxproto.h osmesa.h > > fglu.h glext.h glsmap.h glut.h GLwDrawAP.h GLwMDrawAP.h =20 > > glx.h glxmd.h > > glxtokens.h tube.h > > > > # ls /usr/local/include/GL/ > > fgl.h fglu.h fglut.h glsmap.h glut.h tube.h > > > > Make sure that the freeglut .h files are GONE !! > > > > > > 4.4 As usual, some symlinks: > > > > cd /usr/lib/ > > ln -s /usr/local/lib/libglut.a . > > ln -s /usr/local/lib/libglut.so.3.8.0 libglut.so.3 > > ln -s /usr/local/lib/libglut.so.3.8.0 libglut.so > > ln -s /usr/local/lib/libglut.la > > > > Note that those links are to the 3.8 files ? > > So why bother getting the 3.7 files ? > > I DONT KNOW. I DONT CARE. THIS WORKS. > > Btw the glut files (the 3.8 ones) come with Mesa. > > But nothing will work until you put the .h files and the symlinks in. > > > > > > > > 4.5 UNTAR AND COMPILE PyOpenGL !!! > > > > Untar it. > > > > cd into it. > > > > Run the following command: > > > > python ./setup.py build_ext install > > > > It will now build and install. > > It takes a while and does a lot. > > > > > > Step 5. Try pygears to see if its worked! > > > > cd /usr/lib/python2.3/site-packages/OpenGL/Demo/GLUT/ > > > > ./pygears.py > > > > 3D colourful spinning gears Should[tm] appear in a window and start =20 > > benchmarking > > your graphics pipeline. > > > > > > Step 6. Collapse, but already begin thinking about ways around all =20 > > this.... > > > > Step 7. Scream "STOP TELLING ME TO *****ING INSTALL DEBIAN!!!!!" =20 > > at debian friend. > > > > > > :) > > > > Jon > > > > > > -------------------------------------------------------------------- > > Come and visit Web Prophets Website at http://www.webprophets.net.au > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking scripting =20 > > language > > that extends applications into web and mobile media. Attend the =20 > > live webcast > > and join the prime developer group breaking into this new coding =20 > > territory! > > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$1720&dat=121= 642 > > _______________________________________________ > > PyOpenGL Homepage > > http://pyopengl.sourceforge.net > > _______________________________________________ > > PyOpenGL-Users mailing list > > PyO...@li... > > https://lists.sourceforge.net/lists/listinfo/pyopengl-users >=20 >=20 -------------------------------------------------------------------- Come and visit Web Prophets Website at http://www.webprophets.net.au |