View Issue Details

IDProjectCategoryView StatusLast Update
0033164CommunityOCCT:Releasepublic2024-03-28 17:08
Reporterboomanaiden154 Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
PlatformLinuxOSAlpine 
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)

Relationships

duplicate of 0033372 verifieddpasukhi Visualization - Compilation of git master fails against vtk 9.2.6 

Activities

boomanaiden154

2022-10-10 21:23

reporter  

x11vtkconflict.patch (416 bytes)

git

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.

boomanaiden154

2022-10-15 01:17

reporter   ~0111590

Resolved

dpasukhi

2024-02-01 02:44

administrator   ~0115022

Dear bugmaster, please close.
The issue resolved by 0033372

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
2024-01-31 18:46 dpasukhi Assigned To boomanaiden154 => dpasukhi
2024-02-01 02:43 dpasukhi Relationship added duplicate of 0033372
2024-02-01 02:44 dpasukhi Assigned To dpasukhi => bugmaster
2024-02-01 02:44 dpasukhi Status new => feedback
2024-02-01 02:44 dpasukhi Note Added: 0115022
2024-03-28 17:08 vglukhik Status feedback => closed
2024-03-28 17:08 vglukhik Resolution open => duplicate