PDA

View Full Version : Building Qt 4.8.3 - cross-compile using MSVC 2010 x64 tools



oleg_stepanenko@bk.ru
4th December 2012, 09:08
Hi there!

I'm trying to build Qt 4.8.3 64 bit on Windows 7 x32 using MSVC 2010 x64 tools. But when I'm executing nmake, I get such an error:



bootstrap.lib(qfilesystemiterator_win.obj) : error LNK2019: unresolved external
symbol __imp_FindFirstFileExW referenced in function "public: bool __cdecl QFile
SystemIterator::advance(class QFileSystemEntry &,class QFileSystemMetaData &)" (
?advance@QFileSystemIterator@@QEAA_NAEAVQFileSyste mEntry@@AEAVQFileSystemMetaDat
a@@@Z)
..\..\..\bin\moc.exe : fatal error LNK1120: 119 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\x86_amd64\link.EXE"' : return code '0x460'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '""C:\Program' : return code '0x2'
Stop.


Once I’ve sucessfully built 4.8.0 following these instructions: http://qt-project.org/faq/answer/how_can_i_build_64_bit_qt_on_a_32_bit_system
I tried to apply them to 4.8.3, but I also get an error:


link /LIBPATH:"c:\Qt\4.8.3\build-static-x64\lib" /LIBPATH:"c:\Qt\4.8.3\b
uild-static-x64\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /SUBSYSTEM:C
ONSOLE "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls
' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArch
itecture='*'" /MANIFEST /MANIFESTFILE:"tmp\obj\release_static\uic3.intermediate.
manifest" /OUT:..\..\..\bin\uic3.exe @C:\Users\olegst\AppData\Local\Temp\nm85C9.
tmp