Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

[Solved] Qt 5.1 OpenGL with CMake - Failed to find "glu32" in "".

$
0
0
I tried to “port” my projects from 5.0.2 (-opengl desktop) to 5.1.0 to either -opengl desktop or precompiled (x64 VS2012 OpenGL installer) from download. System Environments: x64 on Windows 8 with Visual Studio 2012, and on linux. The projects require QtGui, QtOpenGL, QtWidgets and QtCore for now and are set up with CMake. With Qt 5.0.2 i had no issue with mingw x86 and x64, msvc10 ×64 and x86 and msvc11 ×64. No issues concerning CMake in any projects. With 5.1.0 on Win8 ×64 i get the error (linux works fine): CMake Error at C:/Qt/5.1.0/5.1.0/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):   Failed to find "glu32" in "". Call Stack (most recent call first):   C:/Qt/5.1.0/5.1.0/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:50 (_qt5gui_find_extra_libs)   C:/Qt/5.1.0/5.1.0/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:127 (include)   CMakeLists.txt:21 (find_package) I strictly need desktop OpenGL since i work with OpenGL 3.2 and up. Building the qt libs myself worked fine as always, but resulted in the same CMake error. The windowsSDK (as suggested in http://qt-project.org/forums/viewthread/29014) should have nothing to do with that, since it was never required on earlier Qt versions (5.0.2). Further more, i have it on one of my machines and the solution/fix suggested does not work for me. Why should it (please provide more information if it does)? Some of the projects also require the OpenGL libs (opengl32 and glu32), that are correctly found. Either with or without this, the error occurs. find_package(OpenGL REQUIRED) ... find_package(Qt5OpenGL REQUIRED) find_package(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) ... I think that is not an issue with the projects’ cmake configurations. I’m using CMake 2.8.11.2 and 2.8.10, both versions work with Qt.5.0.2. I think the issue might be in the mentioned Qt5Gui_.cmake files. Full CMake log: The C compiler identification is MSVC 17.0.60315.1 The CXX compiler identification is MSVC 17.0.60315.1 Check for working C compiler using: Visual Studio 11 Win64 Check for working C compiler using: Visual Studio 11 Win64 -- works Detecting C compiler ABI info Detecting C compiler ABI info - done Check for working CXX compiler using: Visual Studio 11 Win64 Check for working CXX compiler using: Visual Studio 11 Win64 -- works Detecting CXX compiler ABI info Detecting CXX compiler ABI info - done CMake Error at C:/Qt/5.1.0/5.1.0/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:16 (message):   Failed to find "glu32" in "". Call Stack (most recent call first):   C:/Qt/5.1.0/5.1.0/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:50 (_qt5gui_find_extra_libs)   C:/Qt/5.1.0/5.1.0/msvc2012_64_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:127 (include)   CMakeLists.txt:21 (find_package) CMake excerpt: # Define project cmake_minimum_required(VERSION 2.6) project(moep)   set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Limited Configs" FORCE)   set(CMAKE_AUTOMOC ON) set(AUTOMOC_MOC_OPTIONS PROPERTIES FOLDER CMakeAutomocTargets)   find_package(Qt5Core REQUIRED) find_package(Qt5Gui REQUIRED) find_package(Qt5Widgets REQUIRED)   set(sources src/main.cpp ...)   add_executable(${target} ${sources}) include_directories(${CMAKE_SOURCE_DIR})   qt5_use_modules(${target} OpenGL Gui Widgets) Can someone please provide any help?

Viewing all articles
Browse latest Browse all 2113

Trending Articles