From: Matthias B. <ba...@ir...> - 2004-07-29 20:29:28
|
brett hartshorn wrote: > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: /usr/lib/python2.2/site-packages/ode.so: undefined symbol: dGeomTriMeshGetTriangle > > I guess that i should disable the OPCODE and Trimesh stuff? Exactly. I've just checked in a modification that allows you to disable trimesh support in the setup script. If you set the variable TRIMESH_SUPPORT to False you only get dummy trimesh classes and no trimesh C function should be called within the module. Here's what I did: I've moved the trimesh geom class out of geoms.pyx into its own file trimesh.pyx. The setup script creates an intermediate file _trimesh_switch.pyx that either includes the files trimesh.pyx and trimeshdata.pyx or the file trimesh_dummy.pyx. This intermediate file is included in ode.pyx. The file trimesh_dummy.pyx also defines the TriMeshData and GeomTriMesh classes but they will raise NotImplementedError exceptions in their constructors. - Matthias - |