When trying to compile this project under Win7 with Visual Studio 2010 and Qt5.2/Qt3D, I'm getting the following error:
error LNK1169: one or more multiply defined symbols found C:\OculusQt3D\oculusqt3d\build\Debug\OculusQt3D.exe 1
error LNK2005: "public: __thiscall QArray<class QVector3D,8>::~QArray<class QVector3D,8>(void)" (??1?$QArray@VQVector3D@@$07@@QAE@XZ) already defined in mdstate.obj C:\OculusQt3D\oculusqt3d\build\Qt53Dd.lib(Qt53Dd.dll)
error LNK2005: "public: __thiscall QArray<class QVector3D,8>::QArray<class QVector3D,8>(void)" (??0?$QArray@VQVector3D@@$07@@QAE@XZ) already defined in Qt53Dd.lib(Qt53Dd.dll) C:\OculusQt3D\oculusqt3d\build\MULTIBILLBOARD_LIBRARY.lib(databundle.obj)
error LNK2005: "public: int __thiscall QArray<class QVector3D,8>::size(void)const " (?size@?$QArray@VQVector3D@@$07@@QBEHXZ) already defined in mdstate.obj C:\OculusQt3D\oculusqt3d\build\Qt53Dd.lib(Qt53Dd.dll)
The mentioned files are mdstate.h / mdstate.cpp and databundle.h / databundle.cpp and qarray.h / qarray.cpp
After googling, there are quite a few possibilities where this error could originate from, but I can't get my head around this case.
Usually this is caused by including a .cpp instead of a header, accidentally including a file multiple times, missing include guards and stuff like that, which is not the case here.
So, does someone know what's the problem here?