Qt Windows

Qt application crash when compiled for 64-bit VS2010

Callstack The bug is probably caused by wrong alignment or incorrect VS2010 compiler optimalization. Found resources: https://bugreports.qt.nokia.com//browse/QTBUG-11445 https://connect.microsoft.com/VisualStudio/feedback/details/573262/incorrect-alignment-with-x64-optimizer-and-movaps http://support.microsoft.com/kb/2280741 https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=31433 Workarounds: First way – Update VS2010 mkspec for Qt go to $QTDIR/mkspecs/win32-msvc2010/qmake.conf and replace -02 with -01 (ie. reducing the optimzation level).Also /Ob0 could be used. Microsoft hotfix for VS http://archive.msdn.microsoft.com/KB2280741 File patch name VS10-KB2268081-x86.exe …

Continue Reading
Programming Qt Windows

Problem with Qt compilation under Windows 64-bit

This short post will show you how to resolve following error during Qt compilation on 64-bit windows: This error is caused by bug in QMAKE_HOST variable used in WebCore.pro file. This variable is tested to determine destination platform (x86 or x64). This variable contains x86 value also on 64-bit builds instead of x86_64 value. This …

Continue Reading