我想在QT Creator中创建一个跨平台的OpenGL Qt项目。我将这个存储库克隆到我的Mac,并能够构建和编译。它在黑色背景上呈现了一个彩虹三角形。在QT Creator中使用QOpenGLContext无法识别OpenGL函数
我试着在Windows上构建,但得到了下列编译器错误;
undefined reference to '[email protected]'
undefined reference to '[email protected]'
undefined reference to '[email protected]'
undefined reference to '[email protected]'
undefined reference to '[email protected]'
In function 'ZN15BasicUsageScene6renderEV:
undefined reference to '[email protected]'
undefined reference to '[email protected]'
...等等。
构建项目我需要做些什么?我在Windows 8.1 64位上。我的项目使用MinGW_32bit-Debug进行制作。
或者,如果有一个很好的方法来构建一个跨平台的QT Creator OpenGL项目,那么我就会全神贯注。我花了至少十几个小时试图在我的项目文件夹中导入GLEW库,无济于事(我的项目导入GLEW库实际上抛出了完全相同的错误)。但我认为使用QT的内置OpenGL功能将是最好的方法