[Interest] Building Qt 5.0.1 on Windows using VS2010 fails

Rainer Wiesenfarth Rainer_Wiesenfarth at trimble.com
Tue Mar 5 12:18:40 CET 2013


I configured Qt 5.0.1 with

configure.bat -release -commercial -c++11 -shared \
   -no-ltcg -nomake demos -nomake examples \
   \
   -no-accessibility \
   \
   -qt-sql-sqlite -opengl desktop \
   -qt-zlib -qt-libpng -no-libjpeg -no-openssl -no-dbus \
   -mp -confirm-license

When I try to nmake Qt, I get the errors below on linking Qt5Gui.lib.
Do I have to remove the -no-accessibility switch from configure? 
However, I built Qt 5.0.0 with the same configure options (plus -fast, 
which seems to be no longer supported).

         link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL 
/VERSION:5.01 /MANIFEST /MANIFESTFILE:..\..\lib\Qt5Gui.dll.embed.
manifest /OUT:..\..\lib\Qt5Gui.dll 
@C:\Users\rwiesen\AppData\Local\Temp\nm44DE.tmp
    Creating library ..\..\lib\Qt5Gui.lib and object ..\..\lib\Qt5Gui.exp
qguiapplication.obj : error LNK2019: unresolved external symbol "public: 
static struct QMetaObject const QAccessible::staticMetaObject" 
(?staticMetaObject at QAccessible@@2UQMetaObject@@B) referenced in function 
"public: static class QString __cdecl QAccessible::tr(char const *,char 
const *,int)" (?tr at QAccessible@@SA?AVQString@@PEBD0H at Z)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual struct QMetaObject const * __cdecl 
QAccessible::metaObject(void)const " 
(?metaObject at QAccessible@@UEBAPEBUQMetaObject@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual void * __cdecl QAccessible::qt_metacast(char const *)" 
(?qt_metacast at QAccessible@@UEAAPEAXPEBD at Z)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual int __cdecl QAccessible::qt_metacall(enum 
QMetaObject::Call,int,void * *)" 
(?qt_metacall at QAccessible@@UEAAHW4Call at QMetaObject@@HPEAPEAX at Z)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual class QWindow * __cdecl QAccessibleInterface::window(void)const 
" (?window at QAccessibleInterface@@UEBAPEAVQWindow@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual class QVector<struct QPair<class QAccessibleInterface *,class 
QFlags<enum QAccessible::RelationFlag> > > __cdecl 
QAccessibleInterface::relations(class QFlags<enum 
QAccessible::RelationFlag>)const " 
(?relations at QAccessibleInterface@@UEBA?AV?$QVector at U?$QPair at PEAVQAccessibleInterface@@V?$QFlags at W4RelationFlag@QAccessible@@@@@@@@V?$QFlags at W4RelationFlag@QAccessible@@@@@Z)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual class QAccessibleInterface * __cdecl 
QAccessibleInterface::focusChild(void)const " 
(?focusChild at QAccessibleInterface@@UEBAPEAV1 at XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual class QColor __cdecl 
QAccessibleInterface::foregroundColor(void)const " 
(?foregroundColor at QAccessibleInterface@@UEBA?AVQColor@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual class QColor __cdecl 
QAccessibleInterface::backgroundColor(void)const " 
(?backgroundColor at QAccessibleInterface@@UEBA?AVQColor@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual void __cdecl QAccessibleInterface::virtual_hook(int,void *)" 
(?virtual_hook at QAccessibleInterface@@UEAAXHPEAX at Z)
qguiapplication.obj : error LNK2001: unresolved external symbol "public: 
virtual class QAccessibleInterface * __cdecl 
QAccessibleEvent::accessibleInterface(void)const " 
(?accessibleInterface at QAccessibleEvent@@UEBAPEAVQAccessibleInterface@@XZ)
qguiapplication.obj : error LNK2019: unresolved external symbol "public: 
static void __cdecl QAccessible::updateAccessibility(class 
QAccessibleEvent *)" 
(?updateAccessibility at QAccessible@@SAXPEAVQAccessibleEvent@@@Z) 
referenced in function "public: static void __cdecl 
QAccessible::updateAccessibility(class QObject *,int,enum 
QAccessible::Event)" 
(?updateAccessibility at QAccessible@@SAXPEAVQObject@@HW4Event at 1@@Z)
..\..\lib\Qt5Gui.dll : fatal error LNK1120: 12 unresolved externals

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/geospatial/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4495 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130305/3a556537/attachment.bin>


More information about the Interest mailing list