| 4 | |
| 5 | == CMake == |
| 6 | |
| 7 | === [Windows] [Qt5] Qt5 needs OpenGL === |
| 8 | |
| 9 | ==== Error message ==== |
| 10 | {{{ |
| 11 | CMake Error at C:/Qt/Qt5.1.0/5.1.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message): |
| 12 | Failed to find "glu32" in "". |
| 13 | Call Stack (most recent call first): |
| 14 | C:/Qt/Qt5.1.0/5.1.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:50 (_qt5gui_find_extra_libs) |
| 15 | C:/Qt/Qt5.1.0/5.1.0/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:127 (include) |
| 16 | C:/Qt/Qt5.1.0/5.1.0/msvc2010_opengl/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:83 (find_package) |
| 17 | cmake/PacpusDependencies.cmake:35 (find_package) |
| 18 | CMakeLists.txt:51 (include) |
| 19 | }}} |
| 20 | |
| 21 | ==== Solution ==== |
| 22 | |
| 23 | As described [https://qt-project.org/forums/viewthread/29014 here], you should tell CMake the path to Windows SDK libraries. |
| 24 | [http://support.microsoft.com/kb/310519 Add environment variable] ```WINSDK_LIB``` and set it to the path containing ```GlU32.Lib```, e.g.: |
| 25 | {{{ |
| 26 | c:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86 |
| 27 | }}} |
| 28 | |
| 29 | If you do not have Windows SDK installed, look at its [http://www.microsoft.com/en-us/download/details.aspx?id=3138 download page]. |