LiangliangNan / Easy3D

A lightweight, easy-to-use, and efficient C++ library for processing and rendering 3D data
GNU General Public License v3.0
1.35k stars 243 forks source link

[BUG] - cannot start the program on windows #158

Closed happyfox-dot closed 1 year ago

happyfox-dot commented 1 year ago

Describe the bug A clear and concise description of what the bug is. when I start this program , image there are all infomations:

Failed to make context current.
Failed to make context current.
QOpenGLWidget: Failed to make context current
Failed to make context current.
QOpenGLWidget: Failed to make context current
Failed to make context current.
QOpenGLWidget: Failed to make context current
Failed to make context current.
QOpenGLWidget: Failed to make context current
Failed to make context current.
Failed to make context current.
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
Failed to make context current.
QOpenGLWidget: Failed to make context current
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
qt.qpa.backingstore: composeAndFlush: makeCurrent() failed
Failed to make context current.
QOpenGLWidget: Failed to make context current

Tell us how to reproduce the bug Is it a compile time error or runtime issue?

Development/Running environment:

Additional context Add any other context about the problem here.

LiangliangNan commented 1 year ago

The error is due to that the selected GPU doesn't (or there is no such a GPU that) support OpenGL 3.2+.

I assume you didn't run it through remote desktop. So I guess your laptop has two GPUs, but the integrated one was selected by default. Please try to use the discrete GPU (e.g., NVidia GPU: go to Nvidia Control Panel > Manage 3D settings > select preferred graphics processor).

happyfox-dot commented 1 year ago

It's working normally now, thank you very much for your help. Wish you smooth work! :)