[vtkusers] Build link error in VTK 7.0.0 with Python wrap
David Gobbi
david.gobbi at gmail.com
Fri Sep 2 10:40:01 EDT 2016
Could it be a 32-bit VTK build against a 64-bit Python or vice-versa? What
Python package are you using?
On Fri, Sep 2, 2016 at 8:21 AM, marco giordano <marco.giord at gmail.com>
wrote:
> 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/f9dd7b73/attachment.html>
More information about the vtkusers
mailing list