Hi,

I have built OSG with CMake3.4.1 and VS2015 on Windows 10 already, however, I 
now want to build it to use Qt so I can incorporate it into Qt projects. I 
check off the OSG_USE_QT variable in CMake (I use the GUI) and generate just 
fine. However, when I build the solution in VS2015, I get a whole bunch of 
linker errors for the Qt and Qt-related projects (I was going to post a 
pastebin link to the errors, but I can't post links here, so here are a few of 
the errors; there are ~1400 of them):

2>GraphicsWindowQt.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: __thiscall QMutex::QMutex(enum 
QMutex::RecursionMode)" (__imp_??0QMutex@@QAE@W4RecursionMode@0@@Z) referenced 
in function "public: __thiscall osgQt::GLWidget::GLWidget(class QGLFormat const 
&,class QWidget *,class QGLWidget const *,class QFlags<enum 
Qt::WindowType>,bool)" 
(??0GLWidget@osgQt@@QAE@ABVQGLFormat@@PAVQWidget@@PBVQGLWidget@@V?$QFlags@W4WindowType@Qt@@@@_N@Z)
2>GraphicsWindowQt.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: __thiscall QMutex::~QMutex(void)" 
(__imp_??1QMutex@@QAE@XZ) referenced in function 
__unwindfunclet$??0GLWidget@osgQt@@QAE@ABVQGLFormat@@PAVQWidget@@PBVQGLWidget@@V?$QFlags@W4WindowType@Qt@@@@_N@Z$1
2>GraphicsWindowQt.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: void __thiscall QMutex::lock(void)" 
(__imp_?lock@QMutex@@QAEXXZ) referenced in function "protected: void __thiscall 
osgQt::GLWidget::enqueueDeferredEvent(enum QEvent::Type,enum QEvent::Type)" 
(?enqueueDeferredEvent@GLWidget@osgQt@@IAEXW4Type@QEvent@@0@Z)
2>GraphicsWindowQt.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: __thiscall QMutexLocker::~QMutexLocker(void)" 
(__imp_??1QMutexLocker@@QAE@XZ) referenced in function "protected: void 
__thiscall osgQt::GLWidget::enqueueDeferredEvent(enum QEvent::Type,enum 
QEvent::Type)" (?enqueueDeferredEvent@GLWidget@osgQt@@IAEXW4Type@QEvent@@0@Z)
2>GraphicsWindowQt.obj : error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: __thiscall QByteArray::~QByteArray(void)" 
(__imp_??1QByteArray@@QAE@XZ) referenced in function "public: static struct 
osg::GraphicsContext::Traits * __cdecl 
osgQt::GraphicsWindowQt::createTraits(class QGLWidget const *)" 
(?createTraits@GraphicsWindowQt@osgQt@@SAPAUTraits@GraphicsContext@osg@@PBVQGLWidget@@@Z)

Any help is greatly appreciated.

Thank you!

Sam

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66043#66043





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to