<div dir="ltr">Found the error. If QT_QPA_PLATFORM_PLUGIN_PATH is set (even if it is set to the correct path qtbase\plugins\platforms), Qt crashes while trying to locate the platform plugin.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/12/12 Andreas Hackelöer <span dir="ltr"><<a href="mailto:ahackeloeer@gmail.com" target="_blank">ahackeloeer@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><p>Hi,</p>

        <p>I followed these steps to create a 64-bit build of Qt 5.2 using 
Visual Studio 2013 (everything done from the Visual Studio 2013 ×64 
Command Prompt):</p>

        <p>- I cloned the git repository: git clone git://<a href="http://gitorious.org/qt/qt5.git" target="_blank">gitorious.org/qt/qt5.git</a> <qt-install-dir></p>

        <p>- I ran the init-repository script: perl ./init-repository —no-webkit</p>

        <p>- I configured the build environment as follows:</p>

        <p>configure -debug-and-release -mp -opensource -platform win32-msvc2013 -nomake examples -nomake tests -developer-build</p>

        <p>- I started the build process: <em>nmake</em></p>

        <p>The following environment variables are set:<br>
<span>PATH</span>=..;<qt-install-dir>\qtbase\bin<br>
<span>QTDIR</span>=<qt-install-dir>\qtbase<br>
QT_QPA_PLATFORM_PLUGIN_PATH=<qt-install-dir>\qtbase\plugins\platforms</p>

        <p>The build compiles without errors, and I am able to build and run my
 own C++ application using this Qt build. However, some of the <span>EXE</span>s
 in the qtbase\bin folder do not work, e.g. assistant.exe, designer.exe 
or linguist.exe. For instance, if I try to run designer.exe, I get an 
immediate crash in memcpy() within a call to msvcr120.dll, which is the 
Microsoft Visual C++ 12 Runtime Library shipped with Visual Studio 2013.</p>

        <p>I know that changes have been introduced in memory alignment between
 VS 2010 and VS 2012 (and possibly also from VS2012 to VS2013) which can
 lead to this sort of crashes when builds of different VS platform 
toolsets are linked together. However, I built Qt using a single 
platform toolset (win32-msvc2013). Does anyone know how to solve this 
problem? I should add that everything works fine if I build Qt using 
VS2010 (which employs a different version of the <span>MSVC</span> Runtime), so this might be caused by some sort of incompatibility between Qt and the <span>MSVC</span> 12 Runtime.</p>

        <p>Best regards,<br>
Andi</p></div>
</blockquote></div><br></div>