[vtkusers] Build link error in VTK 7.0.0 with Python wrap
marco giordano
marco.giord at gmail.com
Fri Sep 2 10:21:45 EDT 2016
Dear users,
I try to build VTK with python wrap on Windows 7. My configuration is MS
Visual Studio 2013,
VTK 7.0.0, CMake 3.2.2, Release mode, Python 3.4 (also tried Python 2.7 but
same story)
I provided the following flags in Cmake:
BUILD_SHARED_LIBS:BOOL=ON
VTK_WRAP_PYTHON:BOOL=ON
PYTHON_EXECUTABLE:FILEPATH=C:/Python34/python.exe
PYTHON_INCLUDE_DIR:PATH=C:/Python34/include
PYTHON_LIBRARY:FILEPATH=C:/Python34/libs/python34.lib
but I get a series of link errors like these:
Error 1 error LNK2001: unresolved external symbol
__imp_PyType_IsSubtype
D:\VTK-7.0.0\bin\Wrapping\PythonCore\PyVTKMutableObject.obj
vtkWrappingPythonCore
Error 2 error LNK2001: unresolved external symbol
__imp_PyType_IsSubtype
D:\VTK-7.0.0\bin\Wrapping\PythonCore\PyVTKObject.obj
vtkWrappingPythonCore
Error 3 error LNK2019: unresolved external symbol
__imp_PyType_IsSubtype referenced in function "bool __cdecl
vtkPythonGetLongLongValue<__int64>(struct _object *,__int64 &)"
(??$vtkPythonGetLongLongValue at _J@@YA_NPEAU_object@@AEA_J at Z)
D:\VTK-7.0.0\bin\Wrapping\PythonCore\vtkPythonArgs.obj
vtkWrappingPythonCore
Probably I am doing some very basic errors but after several tries I can't
figure out what.
Please any help is appreciated.
Regards
--
Marco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160902/72fd40df/attachment.html>
More information about the vtkusers
mailing list