Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE ""



  • Hi there,

    I'm configuring the Stellarium source code to build with visual studio 2012 and the Qt Library
    I've installed CMake 2.8.12 and Qt 5.2.1
    I have Windows 8.1 x64

    When I press the Configure button in CMake I get this error

    @
    The C compiler identification is MSVC 18.0.21005.1
    The CXX compiler identification is MSVC 18.0.21005.1
    Check for working C compiler using: Visual Studio 12
    Check for working C compiler using: Visual Studio 12 -- works
    Detecting C compiler ABI info
    Detecting C compiler ABI info - done
    Check for working CXX compiler using: Visual Studio 12
    Check for working CXX compiler using: Visual Studio 12 -- works
    Detecting CXX compiler ABI info
    Detecting CXX compiler ABI info - done
    Found Qt5: C:/Qt5/5.2.1/msvc2012_64_opengl/bin/qmake.exe (found suitable version "5.2.1", required is "5.1.0")
    CMake Error at C:/Qt5/5.2.1/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):
    Failed to find "glu32" in "" with CMAKE_CXX_LIBRARY_ARCHITECTURE "".
    Call Stack (most recent call first):
    C:/Qt5/5.2.1/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:52 (_qt5gui_find_extra_libs)
    C:/Qt5/5.2.1/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:152 (include)
    C:/Qt5/5.2.1/msvc2012_64_opengl/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:94 (find_package)
    C:/Qt5/5.2.1/msvc2012_64_opengl/lib/cmake/Qt5Declarative/Qt5DeclarativeConfig.cmake:94 (find_package)
    CMakeLists.txt:221 (FIND_PACKAGE)

    Configuring incomplete, errors occurred!
    @

    This is the line 221 in the CMakeLists.txt
    @
    FIND_PACKAGE(Qt5Declarative REQUIRED)
    @

    Can someone help me to fix this issue?

    Thanks in advance.



  • OK I've just solved the issue by adding

    @
    set(CMAKE_LIBRARY_PATH "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64")
    @

    in Qt5GuiConfigExtras.cmake

    But now Visual Studio can't find the header files related to qt. How can I fix this other issue?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.