简体   繁体   English

如何用Qt5编译QwtPlot3d?

[英]How to compile QwtPlot3d with Qt5?

Qt5 is released and the new Qt5.0.2 has MSVC2012 x64 version. Qt5已发布,新的Qt5.0.2具有MSVC2012 x64版本。 Want to use QwtPlot3d with Qt5. 想要将QwtPlot3d与Qt5一起使用。 In copilation, error of redefinition of GLdouble appears. 在编译中,出现GLdouble重新定义错误。 Don't know the reason and how to fix it. 不知道原因以及如何解决。 Thanks. 谢谢。

It seems this is an OpenGL desktop vs OpenGL ES 2 issue. 看来这是OpenGL桌面与OpenGL ES 2的问题。 The Qt5 pre-compiled packages are built against ANGLE which provides OpenGL ES 2. Check QT downloads page if there is proper version(OPENGL 32bit) for you. Qt5预编译软件包是针对提供OpenGL ES 2的ANGLE构建的。请查看QT下载页面,了解是否有适合您的版本(OPENGL 32位)。

If you want to use desktop OpenGL on windows with Qt 5, you have to rebuild Qt yourself passing in -opengl desktop to the configure.bat script. 如果要在带有Qt 5的Windows上使用桌面OpenGL,则必须自己重建Qt,并将-opengl桌面传递给configure.bat脚本。

当然,现在不再需要自己重新编译QT,因为它们现在还为opengl-desktop提供了预构建的安装程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM