PDA

View Full Version : Migration to QT 5



pl01
26th April 2013, 13:59
Hi,

I'm trying to migrate my soft from QT 4.7 to QT 5.0.2.

I have build QT for Windows 64 with MSVC 2010 and everything looks correct, but.... when I compile my soft I got a lot of "link" errors.
Does someone have an idea ?

Error 41 error LNK2001: unresolved external symbol "__declspec(dllimport) protected: static struct QVariant::Handler const * const QVariant::handler" (__imp_?handler@QVariant@@1PEBUHandler@1@EB) c:\MyApp\QSceneNavigator.obj MyApp
Error 37 error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl QBasicAtomicInt::deref(void)" (__imp_?deref@QBasicAtomicInt@@QEAA_NXZ) c:\MyApp\SceneChangedVisitor_Navigator.obj MyApp
Error 38 error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl QBasicAtomicInt::deref(void)" (__imp_?deref@QBasicAtomicInt@@QEAA_NXZ) c:\MyApp\ImageView.obj MyApp
Error 40 error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __cdecl QBasicAtomicInt::operator!=(int)const " (__imp_??9QBasicAtomicInt@@QEBA_NH@Z) c:\MyApp\SceneChangedVisitor_Navigator.obj MyApp
Error 33 error LNK2001: unresolved external symbol "__declspec(dllimport) public: class QPoint const & __cdecl QDropEvent::pos(void)const " (__imp_?pos@QDropEvent@@QEBAAEBVQPoint@@XZ) c:\MyApp\ImagesViewWidget.obj MyApp
Error 44 error LNK2001: unresolved external symbol "__declspec(dllimport) public: static struct QListData::Data QListData::shared_null" (__imp_?shared_null@QListData@@2UData@1@A) c:\MyApp\SceneChangedVisitor_Navigator.obj MyApp
Error 35 error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl QDataStream::~QDataStream(void)" (__imp_??1QDataStream@@UEAA@XZ) c:\MyApp\ImagesViewWidget.obj MyApp
Error 10 error LNK2001: unresolved external symbol "protected: virtual bool __cdecl QWidget::winEvent(struct tagMSG *,long *)" (?winEvent@QWidget@@MEAA_NPEAUtagMSG@@PEAJ@Z) c:\MyApp\QSceneNavigator.obj MyApp
Error 11 error LNK2001: unresolved external symbol "protected: virtual bool __cdecl QWidget::winEvent(struct tagMSG *,long *)" (?winEvent@QWidget@@MEAA_NPEAUtagMSG@@PEAJ@Z) c:\MyApp\ImagesViewWidget.obj MyApp
Error 4 error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::connectNotify(char const *)" (?connectNotify@QObject@@MEAAXPEBD@Z) c:\MyApp\QSceneNavigator.obj MyApp

ChrisW67
26th April 2013, 21:28
Have you started from a completely clean slate?
Did you add "widgets" to QT in your pro file?
Have you rerun qmake?

pl01
29th April 2013, 12:23
I have finally fix all my problems ;-)

Thx