[vtkusers] VTK python wrapping build

Shawn Waldon shawn.waldon at kitware.com
Thu Nov 19 09:44:24 EST 2015


Hi Jacky,

I'm pretty sure that on Windows PYTHON_LIBRARY should point to a file with
a .lib extension.  Other than that I don't see anything obviously wrong
with your settings.

HTH,
Shawn

On Wed, Nov 18, 2015 at 11:12 PM, Jacky Ko <jackkykokoko at gmail.com> wrote:

> Hello,
>
> I am trying  to build  VTK 6.3.0  under  Windows  environment,  but  some
>  library linkage  error  occurs  during the compile.  Both  MSVC  2015 and
>  Mingw gcc  4.7  with  GNU make  3.81  are  used,  same  error  occur  for
>  python27.lib
>
> MSVC  error  message:
> fatal error LNK1104: cannot open file 'python27.lib'
>
> cmake  setting:
> VTK_WRAP_PYTHON:  enabled
> BUILD_PYTHON_WRAPPERS: enabled
> Module_vtkWrappingPythonCore: enabled
> PYTHON_EXECUTABLE:  C:/Anaconda/python.exe
> PYTHON_INCLUDE_DIR:  C:/Anaconda/include
> PYTHON_LIBRARY: C:/Anaconda/libs/libpython27.a
> VTK_INSTALL_PYTHON_MODULE_DIR: C:/Anaconda/Lib/site-packages
>
> I  am  quite  sure that  the  interpreter  of Anaconda is  the  same as
> pure Python  2.7 one,  as I  meet same  error  for the two  different
>  distributions.
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151119/e7f0f6b4/attachment.html>


More information about the vtkusers mailing list