... 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
... 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!!!"
A fix for Fiesty 32-bit. Works for me. ymmv.
Obtain and build Togl, eg: downloads. sourceforge. net/togl/ Togl-1. 7.tar.gz? modtime= 1136507319& big_mirror= 0 =/usr/lib/ tcl8.4/ tclConfig. sh --with- tkconfig= /usr/lib/ tk8.4/tkConfig. sh
$ cd
$ wget http://
$ tar -zxf Togl-1.7.tar.gz
$ cd Togl-1.7
$ ./configure -with-tclconfig
... 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: python2. 5/site- packages/ OpenGL/ Tk/linux2- tk8.4/Togl. so
/usr/lib/
with: 1.7/libTogl1. 7.so
~/Togl-
via: 1.7/libTogl1. 7.so /usr/lib/ python2. 5/site- packages/ OpenGL/ Tk/linux2- tk8.4/Togl. so
$ sudo cp ~/Togl-
... 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!!!"