the requested linker errors from commandline (yes, its german
)
moc_imagetest.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: static struct QMetaObject const QMainWindow::staticMetaObject" (?staticMetaObject@QMainWindow@@2UQMetaObject@@B)" .
qtmain.lib(qtmain_win.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""private: static struct QByteArray:: Data QByteArray::shared_null" (?shared_null@QByteArray@@0UData@1@A)" in Funktion ""public: __thiscall QByteArray::QByteArray(void)" (??0QByteArray@@QAE@XZ)".
qtmain.lib(qtmain_win.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: static enum QSysInfo::WinVersion const QSysInfo::WindowsVersion" (?WindowsVersion@QSysInfo@@2W4WinVersion@1@B)" in Funktion "_WinMain@16".
C:\imagetest\Release\imagetest.exe : fatal error LNK1120: 3 nicht aufgelöste externe Verweise.
qt is built statically with this command:
configure.exe -static -release
configure.exe -static -release
To copy to clipboard, switch view to plain text mode
and following
nmake sub-src
nmake sub-src
To copy to clipboard, switch view to plain text mode
and qmake -makefile was rerun after editing the .pro-file.
in the plugins-folder/imageformats are qjpeg.lib (300kb) and qjpeg4.lib (2kb) - it seems to be built statically...
edit: maybe that is interesting to know:
the application icon is not shown when the app is statically release-built on commandline. BUT: when i build it non-statical as release, the icon is shown and the picture can be loaded from harddisk. so: some libraries are not included obviously... but how to include them?
Bookmarks