Results 1 to 3 of 3

Thread: Migration to QT 5

  1. #1
    Join Date
    Oct 2010
    Posts
    95
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Migration to QT 5

    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:perator!=(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:os(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:ata 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
    Last edited by pl01; 26th April 2013 at 17:51.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,677
    Thanks
    13
    Thanked 1,596 Times in 1,524 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Migration to QT 5

    Have you started from a completely clean slate?
    Did you add "widgets" to QT in your pro file?
    Have you rerun qmake?

  3. #3
    Join Date
    Oct 2010
    Posts
    95
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Migration to QT 5

    I have finally fix all my problems ;-)

    Thx

Similar Threads

  1. Windows to Mac Migration
    By davidpiedra in forum Qt Programming
    Replies: 0
    Last Post: 11th November 2010, 17:01
  2. Qt4 migration
    By grsandeep85 in forum Qt Programming
    Replies: 1
    Last Post: 20th August 2009, 08:31
  3. Migration from Qt3 to Qt4
    By mourad in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2008, 20:10
  4. Qt MFC Migration Toolkit
    By average in forum Qt Programming
    Replies: 0
    Last Post: 4th April 2007, 18:06
  5. Motif to Qt migration
    By boss_bhat in forum General Discussion
    Replies: 1
    Last Post: 8th June 2006, 15:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.