Changes between Version 5 and Version 6 of FAQ_compilation


Ignore:
Timestamp:
Nov 13, 2013, 11:34:56 AM (11 years ago)
Author:
Marek Kurdej
Comment:

CMake error when no WINSDK_LIB is set

Legend:

Unmodified
Added
Removed
Modified
  • FAQ_compilation

    v5 v6  
    22
    33= FAQ ^([#fnfaq 1])^ -- common compilation errors =
     4
     5== CMake ==
     6
     7=== [Windows] [Qt5] Qt5 needs OpenGL ===
     8
     9==== Error message ====
     10{{{
     11CMake 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 "".
     13Call 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
     23As 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{{{
     26c:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86
     27}}}
     28
     29If you do not have Windows SDK installed, look at its [http://www.microsoft.com/en-us/download/details.aspx?id=3138 download page].
    430
    531== MSVC ==