# Complete compilation of Paraview (Readers+OSmesa+Python)

**URL:** https://discourse.paraview.org/t/complete-compilation-of-paraview-readers-osmesa-python/10558
**Category:** ParaView Support
**Created:** [October 20, 2022, 2:52pm UTC](https://discourse.paraview.org/t/complete-compilation-of-paraview-readers-osmesa-python/10558 "2022-10-20T14:52:40Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Captain\_Convergence](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@Captain\_Convergence](https://discourse.paraview.org/u/Captain_Convergence)
#### Post date: [October 21, 2022, 7:56am UTC](https://discourse.paraview.org/t/complete-compilation-of-paraview-readers-osmesa-python/10558/3 "2022-10-21T07:56:22Z")

</div>

Dear Mathieu,

Thank you so much for your message. I dowloaded the super-build and I am trying to compile it with OSMESA (llvm and mesa are already compiled in my computer). I am using the following flags:

```auto
cmake \
-GNinja \
-DPARAVIEW_USE_PYTHON=ON \
-DPython3_EXECUTABLE:FILEPATH=/usr/bin/python3 \
-DPARAVIEW_USE_MPI=ON \
-DVTK_SMP_IMPLEMENTATION_TYPE=TBB \
-DPARAVIEW_ENABLE_VISITBRIDGE=ON \
-DOSMESA_INCLUDE_DIR=${InstallPath}/mesa-21.3.1/include \
-DOSMESA_LIBRARY=${InstallPath}/mesa/lib/x86_64-linux-gnu/libOSMesa.so \
-DCMAKE_BUILD_TYPE=Release ./paraview-superbuild

```

However it crashes because python 2 or 3 have not been enabled:

```auto
-- Building projects: cxx11, nlohmannjson, python, pybind11, paraview
CMake Error at superbuild/projects/python.cmake:2 (message):
  Python is enabled, but neither Python2 nor Python3 has been enabled.
Call Stack (most recent call first):
  superbuild/cmake/SuperbuildMacros.cmake:983 (include)
  superbuild/CMakeLists.txt:159 (superbuild_process_dependencies)

```

I also read the post below because some people were experiencing the same issue and you recommended using the flag " `-D ENABLE_python3`":

> [@Paraview 5.9.0-RCS superbuild configuration issue on Ubuntu 18.04](https://discourse.paraview.org/t/paraview-5-9-0-rcs-superbuild-configuration-issue-on-ubuntu-18-04/5789):
>
> – Determined source version for paraview: 5.9.0-RC1 – Enabling cxx11 as requested. – Enabling nlohmannjson as requested. – Enabling python for: pybind11 – Enabling paraview as requested. – Enabling paraviewsdk as requested. – Enabling pybind11 as requested. – Building projects: cxx11, nlohmannjson, python, paraview, paraviewsdk, pybind11 CMake Error at superbuild/projects/python.cmake:2 (message): Python is enabled, but neither Python2 nor Python3 has been enabled. Call Stack (most rec…

However for the current super-build version, that cmake flag is not recognized, I also tried:

```auto
-D ENABLE_python3 \
-DENABLE_python3 \
-DPARAVIEW_ENABLE_python3 \

```

But I cannot start the compilation.

---

_[View the full topic](https://discourse.paraview.org/t/complete-compilation-of-paraview-readers-osmesa-python/10558)._
