Tag Archives: Windows






How to debug into Qt library in Qt Creator with CDB

OS: Windows 7 64bit SP1 (Note: need to have .Net 4 installed)

SDK: Windows SDK 7.1 x86_64 (Note: remember to have “Visual C++ Compilers” and “Debugging Tools for Windows” installed)

Qt Creator: Qt Creator 2.6.2 in qt-windows-opensource-5.0.1-msvc2010_32-x86-offline-2013-01-30-426.exe (Note: I am testing 5.0.1 daily build packages, 5.0.0 release doesn’t ship with .pdb files)

Qt Creator 2.6.2 could detect the compiler and cdb correctly from above environments after installed. What you need to do are only two things:

  1. Tools->Options->Debugger->CDB, In the Symbol paths field, open the Insert menu and select Symbol Server, just use default value and click OK
  2. Tools->Options->Debugger->General, in Source Paths Mapping part, click Add, set Source path field to q:\qt5_workdir\w\s and Target path field to C:\Qt\Qt5.0.1\5.0.1\Src

Then you can debug into Qt library in your applications.



Windows VNC Viewer connecting to Mac OS X Lion

I have a Mac Mini as a Home Theater PC, which is running Mac OS X Lion. And I also have a laptop with Window 7 Home Basic SP1.

I have tried to use Real VNC Viewer to connect to my Mac Mini before, but failed.

Today I tried again, by searching from web and found there is a solution now.

On Lion,

1. System Preferences->Users & Groups->Login Options, set “Automatic Login” to off.
2. System Preferences->Sharing, turn on “Screen Shareing” and click on “Computer Settings” button, set a password for “VNC Viewers may control screen with password:”.

On Windows,

1. Try to download “Ultra VNC Free Viewer“.

Then it will work for you. Many people said “Tight VNC Free Viewer” and “Real VNC Free Viewer” do not work well as the Ultra one.

Apple Support Communities: TightVNC (or other windows VNC viewer) connecting to OS LION

Specify a Script to Run on Startup Shutdown Logon Logoff on Windows

It’s very easy to do it on Unix/Linux, cron is a very powerful tool for it.

But how to do it on Windows?

Run->”gpedit.msc”->”Computer ConfigurationWindows Settings” for Startup/Shutdown or “User ConfigurationWindows Settings” for Logon/Logoff.

How to: Add startup and shutdown scripts in Windows – Online Training and Tutorials
Specify a Script to Run on Startup Shutdown Logon Logoff

Build Qt with OpenSSL, VC++ 2005 EE(SP1) on Windows XP

Build Qt with OpenSSL, VC++ 2005 EE(SP1) on Windows XP

1. OS, Compilers and SDK
OS: Windows XP(SP3)
Compiler: Microsoft Visual C++ 2005 Express Edition with Service Pack 1
SDK: Windows Software Development Kit (SDK) for Windows Server 2008 and .NET Framework 3.5

You need set SDK path in your compiler settings by yourself.

2. Build OpenSSL 0.9.8h
Download OpenSSL 0.9.8h Original Source Package, unpack it to C:openssl-0.9.8h.
Please read C:openssl-0.9.8hINSTALL.W32.

Open the Visual Studio 2005 Command Prompt, then

3. Build Qt with OpenSSL
Download qt-win-opensource-src-4.4.3.zip, unpack it to C:Qt4.4.3-oss.

Open the Visual Studio 2005 Command Prompt, then