# Building OpenCascade 7.5.0 with VTK 9.0.1

**URL:** https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673
**Category:** Support
**Created:** [November 16, 2020, 10:11pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673 "2020-11-16T22:11:04Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 16, 2020, 10:11pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/1 "2020-11-16T22:11:04Z")

</div>

OCC 7.4 did not support vtk 9.x at all, but we made a bit of progress trying to build with 7.5.0 until here:

```
[90%] Building CXX object src/TKIVtkDraw/CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o
cd /builddir/build/BUILD/opencascade-7.5.0/x86_64-redhat-linux-gnu/src/TKIVtkDraw && /usr/bin/g++ -DHAVE_TBB -DHAVE_VTK -DOCC_CONVERT_SIGNALS -DTKIVtkDraw_EXPORTS -DVTK_OPENGL2_BACKEND -I/builddir/build/BUILD/opencascade-7.5.0/x86_64-redhat-linux-gnu/include/opencascade -isystem /usr/include/freetype2 -isystem /usr/include/vtk -std=c++0x -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fexceptions -fPIC -Wall -Wextra -O2 -g -DNDEBUG -fPIC -o CMakeFiles/TKIVtkDraw.dir/__/IVtkDraw/IVtkDraw.cxx.o -c /builddir/build/BUILD/opencascade-7.5.0/src/IVtkDraw/IVtkDraw.cxx
In file included from /builddir/build/BUILD/opencascade-7.5.0/src/InterfaceGraphic/InterfaceGraphic.hxx:39,
                 from /builddir/build/BUILD/opencascade-7.5.0/x86_64-redhat-linux-gnu/include/opencascade/InterfaceGraphic.hxx:1,
                 from /builddir/build/BUILD/opencascade-7.5.0/src/Aspect/Aspect_DisplayConnection.hxx:24,
                 from /builddir/build/BUILD/opencascade-7.5.0/x86_64-redhat-linux-gnu/include/opencascade/Aspect_DisplayConnection.hxx:1,
                 from /builddir/build/BUILD/opencascade-7.5.0/src/OpenGl/OpenGl_GraphicDriver.hxx:22,
                 from /builddir/build/BUILD/opencascade-7.5.0/x86_64-redhat-linux-gnu/include/opencascade/OpenGl_GraphicDriver.hxx:1,
                 from /builddir/build/BUILD/opencascade-7.5.0/src/IVtkDraw/IVtkDraw.cxx:34:
/usr/include/vtk/vtkDataArray.h:602:8: error: expected identifier before numeric constant
  602 | struct AllValues
      | ^ ~~~~~~~~
/usr/include/vtk/vtkDataArray.h:602:8: error: expected unqualified-id before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:417:37: error: expected identifier before numeric constant
  417 | bool DoComputeVectorRange(A*, R[2], AllValues);
      | ^ ~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:417:37: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:519:37: error: expected identifier before numeric constant
  519 | bool DoComputeVectorRange(A*, R[2], AllValues);
      | ^ ~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:519:37: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
  551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
  551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
  551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected identifier before numeric constant
  551 | VTK_DECLARE_VALUERANGE_VALUETYPE(long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:551:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
  552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
  552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
  552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected identifier before numeric constant
  552 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:552:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
  553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
  553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
  553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected identifier before numeric constant
  553 | VTK_DECLARE_VALUERANGE_VALUETYPE(long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:553:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
  554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
  554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
  554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected identifier before numeric constant
  554 | VTK_DECLARE_VALUERANGE_VALUETYPE(unsigned long long)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:554:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:555:1: error: expected identifier before numeric constant
  555 | VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkDataArray, double)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:555:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.h:555:1: error: expected identifier before numeric constant
  555 | VTK_DECLARE_VALUERANGE_ARRAYTYPE(vtkDataArray, double)
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.h:555:1: error: expected ',' or '...' before numeric constant
/usr/include/vtk/vtkGenericDataArray.txx: In member function 'bool vtkGenericDataArray<DerivedT, ValueTypeT>::ComputeScalarValueRange(vtkGenericDataArray<DerivedT, ValueTypeT>::ValueType*)':
/usr/include/vtk/vtkGenericDataArray.txx:1195:64: error: expected unqualified-id before numeric constant
 1195 | static_cast<DerivedT*>(this), ranges, vtkDataArrayPrivate::AllValues{}, Supported{});
      | ^ ~~~~~~~~
/usr/include/vtk/vtkGenericDataArray.txx: In member function 'bool vtkGenericDataArray<DerivedT, ValueTypeT>::ComputeVectorValueRange(vtkGenericDataArray<DerivedT, ValueTypeT>::ValueType*)':
/usr/include/vtk/vtkGenericDataArray.txx:1205:63: error: expected unqualified-id before numeric constant
 1205 | static_cast<DerivedT*>(this), range, vtkDataArrayPrivate::AllValues{}, Supported{});
      | ^ ~~~~~~~~

```

Fedora Rawhide x86\_64  
gcc 10.2.1

Any ideas?

Thanks,  
Richard

---

<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: [November 17, 2020, 12:21am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/2 "2020-11-17T00:21:32Z")

</div>

It looks like there’s a `#define AllValues ???` somewhere around. Does the preprocessed source look odd for the lines reported on here? (Add `-E` and change the output to be `-o preproc.txt` instead on the command line for the TU.)

Other than that, maybe @RobertMaynard has a better idea? @AllisonVacanti might have time to answer as well with luck.

---

<div class="post-metadata">

### Author: ![RobertMaynard](https://discourse.vtk.org/user_avatar/discourse.vtk.org/robertmaynard/32/24_2.png) [@RobertMaynard](https://discourse.vtk.org/u/RobertMaynard)
#### Post date: [November 17, 2020, 12:26am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/3 "2020-11-17T00:26:07Z")

</div>

Looks to be an issue where Xutil defines an `AllValues` macro.

[https://gitlab.kitware.com/vtk/vtk/-/issues/18048](https://gitlab.kitware.com/vtk/vtk/-/issues/18048)

---

<div class="post-metadata">

### Author: ![wulicheng](https://discourse.vtk.org/user_avatar/discourse.vtk.org/wulicheng/32/1990_2.png) [@wulicheng](https://discourse.vtk.org/u/wulicheng)
#### Post date: [November 17, 2020, 12:53am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/4 "2020-11-17T00:53:44Z")

</div>

[https://gitlab.kitware.com/vtk/vtk/-/issues/18048](https://gitlab.kitware.com/vtk/vtk/-/issues/18048)

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 17, 2020, 12:35pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/5 "2020-11-17T12:35:40Z")

</div>

Thanks for the link. Any idea on what the solution will be?

Thanks,  
Richard

---

<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: [November 17, 2020, 1:09pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/6 "2020-11-17T13:09:26Z")

</div>

> [@Richard\_Shaw](#):
>
> Any idea on what the solution will be?

VTK will need to rename that structure.

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 17, 2020, 1:15pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/7 "2020-11-17T13:15:30Z")

</div>

Is it safe to use the workaround posted in the issue or should I wait? We’re currently trying to upgrade the whole stack and dependencies in Fedora (OCC, vtk).

---

<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: [November 17, 2020, 1:49pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/8 "2020-11-17T13:49:10Z")

</div>

Feel free to use `vtkAllValues` for now. I don’t imagine it is used very much outside of VTK right now.

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 18, 2020, 1:33am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/9 "2020-11-18T01:33:54Z")

</div>

Ok, not sure if it has to do with me renaming AllValues but after about 2.5 hours I ran into this:

```
/builddir/build/BUILD/VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx:382:1: error: expected constructor, destructor, or type conversion before 'vtkFreeTypeToolsFaceRequester'
  382 | vtkFreeTypeToolsFaceRequester(
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx: In member function 'virtual FT_Error vtkFreeTypeTools::CreateFTCManager()':
/builddir/build/BUILD/VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx:1154:61: error: 'vtkFreeTypeToolsFaceRequester' was not declared in this scope; did you mean 'vtkFreeTypeToolsCleanupCounter'?
 1154 | this->MaximumNumberOfSizes, this->MaximumNumberOfBytes, vtkFreeTypeToolsFaceRequester,
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | vtkFreeTypeToolsCleanupCounter
```

---

<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: [November 18, 2020, 1:42am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/10 "2020-11-18T01:42:24Z")

</div>

Hmm. Not sure exactly, but it looks like `FT_CALLBACK_DEF(FT_Error)` is expanding improperly. What version of FreeType is being used? It’s working here with `freetype-devel-2.10.4-1.fc33.x86_64`.

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 18, 2020, 3:07am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/11 "2020-11-18T03:07:47Z")

</div>

Same version, just the Rawhide f34 package…

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 18, 2020, 3:08am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/12 "2020-11-18T03:08:41Z")

</div>

Full log:

[https://download.copr.fedorainfracloud.org/results/orion/vtk9.0/fedora-rawhide-x86\_64/01772259-vtk/builder-live.log.gz](https://download.copr.fedorainfracloud.org/results/orion/vtk9.0/fedora-rawhide-x86_64/01772259-vtk/builder-live.log.gz)

---

<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: [November 21, 2020, 6:21pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/13 "2020-11-21T18:21:14Z")

</div>

And just reproduced the problem here: [https://open.cdash.org/viewBuildError.php?buildid=6890950](https://open.cdash.org/viewBuildError.php?buildid=6890950)

---

<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: [November 21, 2020, 6:34pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/14 "2020-11-21T18:34:25Z")

</div>

Investigating, it appears as though `FT_CALLBACK_DEF` has always been meant to be internal. This is true as of 2.10.4. [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/7432](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7432)

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 22, 2020, 10:43pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/15 "2020-11-22T22:43:21Z")

</div>

I applied the commit as a patch and got this far:

```
/builddir/build/BUILD/VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx
/builddir/build/BUILD/VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx:382:1: error: expected constructor, destructor, or type conversion before 'vtkFreeTypeToolsFaceRequester'
  382 | vtkFreeTypeToolsFaceRequester(
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builddir/build/BUILD/VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx: In member function 'virtual FT_Error vtkFreeTypeTools::CreateFTCManager()':
/builddir/build/BUILD/VTK-9.0.1/Rendering/FreeType/vtkFreeTypeTools.cxx:1154:61: error: 'vtkFreeTypeToolsFaceRequester' was not declared in this scope; did you mean 'vtkFreeTypeToolsCleanupCounter'?
 1154 | this->MaximumNumberOfSizes, this->MaximumNumberOfBytes, vtkFreeTypeToolsFaceRequester,
      | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | vtkFreeTypeToolsCleanupCounter
```

---

<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: [November 23, 2020, 1:01am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/16 "2020-11-23T01:01:40Z")

</div>

Hmm. I suspect something else went wrong there (still seems like it is missing a return type). Here is Fedora’s fix: [https://src.fedoraproject.org/rpms/vtk/c/00964b32afb5e933ba39b9cf81f72dbf998b1ca7?branch=master](https://src.fedoraproject.org/rpms/vtk/c/00964b32afb5e933ba39b9cf81f72dbf998b1ca7?branch=master)

Seems freetype reverted the removal based on comments there. The change I made makes it not care anymore.

---

<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: [November 23, 2020, 1:02am UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/17 "2020-11-23T01:02:47Z")

</div>

Oh 🤦‍♂️ , there are 2 uses of the macro in VTK…the other needs fixed too.

Fix for the other one is here: [https://gitlab.kitware.com/vtk/vtk/-/merge\_requests/7434](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7434)

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 23, 2020, 3:30pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/18 "2020-11-23T15:30:40Z")

</div>

So I should use your fix, correct? It looks like Sandro worked around it but Orion and I are working on the whole vtk/opencascade stack separately in a COPR:

> **[orion/vtk9.0
 Copr](https://copr.fedorainfracloud.org/coprs/orion/vtk9.0/)**

I have a side tag I’m doing all the official builds in and once complete it will be merged back into the Rawhide repository.

---

<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: [November 23, 2020, 5:57pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/19 "2020-11-23T17:57:32Z")

</div>

I think the fixes I did is more useful long-term. Feel free to merge the two diffs into one patchfile though. Both MRs are on top of 9.0.0, so they should apply cleanly.

---

<div class="post-metadata">

### Author: ![Richard\_Shaw](https://discourse.vtk.org/user_avatar/discourse.vtk.org/richard_shaw/32/865_2.png) [@Richard\_Shaw](https://discourse.vtk.org/u/Richard_Shaw)
#### Post date: [November 24, 2020, 1:13pm UTC](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673/20 "2020-11-24T13:13:44Z")

</div>

All seems good now… Only problem is how long it takes to build 🙂

The build was automatically killed after 5 hours in the COPR. Took almost 2 1/2 hours on my workstation.

Thanks,  
Richard

[Next page](https://discourse.vtk.org/t/building-opencascade-7-5-0-with-vtk-9-0-1/4673.md?page=2)
