Closed kevinsmia1939 closed 2 years ago
Hi,
If you study the code for ElmerGUI you find lines like this:
It seems that the QVTKWidget was renamed and has been depricated. I wonder why this VTK_MAJOR_VERSION is not defined for you. Personally I'm almost useless on build issues but maybe this gets you forward. I appreciate the effort!
On further reading there seems to be a new renaming for VTK9: QVTKOpenGLNativeWidget -> QVTKOpenGLWidget https://discourse.vtk.org/t/yet-another-qvtkopenglwidget-renaming/2602 So maybe the #if #else statements should be further enhanced to deal with VTK9. You may well be the 1st one to face this issue.
@raback Thanks, I think the renaming in VTK 9 cause the issue. I'm surprise no one report on this issue yet.
Can you maybe try out this and make a PR if succesful? I'm still working with an older VTK and basically would not like to add untested code even though this should be pretty straight-forward.
Can you maybe try out this and make a PR if succesful? I'm still working with an older VTK and basically would not like to add untested code even though this should be pretty straight-forward.
I don't really know how to code... But I can test if anyone make pr for it.
@raback Hi, I did this in ElmerGUI/Application/vtkpost/vtkpost.cpp, but still same error.
#if VTK_MAJOR_VERSION == 8
#include <QVTKOpenGLNativeWidget.h>
#elif VTK_VERSION >= 9
#include <QVTKOpenGLWidget.h>
#else
#include <QVTKWidget.h>
#endif
Hi,
QVTKOpenGLNativeWidget is still available in VTK9. I guess this problem was caused because vtkVersionMacros.h was not automatically included due to "-DVTK_LEGACY_REMOVE:BOOL=ON" option from vtkConfigure.h. So, you don't need to modify vtkpost.cpp. Instead, I recommend to try modifying vtkpost.h line 60 to 64
from
#if 1
#include "vtkConfigure.h"
#else
#include "vtkVersionMacros.h"
#endif
to simply
#include "vtkConfigure.h"
#include "vtkVersionMacros.h"
Hi,
I packaging ElmerGUI as Flatpak for Linux. Flatpak is a way to package Linux software that include any dependencies the app needs. Which mean package the app once and work on all distro.
Here is what I have so far. https://github.com/kevinsmia1939/flathub/tree/fi.csc.Elmer
I want to support many feature as possible, but I have some issues.
It look like Elmer does not compile with VTK 9.0.3. The flags I use are listed below.
I use latest Elmer in devel branch.
gcc 10.2.0 cmake 3.20.2
I use openSUSE Tumbleweed.
Thanks.