# CMake Error at CMake/SlicerBlockFindQtAndCheckVersion

**URL:** <https://discourse.slicer.org/t/cmake-error-at-cmake-slicerblockfindqtandcheckversion/21079>\
**Category:** Development\
**Created:** [December 15, 2021, 5:10pm UTC](https://discourse.slicer.org/t/cmake-error-at-cmake-slicerblockfindqtandcheckversion/21079 "2021-12-15T17:10:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabiola](https://avatars.discourse-cdn.com/v4/letter/f/bbe5ce/32.png) [@Fabiola](https://discourse.slicer.org/u/Fabiola)\
**Post date:** [December 15, 2021, 5:10pm UTC](https://discourse.slicer.org/t/cmake-error-at-cmake-slicerblockfindqtandcheckversion/21079/1 "2021-12-15T17:10:46Z")

</div>

Hello,  
I am trying to build Slicer on Ubuntu 20.04 (with NVIDIA GK 107M GeForce GT 750 graphics card). Fighting with an OpenGL cmake error which I can’t win a few days now, can someone help me please with ideas, direction potential solution even if you solved similar issue, please?

Configuring VTK  
Slicer\_VTK\_RENDERING\_BACKEND is OpenGL2  
Slicer\_VTK\_SMP\_IMPLEMENTATION\_TYPE is Sequential  
Slicer\_VTK\_VERSION\_MAJOR is 9  
CMake Error at CMake/SlicerBlockFindQtAndCheckVersion.cmake:44 (message):  
error: Missing Qt module named “Core”  
Call Stack (most recent call first):  
CMake/SlicerBlockFindQtAndCheckVersion.cmake:67 (\_\_SlicerBlockFindQtAndCheckVersion\_find\_qt)  
CMakeLists.txt:644 (include)

Thank you in advance for any lead.

---

<div class="post-metadata">

**Author:** ![RafaelPalomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rafaelpalomar/32/1436_2.png) [@RafaelPalomar](https://discourse.slicer.org/u/RafaelPalomar)\
**Post date:** [December 15, 2021, 9:25pm UTC](https://discourse.slicer.org/t/cmake-error-at-cmake-slicerblockfindqtandcheckversion/21079/2 "2021-12-15T21:25:13Z")

</div>

Hello,

it looks to me that your error has to do with Qt and not with OpenGL. Have you tried to install all the dependencies listed in [https://slicer.readthedocs.io/en/latest/developer\_guide/build\_instructions/linux.html?highlight=linux#ubuntu-20-04-focal-fossa](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/linux.html?highlight=linux#ubuntu-20-04-focal-fossa)?

```auto
sudo apt update && sudo apt install git subversion build-essential cmake cmake-curses-gui cmake-qt-gui \
  qt5-default qtmultimedia5-dev qttools5-dev libqt5xmlpatterns5-dev libqt5svg5-dev qtwebengine5-dev qtscript5-dev \
  qtbase5-private-dev libqt5x11extras5-dev libxt-dev

```

---

<div class="post-metadata">

**Author:** ![Fabiola](https://avatars.discourse-cdn.com/v4/letter/f/bbe5ce/32.png) [@Fabiola](https://discourse.slicer.org/u/Fabiola)\
**Post date:** [December 16, 2021, 1:05pm UTC](https://discourse.slicer.org/t/cmake-error-at-cmake-slicerblockfindqtandcheckversion/21079/3 "2021-12-16T13:05:24Z")

</div>

Hi Rafael, thank you so much for your reply.  
Yes, I run the dependencies above. Meanwhile I realized that I copy pasted the wrong error message.

After a several rounds of nvidia driver and Qt5 reinstallation, I think I reinstall my Ubuntu.  
Thank you for the help.
