Game Development Community

Torque 1.5 and PyTorque

by Demolishun · in Torque Game Engine · 07/12/2008 (11:14 pm) · 2 replies

Here is the Linux version of PyTorque.cc:
www.demolishun.net/code

I get a seg fault when running using the simple program in TorqueDemo.py. I can't tell what the problem is as it fails before I can put any printf statements in.

I think it might be a library thing, but have not figured it out yet. Python seems to recognize it as a module however.

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
07/14/2008 (8:07 pm)
I am not sure why it is not working, but I tracked down that I should be compiling with the -fPIC option for gcc for a shared library. However when I do that some assembler stuff fails. So I am not it would solve this issue even if I could get it to compile with the -fPIC option.
#2
07/14/2008 (8:51 pm)
Well, I rewrote the two inline assembly functions with simple C code and recompiled the whole engine with the -fPIC flag and it did not help one bit. The code still seg faults.