<div dir="ltr"><div><div><div>Hi Jacky,<br><br></div>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.<br><br></div>HTH,<br></div>Shawn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 18, 2015 at 11:12 PM, Jacky Ko <span dir="ltr"><<a href="mailto:jackkykokoko@gmail.com" target="_blank">jackkykokoko@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>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</div><div><br></div><div>MSVC error message:</div><div>fatal error LNK1104: cannot open file 'python27.lib'<br></div><div><br></div><div>cmake setting:</div><div>VTK_WRAP_PYTHON: enabled</div><div>BUILD_PYTHON_WRAPPERS: enabled</div><div>Module_vtkWrappingPythonCore: enabled</div><div>PYTHON_EXECUTABLE: C:/Anaconda/python.exe</div><div>PYTHON_INCLUDE_DIR: C:/Anaconda/include</div><div>PYTHON_LIBRARY: C:/Anaconda/libs/libpython27.a</div><div>VTK_INSTALL_PYTHON_MODULE_DIR: C:/Anaconda/Lib/site-packages</div><div><br></div><div>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.</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>