# OSPRay 1.8 and TBB tbb2018\_20170919oss\_win Required

**URL:** https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493
**Category:** Support
**Created:** [August 28, 2021, 9:15pm UTC](https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493 "2021-08-28T21:15:08Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Adam\_Hendry](https://discourse.vtk.org/user_avatar/discourse.vtk.org/adam_hendry/32/5571_2.png) [@Adam\_Hendry](https://discourse.vtk.org/u/Adam_Hendry)
#### Post date: [August 28, 2021, 9:15pm UTC](https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493/1 "2021-08-28T21:15:08Z")

</div>

Is there a reason why

- OSPRay 1.8, and
- TBB 2018 Update 1 (tbb2018\_20170919oss\_win)

are required in VTK-9.0.3 and newer versions aren’t supported? Is this intentional?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [August 28, 2021, 9:36pm UTC](https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493/2 "2021-08-28T21:36:43Z")

</div>

Regarding OSPRay, 1.8 is the last 1.X release, OSPRay 2.0 broke many API, which is supported by VTK master, but not VTK-9.0.X

No idea for TBB.

---

<div class="post-metadata">

### Author: ![Adam\_Hendry](https://discourse.vtk.org/user_avatar/discourse.vtk.org/adam_hendry/32/5571_2.png) [@Adam\_Hendry](https://discourse.vtk.org/u/Adam_Hendry)
#### Post date: [August 28, 2021, 10:29pm UTC](https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493/3 "2021-08-28T22:29:13Z")

</div>

I ask because if I add support for OSPRay

```auto
VTK_MODULE_ENABLE_VTK_RenderingRayTracing WANT

```

I get the error

```auto
CMake Warning at C:/vcpkg/scripts/buildsystems/vcpkg.cmake:784 (_find_package):
  Could not find a configuration file for package "ospray" that is compatible
  with requested version "1.8".

  The following configuration files were considered but not accepted:

    C:/Program Files (x86)/Intel/oneAPI/ospray/2.6.0/lib/cmake/ospray/osprayConfig.cmake, version: 2.6.0

Call Stack (most recent call first):
  CMake/vtkModule.cmake:4139 (find_package)
  Rendering/RayTracing/CMakeLists.txt:58 (vtk_module_find_package)

CMake Error at CMake/vtkModule.cmake:4145 (message):
  Could not find the ospray external dependency.
Call Stack (most recent call first):
  Rendering/RayTracing/CMakeLists.txt:58 (vtk_module_find_package)

```

and I see in `C:/VTK/src/Rendering/RayTracing/CMakeLists.txt`, line 58 requires version 1.8

```auto
if (VTK_ENABLE_OSPRAY)
  vtk_module_find_package(
    PACKAGE ospray
    VERSION 1.8)

```

After downloading and installing [version 1.8 for Windows](https://github.com/ospray/ospray/releases/tag/v1.8.0), the configure works, but then I get an error during building that it couldn’t find `C:/tbb2018_20170919oss/...` files, so I knew that meant I had to download [TBB 2018 Update 1](https://github.com/oneapi-src/oneTBB/releases/tag/2018_U1).

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [August 28, 2021, 11:16pm UTC](https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493/4 "2021-08-28T23:16:01Z")

</div>

> [@Adam\_Hendry](#):
>
> ```auto
> Could not find a configuration file for package "ospray" that is compatible
> with requested version "1.8".
> 
> The following configuration files were considered but not accepted:
> 
> C:/Program Files (x86)/Intel/oneAPI/ospray/2.6.0/lib/cmake/ospray/osprayConfig.cmake, version: 2.6.0
> 
> ```

This says that VTK is searching for something compatible with 1.6. 2.6. was found but rejected the notion that it was compatible with something requesting 1.6 (which is probably true).

> [@Adam\_Hendry](#):
>
> but then I get an error during building that it couldn’t find `C:/tbb2018_20170919oss/...` files, so I knew that meant I had to download [TBB 2018 Update 1](https://github.com/oneapi-src/oneTBB/releases/tag/2018_U1).

It sounds like the OSPRay you downloaded is pinned to a TBB in a specific location. This is a problem with OSPRay and not VTK. We use TBB 2019 just fine in ParaView’s superbuild. Note that OneAPI’s TBB is _not_ compatible with VTK-m because it uses TBB’s task and other deprecated APIs yet. See [this issue](https://gitlab.kitware.com/vtk/vtk-m/-/issues/635).

---

<div class="post-metadata">

### Author: ![Adam\_Hendry](https://discourse.vtk.org/user_avatar/discourse.vtk.org/adam_hendry/32/5571_2.png) [@Adam\_Hendry](https://discourse.vtk.org/u/Adam_Hendry)
#### Post date: [August 29, 2021, 12:29am UTC](https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493/5 "2021-08-29T00:29:52Z")

</div>

> This says that VTK is searching for something compatible with 1.6.

Do you mean `1.8`?

> It sounds like the OSPRay you downloaded is pinned to a TBB in a specific location. This is a problem with OSPRay and not VTK.

Ya, I’d agree. It even specifically is looking for it in `C:/tbb2018_20170919oss/`

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [August 29, 2021, 1:44am UTC](https://discourse.vtk.org/t/ospray-1-8-and-tbb-tbb2018-20170919oss-win-required/6493/6 "2021-08-29T01:44:59Z")

</div>

Err, yes. 1.8.

Yeah, that hard-coded path is what happens when you don’t have imported targets and instead use things like `FooBar_INCLUDE_DIRS` 🙂 .
