Hi, I am trying to build OSG with QT. I think I have put the right directory/libraries for Cmake, though I have a doubt as I have this first error after Configure with Cmake:
=============================== CMake Warning (dev) at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPNG.cmake:34 (find_package): File C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPNG.cmake includes C:/OpenSceneGraph-3.0.1/Openscenegraph/CMakeModules/FindZLIB.cmake (found via CMAKE_MODULE_PATH) which shadows C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindZLIB.cmake. This may cause errors later on . Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): CMakeLists.txt:535 (FIND_PACKAGE) This warning is for project developers. Use -Wno-dev to suppress it. ===================================== As I have Configuring done in Cmake, I generate with Visual C++ 2010, x86. Everything is Okay except for QT: I have 2 errors and can't build osgQT ===================================== 38> Creating library C:/OpenSceneGraph-3.0.1/build/VC10/x86/lib/osgQtd.lib and object C:/OpenSceneGraph-3.0.1/build/VC10/x86/lib/osgQtd.exp 38>GraphicsWindowQt.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QCursor & __thiscall QCursor::operator=(class QCursor &&)" (__imp_??4QCursor@@QAEAAV0@$$QAV0@@Z) referenced in function "public: virtual void __thiscall osgQt::GraphicsWindowQt::setCursor(enum osgViewer::GraphicsWindow::MouseCursor)" (?setCursor@GraphicsWindowQt@osgQt@@UAEXW4MouseCursor@GraphicsWindow@osgViewer@@@Z) 38>QGraphicsViewAdapter.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QImage & __thiscall QImage::operator=(class QImage &&)" (__imp_??4QImage@@QAEAAV0@$$QAV0@@Z) referenced in function "public: __thiscall osgQt::QGraphicsViewAdapter::QGraphicsViewAdapter(class osg::Image *,class QWidget *)" (??0QGraphicsViewAdapter@osgQt@@QAE@PAVImage@osg@@PAVQWidget@@@Z) 38>C:\OpenSceneGraph-3.0.1\build\VC10\x86\bin\osg80-osgQtd.dll : fatal error LNK1120: 2 unresolved externals ===== Could someone help me on these errors, please ? Thank you! Cheers, Maia[/list] ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=57695#57695 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org