Windows

Cmder, Cygwin and other

Console emulator for windows – CMDER Cygwin installation package – CYGWIN Integrate Cygwin to CMDER How to add additional packages to cygwin (apt-cyg….) apt-cyg installation (lynx required from Cygwin package)

Continue Reading
Programming Uncategorized

Code signing certificate for windows

We encounter several problems when we tried to deploy our new version of ORM Designer – Skipper to our new web site skipper18.com. Although new Skipper installer is very simmilar to ORM Designer installer, when downloading this exe-file from the new site  we are getting this error:   The problem is somewhere in chrome/IE when …

Continue Reading
Programming Windows

Slow execution of application from Visual studio

Today my Visual Studio 2010 started to execute my application super slowly. When I tried to execute my application (without any changes in source-code) the delay between “Start Debugging” and application start was about one minute. I know that too many breakpoints or breakpoints in templates could caused this, but I don’t see any breakpoint …

Continue Reading
Programming Qt Windows

GetTickCount64 problem on WindowsXP

Today we received report from one of our customers about problem with our ORM Designer on WindowsXP – 32bit. Our latest version returns following error: The procedure entry point GetTickCount64 could not be located in the dynamic link library KERNEL32.dll The problem is that GetTickCount64 doesn’t exists in XP system. Solution: It’s necessary to compile your application …

Continue Reading
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
Linux Programming Windows

MinGW and compilation 32/64bit libraries

Install MinGW-64 1) Download MinGW 64-bit and 32-bit 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 2) Download MSYS compatible with 64-bit MinGW http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20(Win64%20hosted)/MSYS%20(32-bit)/ 3) Extract MinGW32, mingw64 and MSYS to one folder MinGW-32, MinGW-64 and MSYS to folder MinGW64 (Bin folder from MinGW will be …

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
Linux Windows

Mount error(12): Cannot allocate memory

Problem When mounting some windows samba drives, “mount error(12)” error can occurred. Problem is in windows samba server settings. Full linux error message: and error message in windows event log: Solution Update following registry: After you update these values, restart your computer. More about this issue: http://alan.lamielle.net

Continue Reading
Linux MinGW Programming

g++ template method problem

Quick post about problem which I already solved, but think that could be handy for someone else. I have following code: When compiling under Visual studio, everything is ok. But when try the same code snippet under g++, have following error: This is because compiler doesn’t known FindByType method, because T2 is templated argument. The …

Continue Reading