A fix for Fiesty 32-bit. Works for me. ymmv.

Obtain and build Togl, eg:
 $ cd
 $ wget 
http://downloads.sourceforge.net/togl/Togl-1.7.tar.gz?modtime=1136507319&big_mirror=0
 $ tar -zxf Togl-1.7.tar.gz
 $ cd Togl-1.7
 $ ./configure -with-tclconfig=/usr/lib/tcl8.4/tclConfig.sh 
--with-tkconfig=/usr/lib/tk8.4/tkConfig.sh

... you need a variety of "dev" packages for this to work (eg tcl/tk/gl
etc).  Goes without saying that the people reading this already
installed stdio.h and forgot about having to do it? Guess that's one for
another forum.

Then just replace:
 /usr/lib/python2.5/site-packages/OpenGL/Tk/linux2-tk8.4/Togl.so

with:
 ~/Togl-1.7/libTogl1.7.so

via:
 $ sudo cp ~/Togl-1.7/libTogl1.7.so 
/usr/lib/python2.5/site-packages/OpenGL/Tk/linux2-tk8.4/Togl.so

... and test it:
 $ python 
 Python 2.5.1 (r251:54863, May  2 2007, 16:56:35)
 [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import OpenGL.Tk
 >>> print "Yay, no seg fault!!!"

-- 
Feisty, Python2.5, x86_64,  help("modules") => Segfault
https://bugs.launchpad.net/bugs/80656
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to