学习QT场景视图,对一个Boxes的例子比较感兴趣,于是去编译学习,结果编译不能通过(使用的是QT5.12):
Project ERROR: This example requires Qt to be configured with -opengl desktop
我尝试在*.pro文件中加入 -opengl desktop,不管用!
在知乎上查到:
“-opengl desktop”只是一个configure的选项,编译Qt库时设置的。
或者你说像5.4预编译的qt-opensource-windows-x86-msvc2013_opengl-5.4.2.exe?5.5中默认使用了“-opengl dynamic”了。
看来只能重新编译一遍QT的源代码来获得了~