顯示具有 Windows Programming 標籤的文章。 顯示所有文章
顯示具有 Windows Programming 標籤的文章。 顯示所有文章

星期二, 1月 26, 2010

Install Qt 4.5.3 for Windows with VS2005

Install Qt 4.5.3 for Windows with VS2005

1. get qt-win-opensource-src-4.5.3.zip from ftp or file server

2. extract zip file to c:\qt\

3. cd C:\Qt\qt-win-opensource-src-4.5.3 (check the path in your system)

4. C:\Program Files\Microsoft Visual Studio 8\VC\bin\vsvars32.bat

5. configure -platform win32-msvc2005 -no-qt3support

5.1. wait for a while

6. nmake

6.1. wait for a while

7. Add system variable "QTDIR=C:\Qt\qt-win-opensource-src-4.5.3" & "PATH=C:\Qt\qt-win-opensource-src-4.5.3\bin;%PATH%"

MySQL for Qt

1. Install MySQL with development files (%QTDIR% == C:\Qt\qt-win-opensource-src-4.5.3)
2. C:\Program Files\Microsoft Visual Studio 8\VC\bin\vsvars32.bat
3. cd %QTDIR%\src\plugins\sqldrivers\mysql
4. qmake "INCLUDEPATH+='C:\Program Files\MySQL\MySQL Server 5.1\include'" "LIBS+='C:\Program Files\MySQL\MySQL Server 5.1\lib\opt\libmysql.lib'" mysql.pro
5. nmake
6. Check result. (you will see files in %QTDIR%\plugins\sqldrivers)

星期三, 7月 09, 2008

Qt4.4.0 with Visual C++ 6.0 on Windows

Qt support compiler on Windows other than Mingw from Qt 4.3.x, but user has to compile the source by own.

My experience about compiling Qt 4.4.0 with Visual C++ 6.0 on Windows is as below.

1. Get the Qt 4.4.0 source from Trolltech
2. extrat the source pack to c:\qt4-src
3. set environment variable
PATH=%PATH%;c:\qt4\bin
QTDIR=c:\qt4
QMAKESPEC=win32-msvc
4. cd c:\qt4-src
5. copy the qt4-src/mksepc/ to qt4/mkspec
6. configure.exe -prefix c:\qt4 (see more options by using "configure -help")
7. run 'nmake' to compiling the source, wait 1hr (CPU - C2D 1.83G).
8. finally, we got what we expect.

星期一, 4月 16, 2007

Developing with VS2005 C#

設計概念:

語言(C#)
基本上以前寫了不少C的程式,所以先進入 C++,再找到 C++ vs C# 異同處。

Framework (.NET 2.0)
這部分躲不了,應該就只能透過一系列的範例程式來掌握怎麼快速利用 .NET 2.0 framework 的物件了。

以上是轉換的概念~

星期日, 4月 15, 2007

Write once, run on Mac & Windows? (C#)

I try to get into Mac OS X programing world recently. The link as below is the new oppertunity of C#.
Have a look!

English Version: Creating Mac OS X applications with MS Visual Studio Express http://mac.sillydog.org/dev/visual_studio.php

Chinese Version: http://www.iim.nctu.edu.tw/~toki/CSharpOnOSX/c%23osx.html

Maybe in the near futhure, we will see the the possibilty of "Write once, run on Mac & WIndows".
Of course, you can say Java already done this, but C# ? This is my point.

星期三, 1月 10, 2007

NMAKE : fatal error U1065: invalid option '-'

I found this message while building CE image.
Why? because of the MAKEFLAG cause nmake error.
So, clear the MAKEFLAG to resolve this problem.