<div dir="ltr"><div dir="ltr">Paulo would you mind submitting a merge request? That makes it straightforward to run our regression tests on the change, which is a requirement before it goes into master. <div><br></div><div>Instructions on how to do so are here:</div><div><a href="https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md">https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md</a></div><div><br></div><div>thanks!<br><div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>David E DeMarle<br>Kitware, Inc.<br>Principal Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div></div></div></div></div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 10, 2018 at 4:50 AM Paulo Carvalho <<a href="mailto:paulo.r.m.carvalho@gmail.com">paulo.r.m.carvalho@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Greetings, all,<br><br></div> Since I got no answer, I had to do come up with a workaround. I had to patch the <source root>/Rendering/OpenGL2/vtkWin32RenderWindowInteractor.cxx file (around line 70). The structures TOUCHINPUT and HTOUCHINPUT are incorrectly redefined there (they're defined in winuser.h). Since this is an error in VTK sources, maybe the developers could patch it.<br></div><div> Compiling VTK 8.1.2 in Windows 7 64 with MinGW 64.<br><br></div><div>regards,<br><br></div><div>Paulo<br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Em sex, 9 de nov de 2018 às 16:12, Paulo Carvalho <<a href="mailto:paulo.r.m.carvalho@gmail.com" target="_blank">paulo.r.m.carvalho@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Greetings all. I'm trying to build VTK and I'm getting the following error:<br>
<br>
[ 62%] Building CXX object<br>
Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/vtkWin32RenderWindowInteractor.cxx.obj<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:72:3:<br>
error: conflicting declaration 'typedef struct _TOUCHINPUT TOUCHINPUT'<br>
} TOUCHINPUT, *PTOUCHINPUT;<br>
^~~~~~~~~~<br>
In file included from<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:72,<br>
from<br>
C:/Users/ur5m/Desktop/VTK64/VTK-8.1.2/Common/Core/vtkWindows.h:58,<br>
from<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.h:31,<br>
from<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:26:<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:2694:5:<br>
note: previous declaration as 'typedef struct tagTOUCHINPUT TOUCHINPUT'<br>
} TOUCHINPUT,*PTOUCHINPUT;<br>
^~~~~~~~~~<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:72:16:<br>
error: conflicting declaration 'typedef struct _TOUCHINPUT* PTOUCHINPUT'<br>
} TOUCHINPUT, *PTOUCHINPUT;<br>
^~~~~~~~~~~<br>
In file included from<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:72,<br>
from<br>
C:/Users/ur5m/Desktop/VTK64/VTK-8.1.2/Common/Core/vtkWindows.h:58,<br>
from<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.h:31,<br>
from<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:26:<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:2694:17:<br>
note: previous declaration as 'typedef struct tagTOUCHINPUT* PTOUCHINPUT'<br>
} TOUCHINPUT,*PTOUCHINPUT;<br>
^~~~~~~~~~~<br>
In file included from<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,<br>
from<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/windef.h:8,<br>
from<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/windows.h:69,<br>
from<br>
C:/Users/ur5m/Desktop/VTK64/VTK-8.1.2/Common/Core/vtkWindows.h:58,<br>
from<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32OpenGLRenderWindow.h:31,<br>
from<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:26:<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:73:16:<br>
error: redefinition of 'struct HTOUCHINPUT__'<br>
DECLARE_HANDLE(HTOUCHINPUT);<br>
^~~~~~~~~~~<br>
C:/Users/ur5m/Desktop/msys64/mingw64/x86_64-w64-mingw32/include/winuser.h:2681:3:<br>
note: previous definition of 'struct HTOUCHINPUT__'<br>
DECLARE_HANDLE (HTOUCHINPUT);<br>
^~~~~~~~~~~~~~<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:<br>
In member function 'virtual int<br>
vtkWin32RenderWindowInteractor::OnTouch(HWND, UINT, UINT)':<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:764:27:<br>
warning: cast to pointer from integer of different size<br>
[-Wint-to-pointer-cast]<br>
if (GTII((HTOUCHINPUT)lParam, cInputs, pInputs, sizeof(TOUCHINPUT)))<br>
^~~~~~<br>
C:\Users\ur5m\Desktop\VTK64\VTK-8.1.2\Rendering\OpenGL2\vtkWin32RenderWindowInteractor.cxx:819:23:<br>
warning: cast to pointer from integer of different size<br>
[-Wint-to-pointer-cast]<br>
CTIH((HTOUCHINPUT)lParam);<br>
^~~~~~<br>
mingw32-make[2]: ***<br>
[Rendering\OpenGL2\CMakeFiles\vtkRenderingOpenGL2.dir\build.make:1733:<br>
Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/vtkWin32RenderWindowInteractor.cxx.obj]<br>
Error 1<br>
mingw32-make[1]: *** [CMakeFiles\Makefile2:2510:<br>
Rendering/OpenGL2/CMakeFiles/vtkRenderingOpenGL2.dir/all] Error 2<br>
mingw32-make: *** [Makefile:129: all] Error 2<br>
<br>
Any help will be much appreciated. Thanks.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><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="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>
_______________________________________________<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="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>