# Build paraview inside Windows Subsystem for Linux(WSL)

**URL:** https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439
**Category:** ParaView Support
**Created:** [February 11, 2021, 8:15am UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439 "2021-02-11T08:15:30Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 11, 2021, 8:15am UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/1 "2021-02-11T08:15:30Z")

</div>

Hi,  
is there anybody tried to build paraview inside WSL?  
I only have windows system, but i have to provide paraview client for other platforms, any suggestion?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [February 11, 2021, 1:37pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/2 "2021-02-11T13:37:55Z")

</div>

The superbuild _shouldn’t_ care, but I don’t know if anyone has actually tested it or not.

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 11, 2021, 3:27pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/3 "2021-02-11T15:27:43Z")

</div>

Thank you Ben, i will have a study about paraview superbuild

---

<div class="post-metadata">

### Author: ![Iose](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@Iose](https://discourse.paraview.org/u/Iose)
#### Post date: [February 18, 2021, 4:37pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/4 "2021-02-18T16:37:10Z")

</div>

Hi, I install paraview directly on Windows 10 operating system. On your WSL, which distribution do you have?

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 20, 2021, 7:50am UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/5 "2021-02-20T07:50:36Z")

</div>

Hi Josef,  
I install ubutun 20.04 and centos 8.1.1911, i tried to build paraview on both system, from paraview build instruction (not super build), it works good.

paraview server “pvserver” can run successfully, but paraview GUI “paraview” dont works with xlauch, and program will crash with error: “qt.qpa.xcb: X server does not support XInput 2…”

I haven’t have time tried paraview super build, hope it can builld paraview that can run all Linux platforms, like all ubutun and centos

Thanks and Best Regards,  
Sharon

---

<div class="post-metadata">

### Author: ![Iose](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@Iose](https://discourse.paraview.org/u/Iose)
#### Post date: [February 20, 2021, 12:06pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/6 "2021-02-20T12:06:46Z")

</div>

Hi Sharon,  
so I have also ubuntu 20.04 and if I write command directly into command line, paraview launch…  
Do you have VcXsrv on your windows?

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 20, 2021, 12:41pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/7 "2021-02-20T12:41:58Z")

</div>

Hi Josef,  
Do you mean you can run paraview GUI successfully in WSL ubuntu 20.04 with help of VcXsrv?  
I found there are several way that can help to use display inside WSL, VcXsrv is one of them, but i only tested [Xming](http://www.straightrunning.com/XmingNotes/)…

---

<div class="post-metadata">

### Author: ![Iose](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@Iose](https://discourse.paraview.org/u/Iose)
#### Post date: [February 20, 2021, 4:28pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/8 "2021-02-20T16:28:22Z")

</div>

Yes, one possible way is launch paraview via command and it is automatically open. But for me, more confident is launch paraview directly from windows as app and find the case in folder, which I want to create some postprocessing…

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 21, 2021, 12:57am UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/9 "2021-02-21T00:57:00Z")

</div>

Hi Josef,  
Thank you very much for this valuable information!  
I thought VcXsrv is something similar to Xming, and didnt have a try…

I had a quick try on VcXsrv, but paraview GUI popup with below error message then crash:  
_libGL error: No matching fbConfigs or visuals found_  
_libGL error: failed to load driver: swrast_

Do you ever meet this case?  
I will try later

Best Regards,  
Sharon

---

<div class="post-metadata">

### Author: ![Iose](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@Iose](https://discourse.paraview.org/u/Iose)
#### Post date: [February 21, 2021, 11:55am UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/10 "2021-02-21T11:55:45Z")

</div>

Hi sharon,  
unfortunately with this error I hadn’t meet it…  
How you build your paraview on ubuntu, as standalone or with OpenFOAM?

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 21, 2021, 12:12pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/11 "2021-02-21T12:12:50Z")

</div>

Hi Josef,  
I built my paraview standalone.

Best Regards,  
Sharon

---

<div class="post-metadata">

### Author: ![Iose](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@Iose](https://discourse.paraview.org/u/Iose)
#### Post date: [February 21, 2021, 12:15pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/12 "2021-02-21T12:15:07Z")

</div>

Hi Sharon,  
how did you build/install it?  
I would recommend via command for ubuntu 20.04.  
sudo apt install paraview

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 21, 2021, 1:19pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/13 "2021-02-21T13:19:31Z")

</div>

Hi Josef,  
I build paraview from source code, paraview version is 5.8.1.  
OK, I will take you recommendation and try later.

Thank you Josef for you kind help!

Best Regards,  
Sharon

---

<div class="post-metadata">

### Author: ![Iose](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@Iose](https://discourse.paraview.org/u/Iose)
#### Post date: [February 21, 2021, 1:37pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/14 "2021-02-21T13:37:48Z")

</div>

You are welcome, sharon…

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [February 21, 2021, 3:23pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/15 "2021-02-21T15:23:45Z")

</div>

I installed 5.9.0 through Anaconda on WSL Ubuntu 20.04.

I know it’s not officially supported by Kitware but in my (limited) use so far I haven’t run into any issues.

Just something else to consider.

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.paraview.org/u/sharon)
#### Post date: [February 28, 2021, 1:11pm UTC](https://discourse.paraview.org/t/build-paraview-inside-windows-subsystem-for-linux-wsl/6439/16 "2021-02-28T13:11:24Z")

</div>

Thank you Theodore for your information!

To summarize:

We can use WSL to compile paraview and run paraview server and client GUI

when run paraview client GUI, VcXsrv is recomanded to setup xServer with below proper setting:

![image](https://discourse.paraview.org/uploads/default/original/2X/3/340a1dfcab23cd9fa921e8b43fd81f8c3ed46154.png)
