# Need help on superbuild

**URL:** https://discourse.kitware.com/t/need-help-on-superbuild/874
**Category:** Computational Model Builder (CMB)
**Created:** [July 28, 2022, 8:54pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874 "2022-07-28T20:54:37Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Yang](https://discourse.kitware.com/user_avatar/discourse.kitware.com/yang/32/556_2.png) [@Yang](https://discourse.kitware.com/u/Yang)
#### Post date: [July 28, 2022, 8:54pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/1 "2022-07-28T20:54:37Z")

</div>

Dear CMB team,

I am having some weird issues with cmb-superbuild.  
I am executing the following cmake command.  
`Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DSUPERBUILD_PACKAGE_MODE:STRING=aeva -DENABLE_opencascadesession:STRING=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -Sc:/cmb-superbuild -BC:/cmb-build/RelWithDebInfo -G Ninja`  
This works well on my machine. But when my colleague uses the same command to build, the following error popped out.

```auto
[build] CMake Error at cmake/aevaDependencies.cmake:34 (find_package):
[build] Found package configuration file:
[build]
[build] C:/cmb-build/RelWithDebInfo/install/lib/cmake/smtk-22.07.100/smtkConfig.cmake
[build]
[build] but it set smtk_FOUND to FALSE so package "smtk" is considered to be NOT
[build] FOUND. Reason given by package:
[build]
[build] The following imported targets are referenced, but are missing:
[build] DelaunayShape DelaunayMesh DelaunayMisc DelaunayValidation
[build] DelaunayDiscretization vtkSMTKSourceExt vtkSMTKModelExt
[build]
[build] Call Stack (most recent call first):
[build] CMakeLists.txt:25 (include)
[build]
[build]
[build] -- Configuring incomplete, errors occurred!
[build] See also "C:/cmb-build/RelWithDebInfo/superbuild/aevasession/build/CMakeFiles/CMakeOutput.log".
[build] See also "C:/cmb-build/RelWithDebInfo/superbuild/aevasession/build/CMakeFiles/CMakeError.log".
[build] CMake Error at C:/cmb-build/RelWithDebInfo/superbuild/sb-aevasession-configure.cmake:47 (message):
[build] Failed with exit code 1
[build]

```

We tried to clean rebuild several times, it is always the same error. And this didn’t happen on my machine. The build process on my machine was smooth and successful.  
Any help is appreciated!

Thanks,  
Yang

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.kitware.com/u/ben.boeckel)
#### Post date: [July 28, 2022, 9:17pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/2 "2022-07-28T21:17:31Z")

</div>

Could you provide the `install/lib/cmake/smtk-22.07.100/` directory from the broken build?

Are there any other oddities in the build log for smtk itself?

---

<div class="post-metadata">

### Author: ![Yang](https://discourse.kitware.com/user_avatar/discourse.kitware.com/yang/32/556_2.png) [@Yang](https://discourse.kitware.com/u/Yang)
#### Post date: [July 28, 2022, 9:21pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/3 "2022-07-28T21:21:59Z")

</div>

![image](https://discourse.kitware.com/uploads/default/original/1X/2d453bc6c3d1e477b907578dad13c579be1782e9.png)  
I attached a screen shot for the directory.

There were no other oddities.

---

<div class="post-metadata">

### Author: ![Yang](https://discourse.kitware.com/user_avatar/discourse.kitware.com/yang/32/556_2.png) [@Yang](https://discourse.kitware.com/u/Yang)
#### Post date: [July 28, 2022, 9:41pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/4 "2022-07-28T21:41:06Z")

</div>

I can confirm that target paraview and smtk were built successfully.

```auto
[build] -- Installing: C:/cmb-build/RelWithDebInfo/install/bin/smtk-22.07.100/smtkMeshSessionPlugin/smtkMeshSessionPlugin.dll
[build] -- Installing: C:/cmb-build/RelWithDebInfo/install/bin/smtk-22.07.100/smtkVTKSessionPlugin/smtkVTKSessionPlugin.dll
[build] -- Installing: C:/cmb-build/RelWithDebInfo/install/bin/smtk-22.07.100/smtkOscillatorSessionPlugin/smtkOscillatorSessionPlugin.dll
[build] -- Installing: C:/cmb-build/RelWithDebInfo/install/bin/TemplateEditor.exe
[build] [1/1 0% :: 0.279] Install the project...
[build] [392/409 95% :: 6434.264] Completed 'smtk'

```

---

<div class="post-metadata">

### Author: ![Ankit\_Deo](https://discourse.kitware.com/user_avatar/discourse.kitware.com/ankit_deo/32/560_2.png) [@Ankit\_Deo](https://discourse.kitware.com/u/Ankit_Deo)
#### Post date: [August 1, 2022, 10:14pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/5 "2022-08-01T22:14:55Z")

</div>

![image](https://discourse.kitware.com/uploads/default/original/1X/2d453bc6c3d1e477b907578dad13c579be1782e9.png)

---

<div class="post-metadata">

### Author: ![Bob\_Obara](https://discourse.kitware.com/user_avatar/discourse.kitware.com/bob_obara/32/37_2.png) [@Bob\_Obara](https://discourse.kitware.com/u/Bob_Obara)
#### Post date: [August 11, 2022, 9:02pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/6 "2022-08-11T21:02:42Z")

</div>

Hi Yang - I think the problem you are having is actually related to CMake and not your environment. I think you are using version 3.24. Can you please download 3.23.1 and try doing a clean SuperBuild?

---

<div class="post-metadata">

### Author: ![Yang](https://discourse.kitware.com/user_avatar/discourse.kitware.com/yang/32/556_2.png) [@Yang](https://discourse.kitware.com/u/Yang)
#### Post date: [August 12, 2022, 4:38pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/7 "2022-08-12T16:38:12Z")

</div>

Hi Bob, it works!!! Thanks for the solution.

---

<div class="post-metadata">

### Author: ![kyle.edwards](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/k/65b543/32.png) [@kyle.edwards](https://discourse.kitware.com/u/kyle.edwards)
#### Post date: [August 12, 2022, 4:50pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/8 "2022-08-12T16:50:49Z")

</div>

CMake maintainer here. Using 3.23 is not the solution, it’s just a diagnostic step. Some CMake change between 3.23 and 3.24 caused the superbuild to break - I’m doing a git-bisect right now to pinpoint the exact change.

---

<div class="post-metadata">

### Author: ![Bob\_Obara](https://discourse.kitware.com/user_avatar/discourse.kitware.com/bob_obara/32/37_2.png) [@Bob\_Obara](https://discourse.kitware.com/u/Bob_Obara)
#### Post date: [August 12, 2022, 5:09pm UTC](https://discourse.kitware.com/t/need-help-on-superbuild/874/9 "2022-08-12T17:09:26Z")

</div>

Actually Kyle for Yang it is a solution so that he can move forward since his work does not require 3.24. Yes it is a work around in the short term and Kitware still needs to figure out what regressed since other folks who need to use 3.24 will run into this.
