# vtkCollisionDetectionFilter

**URL:** https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594
**Category:** Support
**Created:** [February 12, 2020, 4:11pm UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594 "2020-02-12T16:11:45Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Jaafar\_Nasrabadi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaafar_nasrabadi/32/1387_2.png) [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)
#### Post date: [February 12, 2020, 4:11pm UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594/1 "2020-02-12T16:11:45Z")

</div>

hi  
i compiled vtk 8.2.0 with cmake and vs 2017 and i tested it.  
but i can’t see vtkCollisionDetectionFilter.  
is any special setings needed to compile vtk and use vtkCollisionDetectionFilter?  
Thanks a lot.

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [February 17, 2020, 10:59am UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594/2 "2020-02-17T10:59:11Z")

</div>

Hello, Jaafar,

`vtkCollisionDetectionFilter` is not in `8.2.0`. You have to get the latest unstable version of VTK from here: [https://gitlab.kitware.com/vtk/vtk](https://gitlab.kitware.com/vtk/vtk) .

cheers,

Paulo

---

<div class="post-metadata">

### Author: ![Jaafar\_Nasrabadi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaafar_nasrabadi/32/1387_2.png) [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)
#### Post date: [February 28, 2020, 10:38am UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594/3 "2020-02-28T10:38:11Z")

</div>

hi Paulo  
thanks for your answer.

i downloaded vtk master an compiled it with vs 2015.

it includes VtkCollisionDetectionFilter but i need QT too.

i selected QT options in cmake but when i compile it i see an error in vs as:

Error

C2039

‘Frame’: is not a  
member of ‘QGLWidget’

GUISupportQtOpenGL

C:\VTK\SOURCE\source\GUISupport\QtOpenGL\QVTKWidget2.cxx

488

how can i fix this error.  
thanks

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [February 28, 2020, 5:38pm UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594/4 "2020-02-28T17:38:38Z")

</div>

Hi Jaafar,

Enabling Qt is not enough. VTK will need Qt (.h, .lib and .dll) itself. You have to either obtain the Qt libraries precompiled with VS 2015 or compile them yourself.

regards,

Paulo

---

<div class="post-metadata">

### Author: ![Jaafar\_Nasrabadi](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaafar_nasrabadi/32/1387_2.png) [@Jaafar\_Nasrabadi](https://discourse.vtk.org/u/Jaafar_Nasrabadi)
#### Post date: [February 28, 2020, 6:17pm UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594/5 "2020-02-28T18:17:46Z")

</div>

You are right , i installed QT5.14.1 (VS 2015 ) with QT offline installer before compiling , but that error occurred.

i used vtk-master, VS2015(update 1) , cmake 3.16.4 and  
QT5.14.1 VS 2015 .

qt options:  
VTK\_BUILD\_QT\_DESIGNER\_PLUGIN : checked

VTK\_GROUP\_ENABLE\_Qt= yes

VTK\_MODULE\_ENABLE\_VTK\_GUISupportQt= want

VTK\_MODULE\_ENABLE\_VTK\_GUISupportQtOpenGL=want

VTK\_MODULE\_ENABLE\_VTK\_GUISupportQtSQL = want

VTK\_MODULE\_ENABLE\_VTK\_RenderingQt = want

VTK\_MODULE\_ENABLE\_VTK\_ViewsQt= want

Error C2039 ‘Frame’: is not a member of ‘QGLWidget’ GUISupportQtOpen

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [February 28, 2020, 7:15pm UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594/6 "2020-02-28T19:15:47Z")

</div>

Well, since it is an unstable version of VTK, I recommend reporting an issue here: [https://gitlab.kitware.com/vtk/vtk/issues](https://gitlab.kitware.com/vtk/vtk/issues) stating the versions you’re using (Qt 5.14.1, VTK unstable, VS 2015, etc.).

---

<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: [May 11, 2020, 3:46am UTC](https://discourse.vtk.org/t/vtkcollisiondetectionfilter/2594/7 "2020-05-11T03:46:26Z")

</div>

FYI this error was corrected on master.
