Linking glut to Qt

后端 未结 1 550
无人共我
无人共我 2021-01-22 06:23

I want to combine OpenGL with glut to Qt. I\'m using Windows. My version of Qt is 4.7.4, 32 bit.

I followed the tutorial:

http://www.youtube.com/watch?v=1nzHSkY4

1条回答
  •  粉色の甜心
    2021-01-22 06:46

    MinGW:

    Copy glut.h to %dir%\MinGW\include\GL

    Copy glut32.lib to %dir%\MinGW\lib

    Copy glut32.dll to C:\windows\system32

    Add %dir%\MinGW\bin to the system's environmental variables.

    Visual Studio:

    Navigate to

    %dir% \Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\

    Place the .h files in ...\include\GL

    Place the .lib files in ...\lib

    Restart Visual Studio.

    0 讨论(0)
提交回复
热议问题