# Paraview 5.6.0 pvserver EGL build advice

**URL:** https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332
**Category:** ParaView Support
**Created:** [February 21, 2019, 4:50pm UTC](https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332 "2019-02-21T16:50:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![scotterdavid](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@scotterdavid](https://discourse.paraview.org/u/scotterdavid)
#### Post date: [February 21, 2019, 4:50pm UTC](https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332/1 "2019-02-21T16:50:18Z")

</div>

Hello,

I’m attempting to build the pvserver with EGL support that could be used with our Nvidia GPU cards. I’ve been working on the build for a while, but it always fails as shown below. The details of the build are in the attached cmake file. I downloaded the superbuild distribution in the hope that this process would be less painful, however it seems not.

Does anyone have any advice please? Any help would really be appreciated.

Best regards,  
David

[EL7-EGL.cmake](https://discourse.paraview.org/uploads/default/original/2X/8/8027348095af36c112fc532015e8b261c9137c83.cmake) (2.1 KB)

[52%] Built target vtkInteractionWidgets  
gmake[3]: \*\*\* [all] Error 2  
CMake Error at /local/software/paraview/5.6.0-test/build-vis-mesa/superbuild/sb-paraview-build.cmake:47 (message):  
Failed with exit code 2

make[2]: \*\*\* [superbuild/paraview/stamp/paraview-build] Error 1  
make[1]: \*\*\* [superbuild/CMakeFiles/paraview.dir/all] Error 2  
make: \*\*\* [all] Error 2

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [February 22, 2019, 2:01am UTC](https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332/2 "2019-02-22T02:01:19Z")

</div>

Maybe [this](https://github.com/Kitware/paraviewweb/blob/master/tools/docker/paraview/Dockerfile) could provide some guidance on how we do it within our docker image.

---

<div class="post-metadata">

### Author: ![lhofmann](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/9e8a1a/32.png) [@lhofmann](https://discourse.paraview.org/u/lhofmann)
#### Post date: [February 22, 2019, 8:10am UTC](https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332/3 "2019-02-22T08:10:55Z")

</div>

I have recently managed to do superbuild with EGL support using CentOS 7.  
Some of the problems I initially had were resolved by using an appropriate combination of gcc and cmake versions.

Here is the Dockerfile with dependencies (probably not a minimal set): [https://github.com/lhofmann/paraview-superbuild-docker/blob/master/Dockerfile.egl](https://github.com/lhofmann/paraview-superbuild-docker/blob/master/Dockerfile.egl)  
And here is the build script: [https://github.com/lhofmann/paraview-superbuild-docker/blob/master/scripts/build\_paraview.egl.sh](https://github.com/lhofmann/paraview-superbuild-docker/blob/master/scripts/build_paraview.egl.sh)

There are also binaries of the 5.6.0 EGL superbuild in the repository (in Releases).

---

<div class="post-metadata">

### Author: ![scotterdavid](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@scotterdavid](https://discourse.paraview.org/u/scotterdavid)
#### Post date: [February 25, 2019, 4:38pm UTC](https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332/4 "2019-02-25T16:38:56Z")

</div>

Hello,

Thank you for you replies. Your comments were very useful in helping me to get the EGL build sorted out. I have a working build now and it appears to be OK despite my reservations.

I did assume that my EGL\_LIBRARY ought to be the one provided by the Nvidia driver (v410\*) – that is /usr/lib64/libEGL\_nvidia.so.0. I find, however, that it was this library that was causing the build failure due to unresolved dependencies. If I switched to use libEGL.so as provided by one of the Mesa rpms then everything builds and seems to work as expected. I note that another user has posted to the forum re this issue, however there is no advice on how to work around this.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 4, 2019, 10:42am UTC](https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332/5 "2019-03-04T10:42:52Z")

</div>

afaik, mesa EGL is only limited to OpenGL ES, which is not enough for our EGL build.

---

<div class="post-metadata">

### Author: ![danlipsa](https://discourse.paraview.org/user_avatar/discourse.paraview.org/danlipsa/32/1563_2.png) [@danlipsa](https://discourse.paraview.org/u/danlipsa)
#### Post date: [March 4, 2019, 1:37pm UTC](https://discourse.paraview.org/t/paraview-5-6-0-pvserver-egl-build-advice/1332/6 "2019-03-04T13:37:39Z")

</div>

This is our EGL test machine.

[https://open.cdash.org/buildSummary.php?buildid=5782777](https://open.cdash.org/buildSummary.php?buildid=5782777)

You can take a look at the libraries (and parameters) used there.
