<div dir="ltr">Looking at the errors you are getting looks like <div>/pan20/yzzhang/EGL/eglplatform.h<br></div><div>needs  KHR/khrplatform.h</div><div><br></div><div>Maybe your configuration uses different EGL header files than what you expect.</div><div><br></div><div>DAn</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 20, 2017 at 10:22 AM, 张驭洲 <span dir="ltr"><<a href="mailto:yzhzhang@ipe.ac.cn" target="_blank">yzhzhang@ipe.ac.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>Thanks for your reply! But I don't know where the KHR/khrplatform.h is used. When I configure paraview using ccmake, the options about EGL are EGL_INCLUDE_DIR,<br>EGL_LIBRARY, EGL_gldispatch_LIBRARY, EGL_opengl_LIBRARY, VTK_EGL_DEVICE_INDEX and VTK_USE_OFFSCREEN_EGL. In the path that I assigned to the EGL_INCLUDE_DIR, there is khrplatform.h file. What's more, I have built ParaView 5.2.0 with EGL used on another machine. That machine use NVIDIA GT 730 GPU, and in the EGL_INCLUDE_DIR path, there is not a khrplatform.h file, but the paraview can be built successfully and works. The khrplatform.h is required by the current EGL (1.5), but my EGL version is 1.4. Maybe it doesn't need that file?<br><br>Thank you again!<br><br>-Zhang<br><blockquote name="replyContent" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0">-----原始邮件-----<br>
<b>发件人:</b> "Dan Lipsa" <<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>><br>
<b>发送时间:</b> 2017年3月20日 星期一<br>
<b>收件人:</b> "张驭洲" <<a href="mailto:yzhzhang@ipe.ac.cn" target="_blank">yzhzhang@ipe.ac.cn</a>><br>
<b>抄送:</b> paraview <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br>
<b>主题:</b> Re: [Paraview] How to configure ParaView 5.2.0 to use off screen rendering?<div><div class="h5"><br><br><div dir="ltr">It seems you are missing KHR/khrplatform.h<div>You can download it from the EGL website:</div><div><a href="https://www.khronos.org/registry/EGL/" target="_blank">https://www.khronos.org/<wbr>registry/EGL/</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 18, 2017 at 3:51 AM, 张驭洲 <span dir="ltr"><<a href="mailto:yzhzhang@ipe.ac.cn" target="_blank">yzhzhang@ipe.ac.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>Hello,<br><br>I'm building ParaView 5.2.0 on a machine that uses NVIDIA Tesla K80 GPUs. The K80 GPUs have no interface for monitor, so I have to use off screen rendering. It's said that EGL is a pretty good choice for this situation, but as I switch VTK_USE_OFFSCREEN and VTK_USE_OFFSCREEN_EGL to "ON" and then make,  I get these errors:<br><br>Built target vtkIOImage<br>[ 16%] Building C object VTK/ThirdParty/glew/vtkglew/CM<wbr>akeFiles/vtkglew.dir/src/glew.<wbr>c.o<br>In file included from /pan20/yzzhang/EGL/egl.h:39,<br>                 from /pan20/yzzhang/ParaView-v5.2.0<wbr>/VTK/ThirdParty/glew/vtkglew/s<wbr>rc/glew.c:38:<br>/pan20/yzzhang/EGL/eglplatform<wbr>.h:37:29: error: KHR/khrplatform.h: No such file or directory<br>In file included from /pan20/yzzhang/EGL/egl.h:39,<br>                 from /pan20/yzzhang/ParaView-v5.2.0<wbr>/VTK/ThirdParty/glew/vtkglew/s<wbr>rc/glew.c:38:<br>/pan20/yzzhang/EGL/eglplatform<wbr>.h:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLint’<br>In file included from /pan20/yzzhang/ParaView-v5.2.0<wbr>/VTK/ThirdParty/glew/vtkglew/s<wbr>rc/glew.c:38:<br>/pan20/yzzhang/EGL/egl.h:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLBoolean’<br>In file included from /pan20/yzzhang/ParaView-v5.2.0<wbr>/VTK/ThirdParty/glew/vtkglew/s<wbr>rc/glew.c:38:<br>/pan20/yzzhang/EGL/egl.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLBoolean’<br>/pan20/yzzhang/EGL/egl.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLContext’<br>/pan20/yzzhang/EGL/egl.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLSurface’<br>/pan20/yzzhang/EGL/egl.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLSurface’<br>......<br><br>Maybe it is clear that there is something wrong with the EGL header file, but I don't know how to fix it. The operation system is CentOS 6.6. There is an integrated graphics and 6 K80 GPUs. I connect to the machine using ssh and have set headless X server using one of the K80 GPUs. I can run the glxgears test in the off screen mode, but I don'n know how to make sure that EGL is correctly setted. I want to know how to use EGL for off screen rendering.<br><br>Any help would be highly appreciated!<br><br>-Zhang<br><span></span><br><br><br><br>______________________________<wbr>_________________<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/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote><br><span></span><br><br><br></blockquote></div><br></div>