%windir%\SysWoW64\cmd.exe
Refs:
http://www.tipandtrick.net/2008/how-to-open-and-run-32-bit-command-prompt-in-64-bit-x64-windows/
Notes and comments from ORM Designer development
%windir%\SysWoW64\cmd.exe
Refs:
http://www.tipandtrick.net/2008/how-to-open-and-run-32-bit-command-prompt-in-64-bit-x64-windows/
Callstack
> QtGui4.dll!00000000652f071f() [Frames below may be incorrect and/or missing, no symbols loaded for QtGui4.dll] QtGui4.dll!00000000652f07ae() QtGui4.dll!0000000065326821() QtGui4.dll!0000000065327f30() QtGui4.dll!00000000653284ba() QtGui4.dll!000000006532a5f5() QtGui4.dll!00000000652f4792() QtGui4.dll!000000006532f701() QtGui4.dll!000000006535be71() QtCore4.dll!0000000059a0ab9f() QtGui4.dll!0000000065306eb9() QtCore4.dll!00000000599f7903() QtGui4.dll!0000000064eaffa2() QtGui4.dll!0000000064eb2e56() QtCore4.dll!00000000599f7792() QtGui4.dll!0000000064eec2a3() QtGui4.dll!0000000064eee85e() QtGui4.dll!0000000064eec265() QtGui4.dll!0000000064eee85e() QtGui4.dll!0000000064eec265() QtGui4.dll!0000000064eee85e() QtGui4.dll!0000000064efa870() QtGui4.dll!0000000065208727() QtGui4.dll!000000006527a082() QtGui4.dll!0000000064eaffb6() QtGui4.dll!0000000064eb2e56() QtCore4.dll!00000000599f7792() QtGui4.dll!0000000064ef264c() QtGui4.dll!0000000064ef26c7() QtGui4.dll!0000000064ef26c7() QtGui4.dll!0000000064ef26c7() QtGui4.dll!0000000064efe30c() OrmDesigner2.exe!000000013f95a2cf() OrmDesigner2.exe!000000013f95dce2() kernel32.dll!000000007794652d() ntdll.dll!0000000077c8c521()
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
go to $QTDIR/mkspecs/win32-msvc2010/qmake.conf and replace -02 with -01 (ie. reducing the optimzation level).Also /Ob0 could be used.
http://archive.msdn.microsoft.com/KB2280741
File patch name VS10-KB2268081-x86.exe
Service pack could also contains required fix.
http://www.microsoft.com/download/en/details.aspx?id=23691
More information in this post
http://channel9.msdn.com/Blogs/coolstuff/Tip-Auto-Login-Your-Windows-7-User-Account
When you have more than one email for each user in your exchange 2010, it’s necessary to configure Exchange to support it.
How is steps necessary to do that:
1) Create shared Mailbox.
The simpliest way is use Exchange management shell(EMS) and execute following command:
New-Mailbox -Name:'[email protected]' -UserPrincipalName:'[email protected]' -Shared
2) Assign permissions
As next thing you have to assign permissions for users which will use this mailbox for sending emails.
Add-ADPermission "[email protected]" -User "UserWhoWillUseThisAccount" -Extendedrights "Send As"
3) Use it
Check “From” button in “Options” tab and enter shared address to “From” field in the mail header.
Note:
When mails will be forwarded back with error about “not enought permissions”, simply remove exchange account from outlook and add it back again. This solution resolve my problem after 6 hours of debugging ;-(
Usefull web links:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/
– Toolchains targetting Win64 / Toolchains targetting Win32
– Automated Builds
– mingw-w64-1.0-bin_i686-mingw_*.zip
– mingw-w32-1.0-bin_i686-mingw_*.zip
MinGW-32, MinGW-64 and MSYS to folder MinGW64 (Bin folder from MinGW will be merged with bin folder from MSYS, etc.)
External links:
This short post will show you how to resolve following error during Qt compilation on 64-bit windows:
Creating library ..\..\..\..\lib\QtWebKitd4.lib and object ..\..\..\..\lib\Qt WebKitd4.exp PluginViewWin.obj : error LNK2019: unresolved external symbol _HBeginPaint refer enced in function "private: static struct HDC__ * __cdecl WebCore::PluginView::h ookedBeginPaint(struct HWND__ *,struct tagPAINTSTRUCT *)" (?hookedBeginPaint@Plu ginView@WebCore@@CAPEAUHDC__@@PEAUHWND__@@PEAUtagP AINTSTRUCT@@@Z) PluginViewWin.obj : error LNK2019: unresolved external symbol _HEndPaint referen ced in function "private: static int __cdecl WebCore::PluginView::hookedEndPaint (struct HWND__ *,struct tagPAINTSTRUCT const *)" (?hookedEndPaint@PluginView@Web Core@@CAHPEAUHWND__@@PEBUtagPAINTSTRUCT@@@Z) ..\..\..\..\lib\QtWebKitd4.dll : fatal error LNK1120: 2 unresolved externals NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\x86_amd64\link.EXE"' : return code '0x460' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\nmake.exe"' : return code '0x2'
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 value is tested on the following line in a WebCore.pro file:
win32:!win32-g++*:contains(QMAKE_HOST.arch, x86_64):{
If you want to fix this error, simply replace QMAKE_HOST by QMAKE_TARGET variable. Updated line should look like this:
win32:!win32-g++*:contains(QMAKE_TARGET.arch, x86_64):{
After this update all required asm defines are correctly included and build of WebKit will be successful.
In newer versions of Qt there is already applied fix the error with QMAKE_HOST / QMAKE_TARGET, but also there is a new problem ;-(.
The Problem is in the following “if” definition:
if(win32-msvc2005|win32-msvc2008):equals(TEMPLATE_PREFIX, "vc") { SOURCES += \ plugins/win/PaintHooks.asm }
When you compile your project for MSVC 2010, .asm file isn’t included. It’s necessary to add win32-msvc2010 to this definition. So updated WebCore.pro for Qt 4.8 will look like this:
if(win32-msvc2005|win32-msvc2008|win32-msvc2010):equals(TEMPLATE_PREFIX, "vc") { SOURCES += \ plugins/win/PaintHooks.asm }
Next problem which I found during compilation is wrongly set QMAKE_TARGET.arg. For unspecified reason, when I compile 64bit library in 64bit system in 64bit VS command line, this variable has value x86 instead of x86_64.
The problem is in the qmake project.cpp file. QMAKE trying to determine 64/32 bit version based on the %PATH% configuration. Qmake search for VS-PATH\bin\amd64 of \bin\x86_amd64 string. Unfortunately there is a bug in concating searched string. This is how looks original project.cpp file at line 3177:
QString vcBin64 = qgetenv("VCINSTALLDIR").append("\\bin\\amd64"); QString vcBinX86_64 = qgetenv("VCINSTALLDIR").append("\\bin\\x86_amd64");
The problem is, that VCINSTALLDIR contains \ at the end of the string, and then we append \ again. So, result is:
QString vcBin64 = qgetenv("VCINSTALLDIR"); if ( vcBin64.at( vcBin64.size()-1 ) != '\\' ) vcBin64.append("\\"); vcBin64.append("bin\\amd64"); QString vcBinX86_64 = qgetenv("VCINSTALLDIR"); if ( vcBinX86_64.at( vcBinX86_64.size()-1 ) != '\\' ) vcBinX86_64.append("\\"); vcBinX86_64.append("bin\\x86_amd64");
Now, QMake correctly determine 32/64 bit compilation and then correctly include PaintHooks.asm and your Qt WebCore will be sucesfully compiled.
When mounting some windows samba drives, “mount error(12)” error can occurred. Problem is in windows samba server settings. Full linux error message:
mount error(12): Cannot allocate memory Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
and error message in windows event log:
Source: srv Event ID: 2017 Level: Error The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations.
Update following registry:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache = 1 HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size = 3
After you update these values, restart your computer.