Hi Peifu, It seems to me that what you encountered is more like a Qt problem than an OSG one. Qt was not able to find glu32. I guess a walkaround is to set CMAKE_LIBRARY_PATH to the path where glu32.lib is. Just search glu32 on your file system and may have to try a few times, since on Windows the path it can differ dramatically. Good luck. Best, Tianlan Shao
On Fri, Apr 18, 2014 at 9:15 AM, Liu PeiFu <[email protected]> wrote: > Hi, > I was about to compiling osg3.2 with qt5.2.1(windows 32bit, vs 2010, > opengl). When try to configure it with Cmake(GUI)2.8.12.2, there shows some > warning: > > ///////////////////////////////////////////////////////////////////////////////////// > CMake Warning at C:/Program Files (x86)/CMake > 2.8/share/cmake-2.8/Modules/FindQt4.cmake:659 (message): > C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/bin/qmake.exe reported > QT_INSTALL_LIBS > as "C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib" but QtCore could not be > found > there. Qt is NOT installed correctly for the target build environment. > Call Stack (most recent call first): > CMakeLists.txt:585 (FIND_PACKAGE) > > ///////////////////////////////////////////////////////////////////////////////////// > After searched on the Internet, I tried as the following: > (1) add a Cache Entry DESIRED_QT_VERSION and set its value to 5(STRING); > (2)set the CMAKE_PREFIX_PATH to C:\Qt\Qt5.2.1\5.2.1\msvc2010_opengl; > then I configured again and there're some errors: > > ///////////////////////////////////////////////////////////////////////////////////// > CMake Error at > C:/Qt/Qt5.2.1/5.2.1/msvc2010_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:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:52 > (_qt5gui_find_extra_libs) > > C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:152 > (include) > > C:/Qt/Qt5.2.1/5.2.1/msvc2010_opengl/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:94 > (find_package) > CMakeLists.txt:560 (FIND_PACKAGE) > > //////////////////////////////////////////////////////////////////////////////////// > ... > is there anyone could help me? The attched file is my CmakeCahe.txt. > Thank you! > > Cheers, > Liu > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=59046#59046 > > > > > Attachments: > http://forum.openscenegraph.org//files/cmakecache_174.txt > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

