View Issue Details

IDProjectCategoryView StatusLast Update
0033164CommunityOCCT:Releasepublic2022-10-21 08:28
Reporterboomanaiden154 Assigned Toboomanaiden154  
Status newResolutionopen 
Product Version7.6.3 
Summary0033164: OpenCascade fails to compile with VTK 9.2.2
DescriptionCurrently, OpenCascade fails to compile with VTK 9.2.2 due to the addition of some includes within VTK itself that are included in the implementation of VtkDraw_Interactor that conflict with some of the X11 includes within the GLX headers (particularly Status within VTK which is defined to be int within X11/Xlib.h). This popped up while I was working on updating VTK on Alpine Linux, and will probably be useful more generally as other distros/users begin to use VTK 9.2.2 with OpenCascade. Assigning to myself as I already have a patch written and just need to upload it to get it merged.
Steps To ReproduceCompile OpenCascade 7.6.3 with VTK 9.2.2 on Linux.
TagsNo tags attached.
Test case number

Attached Files

  • x11vtkconflict.patch (416 bytes)



2022-10-10 21:23


x11vtkconflict.patch (416 bytes)


2022-10-10 21:39

administrator   ~0111466

Branch CR33164 has been created by boomanaiden154.

SHA-1: 7f523af8e8a63ee17d8fc26f107c191cd51dcd44

Detailed log of new commits:

Author: Aiden Grossman
Date: Mon Oct 10 11:25:13 2022 -0700

    Fix naming conflict between X11 headers and VTK 9.2.2+
    Currently, the GLX headers include the X11 headers which use a
    preprocessor define to make Status an int. However, VTK has a class
    called Status, and this define replaces this class name with int which
    results in compilation errors. This patch undefs Status and Success,
    which are both defined in the X11 headers if they exist so that there
    are no conflicts within the VTK headers for newer versions.


2022-10-15 01:17

reporter   ~0111590


Issue History

Date Modified Username Field Change
2022-10-10 21:23 boomanaiden154 New Issue
2022-10-10 21:23 boomanaiden154 Assigned To => boomanaiden154
2022-10-10 21:23 boomanaiden154 File Added: x11vtkconflict.patch
2022-10-10 21:39 git Note Added: 0111466
2022-10-15 01:12 boomanaiden154 Assigned To boomanaiden154 =>
2022-10-15 01:12 boomanaiden154 Assigned To => boomanaiden154
2022-10-15 01:17 boomanaiden154 Note Added: 0111590
2022-10-21 08:28 boomanaiden154 Tag Attached: Resolved
2022-10-21 08:28 boomanaiden154 Tag Detached: Resolved