1. Uncompress the Qt zip file to the dictionary what you want to install Qt into. My dictionary is "C:\Qt-embedded-wince\4.4.3".
2. Open "Visual Studio 2008 Command Prompt" but not "Qt 4.4.3 Command Prompt", this is very important.
3. Modify the environment variable PATH. This is done by adding "C:\Qt-embedded-wince\4.4.3" (or your own dictionary path) to PATH.
4. Configuring Qt
cd C:\Qt-embedded-wince\4.4.1
configure -platform win32-msvc2008 -xplatform wincewm50pocket-msvc2008
These steps are the same as the official article besides the bold parameters.
5. Building Qt
setcepaths wincewm50pocket-msvc2008
nmake
6. 下qmake -tp vc,會產生.vcproj or .sln
之後可以利用vc build
2008年12月24日 星期三
2008年12月19日 星期五
用VS 2005連上WinCE 5.0 Emulator
最近想利用vs開發wince專案,發現沒辦法直接按Debug,
就將程式load到emulator上去,
google一下才發現vs與wince emulator似乎沒有整合好,
解決方案如下
方案一
1) 先安裝wince 5.0 emulator
2) 安裝完後,建立一個捷徑,並將"捷徑"->"目標"改成"
C:\Program Files\Windows CE 5.0 Emulator\Emulator_500.exe" nk.cem /video 320x240x16 /sharedfolder "C:/CE50fdshar" /ethernet virtualswitch
(其中320x240x16可以改成需要的大小)
3) 建立資料夾 C:/CE50fdshar
4) 將VS開發完成的執行檔,丟到資料夾底下就可以了 (記得平台要改成x86)
5) 程式會置於emulator當中的 "My device"->"strorage card"裡面
6) 如果用.net開發的話,還要去將
C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500\x86\NETCFv2.wce5.x86.cab
這個檔案,copy到模擬器當中,先執行,完成之後再soft reset
方案二 (還沒試)
- Get Platform Builder 5.0
- download and install the DeviceEmulator BSP
- Build an OS Design: choose 'DeviceEmulator as target platform
- Roll an SDK for the created OS design
- Install SDK
參考連結
http://www.cookbus.com/show-43-1.html
http://www.dotblogs.com.tw/kzn/archive/2008/10/28/5807.aspx
就將程式load到emulator上去,
google一下才發現vs與wince emulator似乎沒有整合好,
解決方案如下
方案一
1) 先安裝wince 5.0 emulator
2) 安裝完後,建立一個捷徑,並將"捷徑"->"目標"改成"
C:\Program Files\Windows CE 5.0 Emulator\Emulator_500.exe" nk.cem /video 320x240x16 /sharedfolder "C:/CE50fdshar" /ethernet virtualswitch
(其中320x240x16可以改成需要的大小)
3) 建立資料夾 C:/CE50fdshar
4) 將VS開發完成的執行檔,丟到資料夾底下就可以了 (記得平台要改成x86)
5) 程式會置於emulator當中的 "My device"->"strorage card"裡面
6) 如果用.net開發的話,還要去將
C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\wce500\x86\NETCFv2.wce5.x86.cab
這個檔案,copy到模擬器當中,先執行,完成之後再soft reset
方案二 (還沒試)
- Get Platform Builder 5.0
- download and install the DeviceEmulator BSP
- Build an OS Design: choose 'DeviceEmulator as target platform
- Roll an SDK for the created OS design
- Install SDK
參考連結
http://www.cookbus.com/show-43-1.html
http://www.dotblogs.com.tw/kzn/archive/2008/10/28/5807.aspx
訂閱:
文章 (Atom)
winsock2.h redefined問題
解法: #define _WINSOCKAPI_ // stops windows.h including winsock.h #include #include
-
昨天要回新竹的路上,差點A到一臺摩托車, 可以清楚看到路口是綠燈,可是這位老兄,竟然從左方過來要待轉, 旁邊的女騎士也差點A到他,尖叫了一聲... 緊急煞車的同時,第一次感受到ABS做動,還好平安無事... 奉勸大家車子一定要裝行車記錄器阿~
-
對了,要跟大家推薦一下新竹的家具行, 當初要添購家具的時候,跟小丸子很努力的找遍新竹的家具行, 新竹市的家具行其實很多,大部分集中在新竹市的經國路, 還有中華路五段這兩個部分,竹北也有不少家具行, 不過我們主要還是找新竹市的, 找來找去,發現其實家具很多都是一模一樣的,應該都...
-
前陣子收到大潤發寄來的DM,有一份全部都是在賣機車的, 現在的機車真的是滿貴的,但也發現一台檔車超帥的, 跟了我10幾年的YAMAHA風光雖然還不至於要報廢的階段, 但還是忍不住想完成年輕時的夢想, 所以,也就有了這篇文章, 在買檔車之前,也survey了幾台國產的...