[vtkusers] Re: Questions about VTK installation with Python and Tcl/tk
Yanwei Niu
niu at mail.eecis.udel.edu
Thu Jun 26 01:07:42 EDT 2003
Hi, Everyone,
Trying the debug the problem, I tried to look the Makefile
at each subdiretory of VTK,
I fould the Makefile seems has some place messed up. for example:
in Common/Makefile, in the following command, the /usr/local/python/lib
should not apprear without L ahead. Anyone know what is the reason the
ccmake generate such a wrong (maybe I am wrong) file?
I had to modify each Makefile in the subdirectory to delete
/usr/local/python/lib without L before it.
#---------------------------------------------------------
# shared module
#
/m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so:
$(vtkCommonPython_SRC_OBJS) $(vtkCommonPython_DEPEND_LIBS)
echo "Building shared module
/m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so..."
$(RM) /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so
CC -KPIC -G -o
/m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so
$(vtkCommonPython_SRC_OBJS) -L. -L/m/usa/niu/VTK/VTK-4.2.2/bin
-L/usr/local/python/lib /usr/local/python/lib -lvtkCommon -lthread -ldl
-lm -R.:/m/usa/niu/VTK/VTK-4.2.2/bin:/usr/local/python/lib
#---------------------------------------------------------
# shared library
#
/m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so: $(vtkCommonTCL_SRC_OBJS)
$(vtkCommonTCL_DEPEND_LIBS)
echo "Building shared library
/m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so..."
$(RM) /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so
CC -KPIC -G -o /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonTCL.so
$(vtkCommonTCL_SRC_OBJS) -L. -L/m/usa/niu/VTK/VTK-4.2.2/bin
-L/usa/niu/tcl/install/lib /usa/niu/tcl/install/lib -lvtkCommon -lthread
-ldl -lm -R.:/m/usa/niu/VTK/VTK-4.2.2/bin:/usa/niu/tcl/install/lib
# Start of source group "Header Files"
#---------------------------------------------------------
Yours Sincerely
Yanwei Niu
On Wed, 25 Jun 2003, Yanwei Niu wrote:
> HI, Everyone:
> Please help me with the VTk installation:
>
>
> Version: ccmake 1.6, VTK 4.2.2, python 2.3, tcl/tk 8.4
>
> When I try to make in the VTK directory, I have the following msg:
>
>
> In ccmake I used the following setting:
>
>
> BUILD_EXAMPLES OFF
> BUILD_SHARED_LIBS ON
> CMAKE_BACKWARDS_COMPATIBILITY 1.6
> CMAKE_BUILD_TYPE
> CMAKE_INSTALL_PREFIX /usa/niu/cmake
> PYTHON_INCLUDE_PATH /usa/niu/python/Python-2.2.3/Include
> PYTHON_LIBRARY /usa/niu/python
> PYTHON_UTIL_LIBRARY /usa/niu/python
> TCL_INCLUDE_PATH /m/ecsb/solaris/tcl-tk8.0/include
> TCL_LIBRARY /usa/niu/tcl/install/lib
> TK_INCLUDE_PATH /m/ecsb/solaris/tcl-tk8.0/include
> TK_LIBRARY /usa/niu/tcl/tkinstall/lib
> VTK_DATA_ROOT /usa/niu/VTK/VTKData-release-4-2
> VTK_USE_HYBRID ON
> VTK_USE_PARALLEL ON
> VTK_USE_PATENTED ON
> VTK_USE_RENDERING ON
> VTK_WRAP_JAVA OFF
> VTK_WRAP_PYTHON ON
> VTK_WRAP_TCL ON
>
> I used CC as my c++ compiler.
>
> The error msg is as follows, sorry for it is too long.
> It seems it could find the correct python library. I tried different
> ways to the library path in the ccmake (parent dir, child dir and so
> on), neither of them works. Now can anyone tell me how the setup the
> python library and utilities library path, same to the tcl/tk library
> path.
>
>
>
>
> If I change wrap_python to off, then I will encounter same problem with tcl/tk.
>
> What does the error "elf_begin: I/O error: region read: Is
> a directory " mean?
>
> Thanks a lot.
>
>
> -----------------------------------------------------------------------------------------
> ----------------------------------------------------------------------------------------
>
> Building shared module
> /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so...
> ld: elf error: file /usa/niu/python: elf_begin: I/O error: region read: Is
> a directory
> ld: fatal: File processing errors. No output written to
> /m/usa/niu/VTK/VTK-4.2.2/bin/libvtkCommonPython.so
> *** Error code 1
> The following command caused the error:
> CC -KPIC -G -o /m/usa/niu/VTK/VTK-4.2.2/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/m/usa/niu/VTK/VTK-4.2.2/bin -L/usa/niu/python /usa/niu/python
> -lvtkCommon -lthread -ldl -lm
> -R.:/m/usa/niu/VTK/VTK-4.2.2/bin:/usa/niu/python
>
>
>
>
>
>
>
>
> Yours Sincerely
> Yanwei Niu
>
>
>
More information about the vtkusers
mailing list