Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QVTKOpenGLNativeWidget has not been declared #7

Open
haampie opened this issue Jun 10, 2019 · 3 comments · May be fixed by #8
Open

QVTKOpenGLNativeWidget has not been declared #7

haampie opened this issue Jun 10, 2019 · 3 comments · May be fixed by #8

Comments

@haampie
Copy link

haampie commented Jun 10, 2019

I can't build the master version of QtVTK anymore with VTK 8.2.0 and Qt 5.12.3 on Linux:

/home/user/projects/QtVtk/src/QVTKFramebufferObjectRenderer.cpp: In constructor ‘QVTKFramebufferObjectRenderer::QVTKFramebufferObjectRenderer()’:
/home/user/projects/QtVtk/src/QVTKFramebufferObjectRenderer.cpp:28:35: error: ‘QVTKOpenGLNativeWidget’ has not been declared
  QSurfaceFormat::setDefaultFormat(QVTKOpenGLNativeWidget::defaultFormat());

I do have these headers though.

@haampie haampie linked a pull request Jun 10, 2019 that will close this issue
@JTray123
Copy link

Hi guys, Has this been resolved. I just tried to build the project and I am getting this same error when I use VTK 8.2 with external rendering module included and QT 5.13 on windows using visual studio 2017. When I try and add the header file as suggested in this fix it doesn't know where it the header is. Do I need to add a path in environmental settings or similar? Does this problem happen with vtk 8.1?

Thanks in advance

@krigssv1n
Copy link

The first suggestion worked for me. Double check your include paths.

@ThreeStones1029
Copy link

Thank you, when adding headers, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants