# Building Paraview's superbuild

**URL:** https://discourse.paraview.org/t/building-paraviews-superbuild/3344
**Category:** ParaView Support
**Created:** [January 15, 2020, 3:58pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344 "2020-01-15T15:58:54Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Din\_Djarin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Din\_Djarin](https://discourse.paraview.org/u/Din_Djarin)
#### Post date: [January 15, 2020, 3:58pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/1 "2020-01-15T15:58:54Z")

</div>

Hi all, I am quite new to the Linux environment and I want to build Paraview on my machine. Is there a set of coherent step by step instructions that I can follow to build Paraview and all its dependencies on my machine with as little headache as possible? Thanks in advance.

---

<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: [January 15, 2020, 4:13pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/2 "2020-01-15T16:13:30Z")

</div>

Yes there is. With Linux, the superbuild is not the simplest way to build ParaView. See here :

> <https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md>

If you only want to use ParaView, you can also download our binaries here :  
[https://www.paraview.org/download/](https://www.paraview.org/download/)

---

<div class="post-metadata">

### Author: ![Din\_Djarin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Din\_Djarin](https://discourse.paraview.org/u/Din_Djarin)
#### Post date: [January 15, 2020, 4:44pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/3 "2020-01-15T16:44:00Z")

</div>

This is what I’m looking for thank you. I am ultimately looking to render my data off-screen and have no interaction with the GUI, will I need any additional information?

---

<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: [January 15, 2020, 4:44pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/4 "2020-01-15T16:44:57Z")

</div>

You do not need to build ParaView for that. Just use pvpython.

Edit: What do you mean exactly by “off-screen” ?

---

<div class="post-metadata">

### Author: ![Din\_Djarin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Din\_Djarin](https://discourse.paraview.org/u/Din_Djarin)
#### Post date: [January 15, 2020, 5:48pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/5 "2020-01-15T17:48:03Z")

</div>

If I have a python script I can just run it in my Linux machine and it will save a screen shot of a 3d render without any interaction with the GUI. I guess headless would be the better term.

---

<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: [January 16, 2020, 8:47am UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/6 "2020-01-16T08:47:42Z")

</div>

Well, headless could mean that you do not have a GPU or that you do not have a X server running.

If you do have a GPU and a X server running, you can just download the release and use pvpython to achieve your goal.

---

<div class="post-metadata">

### Author: ![Din\_Djarin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Din\_Djarin](https://discourse.paraview.org/u/Din_Djarin)
#### Post date: [January 16, 2020, 1:46pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/7 "2020-01-16T13:46:38Z")

</div>

The machine that I will ultimately end up using Paraview on will not have a GPU.

---

<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: [January 16, 2020, 1:49pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/8 "2020-01-16T13:49:06Z")

</div>

Ok ! In this case you will need to build with osmesa. If your linux distribution does **not** provide an osmesa package, I would suggest trying to build the ParaView superbuild.

---

<div class="post-metadata">

### Author: ![Din\_Djarin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Din\_Djarin](https://discourse.paraview.org/u/Din_Djarin)
#### Post date: [January 16, 2020, 2:04pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/9 "2020-01-16T14:04:53Z")

</div>

Thanks @mwestphal, I do not have osmesa is their a set of instructions to follow to install the superbuild outside of what is provided on the [gitlab repo](https://gitlab.kitware.com/paraview/paraview-superbuild/)?

---

<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: [January 16, 2020, 3:16pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/10 "2020-01-16T15:16:13Z")

</div>

The instructions are indeed there.

---

<div class="post-metadata">

### Author: ![Din\_Djarin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Din\_Djarin](https://discourse.paraview.org/u/Din_Djarin)
#### Post date: [January 14, 2021, 1:34pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/11 "2021-01-14T13:34:47Z")

</div>

Hi @mwestphal, I am again picking up this task after transitioning to other elements of my work for a few months. I am still having trouble building the SuperBuild after reading through the [gitlab](https://gitlab.kitware.com/paraview/paraview-superbuild) repository’s readme. I am trying to build this on my debian10 machine to do some experimentation, but I can not seem to get the SuperBuild to work. I need headless support for my work as the machine I will be using does not have a GPU and presumably does not have the osmesa package.

My approach:

- Clone the repo
- cd paraview-superbuild
- git fetch origin
- git checkout v5.9.0-RC3
- mkdir …/build
- cd …/build
- ccmake …/paraview-superbuild

I get stuck at the CMake cache editor, I am not sure which options should be ON/OFF as the [gitlab](https://gitlab.kitware.com/paraview/paraview-superbuild) repository’s readme doesn’t seem to explain it well enough for me. I apologize for my ignorance, but I am not super experienced with build from source.

---

<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: [January 14, 2021, 1:40pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/12 "2021-01-14T13:40:03Z")

</div>

the following configuration should be what you need:

```
ENABLE_osmesa=ON                                                                                                                                                                                                                                                                                     
ENABLE_python3=ON

```

Keep in mind that this will only generate a osmesa capable pvserver.

---

<div class="post-metadata">

### Author: ![Din\_Djarin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/d/eb9ed0/32.png) [@Din\_Djarin](https://discourse.paraview.org/u/Din_Djarin)
#### Post date: [January 14, 2021, 6:01pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/13 "2021-01-14T18:01:15Z")

</div>

This seemed to work however after a few hours of building I got an error near completion. I am presuming that this is an issue with osmesa? I don’t have a clue to why the autogen.sh script would be missing.

```
 -- extracting... [tar xfz]
 -- extracting... [analysis]
 -- extracting... [rename]
 -- extracting... [clean up]
 -- extracting... done
 [88%] No patch step for 'osmesa'
 [90%] No update step for 'osmesa'
 [90%] Revert autoconf dist-xz to dist-bzip2
 [90%] Fix incompatible sed flags in configure
 [92%] Fix llvm7 build failure for swr
 [92%] Performing configure step for 'osmesa'
 ./autogen.sh: 9: ./autogen.sh: autoreconf: not found
 CMake Error at /home/usr/build/superbuild/sb-osmesa-configure.cmake:47 
 (message):
 Failed with exit code 1

 make[2]: *** [superbuild/CMakeFiles/osmesa.dir/build.make:120: 
 superbuild/osmesa/stamp/osmesa-configure] Error 1
 make[1]: *** [CMakeFiles/Makefile2:3689: superbuild/CMakeFiles/osmesa.dir/all] Error 2
 make: *** [Makefile:130: all] Error 2
```

---

<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: [January 15, 2021, 8:08am UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/14 "2021-01-15T08:08:55Z")

</div>

Install automake on your linux.

On ubuntu, it is something like:

`sudo apt-get install automake`

---

<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 1, 2023, 12:57pm UTC](https://discourse.paraview.org/t/building-paraviews-superbuild/3344/15 "2023-03-01T12:57:00Z")

</div>

A post was split to a new topic: [ParaView with mingw64](https://discourse.paraview.org/t/paraview-with-mingw64/11543)
