# Could NOT find OpenMP\_CXX: Found unsuitable version "2.0", but required is at least "4.0" (found -openmp)

**URL:** https://discourse.paraview.org/t/could-not-find-openmp-cxx-found-unsuitable-version-2-0-but-required-is-at-least-4-0-found-openmp/7686
**Category:** ParaView Support
**Created:** [July 24, 2021, 3:19pm UTC](https://discourse.paraview.org/t/could-not-find-openmp-cxx-found-unsuitable-version-2-0-but-required-is-at-least-4-0-found-openmp/7686 "2021-07-24T15:19:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Faker](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/eb9ed0/32.png) [@Faker](https://discourse.paraview.org/u/Faker)
#### Post date: [July 24, 2021, 3:19pm UTC](https://discourse.paraview.org/t/could-not-find-openmp-cxx-found-unsuitable-version-2-0-but-required-is-at-least-4-0-found-openmp/7686/1 "2021-07-24T15:19:29Z")

</div>

Hi, I’ve been trying to build Paraview by following the guides [here](https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md#complete-compilation-guide) and [here](https://www.paraview.org/Wiki/ParaView:Build_And_Install#Introduction), however, I have run into some issues when attempting both ways. I’ve followed the Windows dependencies, having installed the appropriate versions of CMake, VS2017, ninja-build, the Microsoft MPI files, Python for Windows, and Qt 5.12.3 with the MSVC 2017 component installed, and the appropriate additions to the PATH environment variable.

I believe I have obtained the proper source, having cloned the repository using:

> git clone --recursive [https://gitlab.kitware.com/paraview/paraview.git](https://gitlab.kitware.com/paraview/paraview.git)

I then run the following in VS2017 x64 Native Tools Command Prompt:

> cd C:\pv\pvb  
> cmake -GNinja -DPARAVIEW\_USE\_PYTHON=ON -DPARAVIEW\_USE\_MPI=ON -DVTK\_SMP\_IMPLEMENTATION\_TYPE=OpenMP -DCMAKE\_BUILD\_TYPE=Release …\pv  
> ninja  
> After a while, I get a long string of syntax errors that I have attached to this post. Does anyone have any suggestions? I’ve tried building with VS2015 but also eventually run into these syntax errors which cause the build to fail.
> 
> ![image](https://discourse.paraview.org/uploads/default/original/2X/7/70f416154738a703a0503c2a3e38bd52117b14b3.png)  
> I have Download and install both `msmpisetup.exe` and `msmpisdk.msi` from [Microsoft MPI](https://docs.microsoft.com/en-us/message-passing-interface/microsoft-mpi)  
> why??? i need help

---

<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: [July 25, 2021, 5:31pm UTC](https://discourse.paraview.org/t/could-not-find-openmp-cxx-found-unsuitable-version-2-0-but-required-is-at-least-4-0-found-openmp/7686/2 "2021-07-25T17:31:57Z")

</div>

Hmm. It seems that VTK-m wants OpenMP 4.0 which is not available with MSVC 2017. I would suggest setting `VTK_SMP_IMPLEMENTATION_TYPE` to something other than `OpenMP` (which is what triggers this VTK-m logic. I would suggest `TBB` if you have it and `StdThread` otherwise if available. `Sequential` would be the final fallback option.
