<div dir="ltr"><div><div><div><div>Hi Sebastien,<br><br></div>Sorry, please ignore the previous error. I finally found the correct combination in cmake and successfully build ParaViewWeb without error. <br><br></div>However, when I launch ParaViewWeb with the following command:<br><br>pvpython.exe ..\lib\paraview-4.3\site-packages\paraview\web\pv_web_visualizer.py --content ..\share\www --port 8088 --data-dir \data<br><br>The following error occur. <br><br>Traceback (most recent call last):<br>  File "..\lib\paraview-4.3\site-packages\paraview\web\pv_web_visualizer.py", line 78, in <module><br>    from vtk.web import server<br>  File "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\<br>vtk\web\server.py", line 27, in <module><br>    from twisted.internet.endpoints import serverFromString<br>  File "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\<br>twisted\internet\endpoints.py", line 44, in <module><br>    from twisted.internet import stdio<br>  File "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\<br>twisted\internet\stdio.py", line 28, in <module><br>    from twisted.internet import _win32stdio<br>  File "D:\ParaView-4.3.1-Windows-64bit\ParaView-4.3.1-Windows-64bit\lib\paraview-4.3\site-packages\<br>twisted\internet\_win32stdio.py", line 7, in <module><br>    import win32api<br>ImportError: No module named win32api<br><br></div>Can I know how to point it to win32api I installed ? The file for win32api.pyd is in <br>C:\Python27\Lib\site-packages\win32<br><br></div>Thanks for your help.<br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 5:59 PM, Yu Yu <span dir="ltr"><<a href="mailto:jtxqhao@gmail.com" target="_blank">jtxqhao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div><div>Thanks for the info. I make the change (comment out that line)
 and rebuild. This time i can see WebApplication, vtkWebApps, 
vtkWebCore... and etc in the Solution Explorer in VS 2013. And when I 
build all solutions, everything compile properly except 2 errors:<br><br>Error   
 7064    error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: static class vtkAVIWriter * __cdecl 
vtkAVIWriter::New(void)" (__imp_?New@vtkAVIWriter@@SAPEAV1@XZ) referenced in function "protected: bool __cdecl vtkSMAnimationSceneImageWriter::CreateWriter(void)" (?CreateWriter@vtkSMAnimationSceneImageWriter@@IEAA_NXZ)    D:\Files\ParaView431\build11\ParaViewCore\Animation\vtkSMAnimationSceneImageWriter.obj    vtkPVAnimation<br>Error    7065    error LNK1120: 1 unresolved externals    D:\Files\ParaView431\build11\bin\Release\vtkPVAnimation-pv4.3.dll    vtkPVAnimation<br><br></div>Do
 I need vtkPVAnimation ? I only interested in ParaViewWeb, how can I 
turn that off from cmake (if ParaViewWeb do not require vtkPVAnimation).
 <br><br></div>Thanks for your help.</div></span><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, May 18, 2015 at 10:28 PM, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Replace the following CMake lines<div><br></div><div><span><div># ParaViewWeb on Windows needs win32api which is not provided by default</div><div># For now the default behavior would be to disable it on Windows build</div></span><div>if (WIN32)</div><div>  set(PARAVIEW_ENABLE_WEB OFF CACHE BOOL "" FORCE)</div><div>else()</div><div>  cmake_dependent_option(PARAVIEW_ENABLE_WEB "Enable/Disable web support" ON</div><div>    "PARAVIEW_ENABLE_PYTHON" OFF)</div><div>endif()</div></div><div><br></div><div>with the following =====</div><div><br></div><div><span><div># ParaViewWeb on Windows needs win32api which is not provided by default</div><div># For now the default behavior would be to disable it on Windows build</div></span><div>if (WIN32)</div><div>  # set(PARAVIEW_ENABLE_WEB OFF CACHE BOOL "" FORCE)</div><div>else()</div><div>  cmake_dependent_option(PARAVIEW_ENABLE_WEB "Enable/Disable web support" ON</div><div>    "PARAVIEW_ENABLE_PYTHON" OFF)</div><div>endif()</div></div><div><br></div><div>Then you should be good to go.</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, May 18, 2015 at 3:09 AM, Yu Yu <span dir="ltr"><<a href="mailto:jtxqhao@gmail.com" target="_blank">jtxqhao@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I want to build ParaViewWeb on windows (64-but), I have install win32api for python in my machine. I am using cmake-gui, and every time I click ParaView_Enable_Python" to ON, and ParaView_Enable_Web to ON, cmake will turn ParaView_Enable_Web to off. Is there a way to make it on ?<br><br></div>I found this in the cmake text:<br># ParaViewWeb on Windows needs win32api which is not provided by default<br># For now the default behavior would be to disable it on Windows build<br><br></div>Can I know how to enable ParaViewWeb for windows build ?<br><br></div>Thanks for your help.<br></div></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>