[Paraview] How to configure ParaView 5.2.0 to use off screen rendering?
张驭洲
yzhzhang at ipe.ac.cn
Mon Mar 20 22:33:16 EDT 2017
Hello,
Thanks a lot for you two! I've found my mistakes based on your tips. It is true that I missed the khrplatform.h file. I put it in the same directory of other EGL header files with the name of "EGL", so it can not be found by the program. Creating a KHR dir and putting khrplatform.h into it solved my problem. Now my paraview can work with EGL. Thank you very much!
Sincerely
-Zhang
-----原始邮件-----
发件人: "Alessandro De Maio" <demaio.a at gmail.com>
发送时间: 2017年3月21日 星期二
收件人: "Dan Lipsa" <dan.lipsa at kitware.com>
抄送: "张驭洲" <yzhzhang at ipe.ac.cn>, paraview <paraview at paraview.org>
主题: Re: [Paraview] How to configure ParaView 5.2.0 to use off screen rendering?
Hi,
I've just compiled the Paraview-5.3.0 superbuild with EGL. I created an EGL dir in /usr/include with egl.h, eglext.h and eglplatform.h (taken from www.khronos.org/registry/egl/) and I created a KHR dir in /usr/include with khrplatform.h (taken from the same site).
ccmake already recognized the /usr/include/EGL include path for EGL and everything was ok.
Alessandro
On Mon, Mar 20, 2017 at 3:28 PM, Dan Lipsa <dan.lipsa at kitware.com> wrote:
Looking at the errors you are getting looks like
/pan20/yzzhang/EGL/eglplatform.h
needs KHR/khrplatform.h
Maybe your configuration uses different EGL header files than what you expect.
DAn
On Mon, Mar 20, 2017 at 10:22 AM, 张驭洲 <yzhzhang at ipe.ac.cn> wrote:
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,
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?
Thank you again!
-Zhang
-----原始邮件-----
发件人: "Dan Lipsa" <dan.lipsa at kitware.com>
发送时间: 2017年3月20日 星期一
收件人: "张驭洲" <yzhzhang at ipe.ac.cn>
抄送: paraview <paraview at paraview.org>
主题: Re: [Paraview] How to configure ParaView 5.2.0 to use off screen rendering?
It seems you are missing KHR/khrplatform.h
You can download it from the EGL website:
https://www.khronos.org/registry/EGL/
On Sat, Mar 18, 2017 at 3:51 AM, 张驭洲 <yzhzhang at ipe.ac.cn> wrote:
Hello,
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:
Built target vtkIOImage
[ 16%] Building C object VTK/ThirdParty/glew/vtkglew/CMakeFiles/vtkglew.dir/src/glew.c.o
In file included from /pan20/yzzhang/EGL/egl.h:39,
from /pan20/yzzhang/ParaView-v5.2.0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
/pan20/yzzhang/EGL/eglplatform.h:37:29: error: KHR/khrplatform.h: No such file or directory
In file included from /pan20/yzzhang/EGL/egl.h:39,
from /pan20/yzzhang/ParaView-v5.2.0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
/pan20/yzzhang/EGL/eglplatform.h:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLint’
In file included from /pan20/yzzhang/ParaView-v5.2.0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
/pan20/yzzhang/EGL/egl.h:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLBoolean’
In file included from /pan20/yzzhang/ParaView-v5.2.0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
/pan20/yzzhang/EGL/egl.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLBoolean’
/pan20/yzzhang/EGL/egl.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLContext’
/pan20/yzzhang/EGL/egl.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLSurface’
/pan20/yzzhang/EGL/egl.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘EGLSurface’
......
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.
Any help would be highly appreciated!
-Zhang
_______________________________________________
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 ParaView Wiki at: http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
_______________________________________________
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 ParaView Wiki at: http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170321/d4586edc/attachment.html>
More information about the ParaView
mailing list