integrating-qq2-with-opengl icon indicating copy to clipboard operation
integrating-qq2-with-opengl copied to clipboard

QOpenGLBuffer not found

Open ThuyKhanh opened this issue 2 years ago • 3 comments

Hello there, I cloned this project into my PC, i opened this project with Qt creator 8.0.2 but I meet the issue as image below Could you help me to resolve the project: https://www.dropbox.com/s/n96oyi5qlfuz5lq/Untitled.png?dl=0

ThuyKhanh avatar Nov 14 '22 14:11 ThuyKhanh

I think because this example was written using Qt5. Qt6 has moved OpenGL stuff into a separate module called opengl. Add it to the .pro file: QT += opengl and add lib: win32: LIBS += -lopengl32

8Observer8 avatar Nov 14 '22 14:11 8Observer8

Hello, tried 2 solutions:

  1. i added QT += opengl into underlay.pro, win32: LIBS += -lopengl32 into lib.pri 2.I added QT += quick opengl LIBS += -lopengl32 into underlay.pro But the problem has still occurred

ThuyKhanh avatar Nov 15 '22 03:11 ThuyKhanh

Maybe this example in Qt6 + QML will help you: https://doc.qt.io/qt-6/qtquick-scenegraph-openglunderqml-example.html Scroll to the very bottom of the page to download it.

8Observer8 avatar Nov 15 '22 11:11 8Observer8