# FATAL\_ERROR "superbuild\_python\_version not set"

**URL:** https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697
**Category:** LidarView, Lidar, and SLAM
**Tags:** lidarview, python
**Created:** [March 24, 2023, 12:02pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697 "2023-03-24T12:02:47Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![federista](https://discourse.paraview.org/user_avatar/discourse.paraview.org/federista/32/11181_2.png) [@federista](https://discourse.paraview.org/u/federista)
#### Post date: [March 24, 2023, 12:02pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/1 "2023-03-24T12:02:47Z")

</div>

I have been trying to build lidarview project. Steps that i have followed  
`git clone --recursive https://gitlab.kitware.com/LidarView/lidarview.git lidarview`  
mkdir build && cd build  
`cmake . -Dlidarview_SOURCE_SELECTION=source -Dlidarview_SOURCE_DIR=complete_lidar/lidarview`

The error:  
CMake Error at LVCore/CMake/SetupLidarviewProject.cmake:24 (message):  
superbuild\_python\_version not set  
Call Stack (most recent call first):  
CMakeLists.txt:12 (include)

When i try to build it using LVSuperbuild cmakelist.txt. it works fine and i can use lidarview successfully  
`cmake . -Dlidarview\_SOURCE\_SELECTION=source -Dlidarview\_SOURCE\_DIR=complete\_lidar/lidarview/LVSuperbuild

The main problem is that i can not build it in the main directory where all the packages are located( e.g LVCore, LVSuperbuild, Application). Thank you and looking for some guidance

Details about OS:  
Ubuntu 20.04  
python3.8 but i have also tried with python3.9  
Lidarview 4.3.0  
Paraview 5.11.1-RC1

---

<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 24, 2023, 12:03pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/2 "2023-03-24T12:03:17Z")

</div>

@Timothee_Couble

---

<div class="post-metadata">

### Author: ![Timothee\_Couble](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee_couble/32/9790_2.png) [@Timothee\_Couble](https://discourse.paraview.org/u/Timothee_Couble)
#### Post date: [March 24, 2023, 12:20pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/3 "2023-03-24T12:20:46Z")

</div>

Hi @federista,

LidarView doesn’t support build from source yet (only with [lidarview superbuild](https://gitlab.kitware.com/LidarView/lidarview-superbuild).), if you want to compile with your custom lidarview source you should be able with theses steps:

- `git clone --recursive https://gitlab.kitware.com/LidarView/lidarview-superbuild.git lvsb`
- `mkdir build && cd build`
- `cmake ../lvsb -GNinja -Dlidarview_SOURCE_SELECTION=source -Dlidarview_SOURCE_DIR=/path/to/lidarview/src`
- `ninja -j8`

---

<div class="post-metadata">

### Author: ![federista](https://discourse.paraview.org/user_avatar/discourse.paraview.org/federista/32/11181_2.png) [@federista](https://discourse.paraview.org/u/federista)
#### Post date: [March 24, 2023, 1:40pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/4 "2023-03-24T13:40:30Z")

</div>

@Timothee_Couble How do i build LVCore then. There are two repositories. One is  
[https://gitlab.kitware.com/LidarView/lidarview](https://gitlab.kitware.com/LidarView/lidarview)

while the other one is  
[https://gitlab.kitware.com/LidarView/lidarview-superbuild](https://gitlab.kitware.com/LidarView/lidarview-superbuild).

Does the lidarview-superbuild comes with a complete set of options and features because there is no LVCore or Application data in that.  
If i want to use these, will it be achieved by downloading it from release section?  
[https://gitlab.kitware.com/LidarView/lidarview/-/releases](https://gitlab.kitware.com/LidarView/lidarview/-/releases)

---

<div class="post-metadata">

### Author: ![Timothee\_Couble](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee_couble/32/9790_2.png) [@Timothee\_Couble](https://discourse.paraview.org/u/Timothee_Couble)
#### Post date: [March 24, 2023, 2:03pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/5 "2023-03-24T14:03:03Z")

</div>

LVCore is built with lidarview (it’s part of the source code of lidarview).

Lidarview-superbuild will get automatically lidarview source code (with LVCore and plugins), and compile all of that.

> [@federista](#):
>
> If i want to use these, will it be achieved by downloading it from release section?

Yes you can download a release version of LidarView everything is bundle within.

---

<div class="post-metadata">

### Author: ![Gatien\_Ferret](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gatien_ferret/32/9789_2.png) [@Gatien\_Ferret](https://discourse.paraview.org/u/Gatien_Ferret)
#### Post date: [March 24, 2023, 2:42pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/6 "2023-03-24T14:42:44Z")

</div>

> [@Timothée Couble](#):
>
> > [@federista](#):
> >
> > If i want to use these, will it be achieved by downloading it from release section?
> 
> Yes you can download a release version of LidarView everything is bundle within.

Small clarification here, the source code archives available in [https://gitlab.kitware.com/LidarView/lidarview/-/releases](https://gitlab.kitware.com/LidarView/lidarview/-/releases) do not contain the submodules( namely LVCore,LVSuperbuild and the lidar specific plugins).  
your recursive clone is correct and would contain both the Superbuild and the higher level LidarView folder

---

<div class="post-metadata">

### Author: ![federista](https://discourse.paraview.org/user_avatar/discourse.paraview.org/federista/32/11181_2.png) [@federista](https://discourse.paraview.org/u/federista)
#### Post date: [March 24, 2023, 2:44pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/7 "2023-03-24T14:44:25Z")

</div>

I can build the lidarview-superbuild from the source and i succeed in it. When i try to use certain flag like  
lidarview\_SOURCE\_SELECTION=Source  
lidarview\_SOURCE\_DIR=/home/sentech/complete/lidarview/LVSuperbuild

It gives me the following error  
CMake Error at pvsb/superbuild/cmake/SuperbuildVersionMacros.cmake:179 (\_superbuild\_parse\_version):  
\_superbuild\_parse\_version Function invoked with incorrect arguments for  
function named: \_superbuild\_parse\_version  
Call Stack (most recent call first):  
pvsb/superbuild/cmake/SuperbuildVersionMacros.cmake:229 (\_superbuild\_detect\_version\_git)  
CMakeLists.txt:79 (superbuild\_set\_version\_variables)  
pvsb/superbuild/CMakeLists.txt:169 (superbuild\_setup\_variables)

I appreciate your assistance . Thank you

---

<div class="post-metadata">

### Author: ![federista](https://discourse.paraview.org/user_avatar/discourse.paraview.org/federista/32/11181_2.png) [@federista](https://discourse.paraview.org/u/federista)
#### Post date: [March 24, 2023, 2:47pm UTC](https://discourse.paraview.org/t/fatal-error-superbuild-python-version-not-set/11697/8 "2023-03-24T14:47:32Z")

</div>

Yes i came to know that too. The main issue is that how do i build a complete parent folder of lidarview instead of lidarview-superbuild. if lidarview doesnt support build from the source yet, there must be some way to do it right?

The main idea is that i just want to experiment with mainwindow.ui in Application folder. just to see if i can publish anything to it. Is it possible?
