[vtkusers] vtk/Python build
Neil Killeen
Neil.Killeen at atnf.csiro.au
Tue Apr 8 01:57:29 EDT 2003
G'day again...
I succesfully built the python wrappers under Linux (vtk 4.2, python 2.1).
The mysterious PYTHON_UTIL library automatically (not sure how as the
FindPythonLibs.cmake file does not try to find this library) put
itself down to be
/usr/lib/libutil.a
phoenix-235% ar tv libutil.a
rw-r--r-- 0/0 1936 Sep 18 19:41 2002 login.o
rw-r--r-- 0/0 968 Sep 18 19:41 2002 login_tty.o
rw-r--r-- 0/0 1344 Sep 18 19:41 2002 logout.o
rw-r--r-- 0/0 1144 Sep 18 19:41 2002 logwtmp.o
rw-r--r-- 0/0 1708 Sep 18 19:41 2002 openpty.o
rw-r--r-- 0/0 1032 Sep 18 19:41 2002 forkpty.o
This library was used in the link for 'vtkpython'. I don't know
if it is the right one or if it is even needed.
Under Solaris I didn't do so well. It failed to build the shareable
object libvtkCommonPython.so (the command is appended below) generating
allocation linker errors (see attachment for some sample errors). For
the named symbols (e.g. like PyErr_Format) I could not find where they
might live. I tried a few things but could not get it to build.
I compared the build command with the linux one and it is identical
except that under linux I used -lpthread instead of -lthread (tried
adding that to no avail).
I get the impression that there aren't many Solaris vtk systems
out there (the dashboard has only one with no output presently)
so I am not too hopeful that anybody has vtkpython running
under Solaris :-(
cheers
Neil
#!/bin/csh
gcc-3.1.1 -fPIC -shared -o
/nfs/mid/software/vtk/binary/sun4sol/bin/libvtkCommonPython.so \
vtkCommonPythonInit.o vtkAbstractMapperPython.o vtkAbstractTransformPython.o vtkActor2DPython.o \
vtkActor2DCollectionPython.o vtkAmoebaMinimizerPython.o vtkAssemblyNodePython.o \
vtkAssemblyPathPython.o vtkAssemblyPathsPython.o vtkBitArrayPython.o \
vtkByteSwapPython.o vtkCellPython.o vtkCell3DPython.o vtkCellArrayPython.o vtkCellDataPython.o vtkCellLinksPython.o \
vtkCellTypesPython.o vtkCharArrayPython.o vtkCollectionPython.o vtkCollectionIteratorPython.o vtkContourValuesPython.o \
vtkConvexPointSetPython.o vtkCoordinatePython.o vtkCriticalSectionPython.o vtkCylindricalTransformPython.o \
vtkDataArrayPython.o vtkDataArrayCollectionPython.o vtkDataArrayCollectionIteratorPython.o vtkDataArraySelectionPython.o \
vtkDataObjectPython.o vtkDataObjectCollectionPython.o vtkDataSetPython.o vtkDataSetAttributesPython.o \
vtkDataSetCollectionPython.o vtkDebugLeaksPython.o vtkDirectoryPython.o vtkDoubleArrayPython.o vtkDynamicLoaderPython.o \
vtkEdgeTablePython.o vtkEmptyCellPython.o vtkExplicitCellPython.o vtkExtentTranslatorPython.o vtkFieldDataPython.o vtkFileOutputWindowPython.o vtkFloatArrayPython.o vtkFunctionParserPython.o \
vtkFunctionSetPython.o vtkGeneralTransformPython.o \
vtkGenericCellPython.o vtkHeapPython.o vtkHexahedronPython.o vtkHomogeneousTransformPython.o vtkIdListPython.o \
vtkIdListCollectionPython.o vtkIdTypeArrayPython.o vtkIdentityTransformPython.o \
vtkImageDataPython.o vtkImplicitFunctionPython.o \
vtkImplicitFunctionCollectionPython.o vtkIndentPython.o vtkInitialValueProblemSolverPython.o vtkInstantiatorPython.o \
vtkIntArrayPython.o vtkInterpolatedVelocityFieldPython.o vtkLinePython.o vtkLinearTransformPython.o vtkLocatorPython.o \
vtkLogLookupTablePython.o vtkLongArrayPython.o vtkLookupTablePython.o vtkMapper2DPython.o vtkMathPython.o \
vtkMatrix4x4Python.o vtkMatrixToHomogeneousTransformPython.o vtkMatrixToLinearTransformPython.o \
vtkMultiPartExtentTranslatorPython.o vtkMultiThreaderPython.o vtkMutexLockPython.o vtkNonLinearCellPython.o \
vtkObjectPython.o vtkObjectBasePython.o vtkObjectFactoryPython.o vtkObjectFactoryCollectionPython.o \
vtkOrderedTriangulatorPython.o vtkOutputWindowPython.o vtkOverrideInformationPython.o \
vtkOverrideInformationCollectionPython.o vtkPerspectiveTransformPython.o vtkPixelPython.o vtkPlanePython.o \
vtkPlaneCollectionPython.o vtkPlanesPython.o vtkPointDataPython.o vtkPointLocatorPython.o vtkPointSetPython.o \
vtkPointsPython.o vtkPolyDataPython.o vtkPolyLinePython.o vtkPolyVertexPython.o vtkPolygonPython.o \
vtkPriorityQueuePython.o vtkProcessObjectPython.o vtkPropPython.o vtkPropAssemblyPython.o vtkPropCollectionPython.o \
vtkProperty2DPython.o vtkPyramidPython.o vtkQuadPython.o vtkQuadraticEdgePython.o vtkQuadraticHexahedronPython.o \
vtkQuadraticQuadPython.o vtkQuadraticTetraPython.o vtkQuadraticTrianglePython.o vtkQuadricPython.o \
vtkRectilinearGridPython.o vtkReferenceCountPython.o vtkRungeKutta2Python.o vtkRungeKutta4Python.o \
vtkRungeKutta45Python.o vtkScalarsToColorsPython.o vtkShortArrayPython.o vtkSourcePython.o vtkSphericalTransformPython.o \
vtkStructuredDataPython.o vtkStructuredGridPython.o vtkStructuredPointsPython.o vtkTableExtentTranslatorPython.o \
vtkTensorPython.o vtkTetraPython.o vtkTimeStampPython.o vtkTimerLogPython.o vtkTransformPython.o \
vtkTransformCollectionPython.o vtkTrianglePython.o vtkTriangleStripPython.o vtkUnsignedCharArrayPython.o \
vtkUnsignedIntArrayPython.o vtkUnsignedLongArrayPython.o vtkUnsignedShortArrayPython.o vtkUnstructuredGridPython.o \
vtkVersionPython.o vtkVertexPython.o vtkViewportPython.o vtkVoidArrayPython.o vtkVoxelPython.o vtkWarpTransformPython.o \
vtkWedgePython.o vtkWindowPython.o vtkWindowLevelLookupTablePython.o vtkXMLFileOutputWindowPython.o vtkPythonUtil.o \
-L. -L/nfs/mid/software/vtk/binary/sun4sol/bin -L/usr/local/lib/python2.1/config -lpython2.1 \
-lvtkCommon -lthread -ldl -lm \
-Wl,-R.:/nfs/mid/software/vtk/binary/sun4sol/bin:/usr/local/lib/python2.1/config
-------------- next part --------------
Text relocation remains referenced
against symbol offset in file
<unknown> 0x22ec /usr/local/lib/python2.1/config/libpython2.1.a(listobject.o)
<unknown> 0x22f0 /usr/local/lib/python2.1/config/libpython2.1.a(listobject.o)
<unknown> 0x120c /usr/local/lib/python2.1/config/libpython2.1.a(object.o)
<unknown> 0x3ec0 /usr/local/lib/python2.1/config/libpython2.1.a(stringobject.o)
<unknown> 0x505c /usr/local/lib/python2.1/config/libpython2.1.a(stringobject.o)
<unknown> 0xcd4 /usr/local/lib/python2.1/config/libpython2.1.a(tupleobject.o)
<unknown> 0xed8 /usr/local/lib/python2.1/config/libpython2.1.a(unicodeobject.o)
<unknown> 0x6c10 /usr/local/lib/python2.1/config/libpython2.1.a(ceval.o)
<unknown> 0x394 /usr/local/lib/python2.1/config/libpython2.1.a(future.o)
<unknown> 0x1760 /usr/local/lib/python2.1/config/libpython2.1.a(getargs.o)
<unknown> 0x1a48 /usr/local/lib/python2.1/config/libpython2.1.a(import.o)
<unknown> 0x1898 /usr/local/lib/python2.1/config/libpython2.1.a(marshal.o)
<unknown> 0x1a84 /usr/local/lib/python2.1/config/libpython2.1.a(marshal.o)
<unknown> 0x1a88 /usr/local/lib/python2.1/config/libpython2.1.a(marshal.o)
<unknown> 0xd38 /usr/local/lib/python2.1/config/libpython2.1.a(modsupport.o)
<unknown> 0xd3c /usr/local/lib/python2.1/config/libpython2.1.a(modsupport.o)
<unknown> 0x1fc8 /usr/local/lib/python2.1/config/libpython2.1.a(pythonrun.o)
<unknown> 0x1fcc /usr/local/lib/python2.1/config/libpython2.1.a(pythonrun.o)
<unknown> 0x2b0 /usr/local/lib/python2.1/config/libpython2.1.a(structmember.o)
<unknown> 0x340 /usr/local/lib/python2.1/config/libpython2.1.a(_sre.o)
<unknown> 0x2c3c /usr/local/lib/python2.1/config/libpython2.1.a(_sre.o)
<unknown> 0x710 /usr/local/lib/python2.1/config/libpython2.1.a(tokenizer.o)
<unknown> 0xb40 /usr/local/lib/python2.1/config/libpython2.1.a(tokenizer.o)
<unknown> 0x0 /usr/local/lib/python2.1/config/libpython2.1.a(import.o)
<unknown> 0x10 /usr/local/lib/python2.1/config/libpython2.1.a(dynload_shlib.o)
<unknown> 0x14 /usr/local/lib/python2.1/config/libpython2.1.a(pystate.o)
<unknown> 0x18 /usr/local/lib/python2.1/config/libpython2.1.a(pystate.o)
<unknown> 0x8 /usr/local/lib/python2.1/config/libpython2.1.a(getcompiler.o)
PyExc_TypeError 0x4 /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
PyExc_TypeError 0x8 /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
PyExc_TypeError 0x4b4 /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
PyExc_TypeError 0x4f4 /usr/local/lib/python2.1/config/libpython2.1.a(rangeobject.o)
PyRun_InteractiveOneFlags 0x870 /usr/local/lib/python2.1/config/libpython2.1.a(pythonrun.o)
PyRun_InteractiveOneFlags 0x898 /usr/local/lib/python2.1/config/libpython2.1.a(pythonrun.o)
PyDict_Size 0x1078 /usr/local/lib/python2.1/config/libpython2.1.a(classobject.o)
PyModule_GetFilename 0x470 /usr/local/lib/python2.1/config/libpython2.1.a(moduleobject.o)
memchr 0x1274 /usr/local/lib/python2.1/config/libpython2.1.a(fileobject.o)
memchr 0x1390 /usr/local/lib/python2.1/config/libpython2.1.a(fileobject.o)
PyParser_SimpleParseFile 0xe98 /usr/local/lib/python2.1/config/libpython2.1.a(import.o)
PyParser_SimpleParseFile 0x19b8 /usr/local/lib/python2.1/config/libpython2.1.a(pythonrun.o)
PyParser_SimpleParseFile 0x1a5c /usr/local/lib/python2.1/config/libpython2.1.a(pythonrun.o)
_PyUnicode_ToLowercase 0x3c30 /usr/local/lib/python2.1/config/libpython2.1.a(unicodeobject.o)
PyMember_Get 0x43a8 /usr/local/lib/python2.1/config/libpython2.1.a(classobject.o)
PyMember_Get 0x3e0 /usr/local/lib/python2.1/config/libpython2.1.a(funcobject.o)
PyObject_GetAttrString 0x2c60 /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
PyObject_GetAttrString 0x298c /usr/local/lib/python2.1/config/libpython2.1.a(classobject.o)
PyString_Format 0x105c /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
PyBuffer_Type 0x2c /usr/local/lib/python2.1/config/libpython2.1.a(bufferobject.o)
PyClass_Type 0x2f60 /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
PyMarshal_WriteObjectToFile 0xf64 /usr/local/lib/python2.1/config/libpython2.1.a(import.o)
strrchr 0xb14 /usr/local/lib/python2.1/config/libpython2.1.a(errors.o)
link 0x7c4 /usr/local/lib/python2.1/config/libpython2.1.a(posixmodule.o)
link 0x7d4 /usr/local/lib/python2.1/config/libpython2.1.a(posixmodule.o)
PyExc_IOError 0x2b0 /usr/local/lib/python2.1/config/libpython2.1.a(object.o)
<unknown> 0x2d9c /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
<unknown> 0x2da0 /usr/local/lib/python2.1/config/libpython2.1.a(abstract.o)
_PyErr_BadInternalCall 0xf3c /usr/local/lib/python2.1/config/libpython2.1.a(classobject.o)
_PyErr_BadInternalCall 0x414c /usr/local/lib/python2.1/config/libpython2.1.a(classobject.o)
<unknown> 0xa4 /usr/local/lib/python2.1/config/libpython2.1.a(floatobject.o)
PyTuple_Type 0x884 /usr/local/lib/python2.1/config/libpython2.1.a(tupleobject.o)
PyTuple_Type 0x888 /usr/local/lib/python2.1/config/libpython2.1.a(tupleobject.o)
Py_GetExecPrefix 0xd48 /usr/local/lib/python2.1/config/libpython2.1.a(sysmodule.o)
setreuid 0x18dc /usr/local/lib/python2.1/config/libpython2.1.a(posixmodule.o)
PyLong_AsDouble 0x578 /usr/local/lib/python2.1/config/libpython2.1.a(floatobject.o)
frexp 0x21c /usr/local/lib/python2.1/config/libpython2.1.a(longobject.o)
frexp 0x158c /usr/local/lib/python2.1/config/libpython2.1.a(object.o)
PyExc_KeyError 0x68c /usr/local/lib/python2.1/config/libpython2.1.a(funcobject.o)
PyExc_KeyError 0x694 /usr/local/lib/python2.1/config/libpython2.1.a(funcobject.o)
statvfs 0x2a58 /usr/local/lib/python2.1/config/libpython2.1.a(posixmodule.o)
free 0x4e8 /usr/local/lib/python2.1/config/libpython2.1.a(classobject.o)
free 0x1310 /usr/local/lib/python2.1/config/libpython2.1.a(classobject.o)
More information about the vtkusers
mailing list