Build Qt with S60 5.0 Public SDK(2nd version)

Build Qt with S60 5.0 Public SDK(2nd version)

Platform: Windows XP with SP3(now we only support Qt/S60 on it.)

1. SYMBIAN Development Environment

For downloading the packages, you need to register an account in the forum of Nokia,
http://www.forum.nokia.com/main/registration/registration.html

1-1. Carbide.C++
http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/IDEs/Carbide.c++/
http://sw.nokia.com/id/7710eba7-4da7-4ddc-a52a-53b506cadb4a/Carbide_cpp_v2_0_en.exe

Carbide.C++ 2.0
Carbide_cpp_v2_0_en.exe 203MB

1-2. S60 Platform SDKs for Symbian OS, for C++
http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html
http://sw.nokia.com/id/577ad48d-290c-4bb5-8bdf-779ea8a5bc6c/S60_5th_Edition_SDK_v1_0_en.zip

S60 Platform SDKs for Symbian OS, for C++, 5th Edition
S60_5th_Edition_SDK_v1_0_en.zip 622MB

1-3. Open C/C++ Plug-in
http://www.forum.nokia.com/info/sw.nokia.com/id/91d89929-fb8c-4d66-bea0-227e42df9053/Open_C_SDK_Plug-In.html
http://sw.nokia.com/id/fbe59b85-a621-404b-94d7-94ca818e576a/s60_open_c_cpp_plug_in_v1_6_en.zip

Open C/C++ Plug-in 1.6
s60_open_c_cpp_plug_in_v1_6_en.zip 34MB

2. Installation
Please install following packages as default path.

Install ActivePerl-5.6.1.638-MSWin32-x86.msi.
Install Java SE Development Kit (JDK), JDK 6 Update 16, jdk-6u16-windows-i586.exe
Install Carbide.C++.
After installed Carbide.C++, please download x86Tools_3.2.5_Symbian_b482_qt.zip. Please extract all files in it, and copy or move them to overwrite this folder, C:Program FilesNokiaCarbide.c++ v2.0x86Build.
Please run this, Start->Carbide.c++ v2.0->Configure environment for WINSCW command line.
And you also need to use Git to get Qt from Qt Git Repo, better to download this version of Git.

Please also make sure the path of our perl(default: C:Perlbin) should be before the perl in git(default: C:Program FilesGitbin) in PATH.

For Host Tools:
For MinGW user, please download MinGW-5.1.4.exe(Note: here the 5.1.4 is the version of installer, the compiler version is 3.4.5.), use it install g++ and make at least. And please add the env for MinGW, C:MinGWbin, at the beginning of the PATH.
For Microsoft Visual C++ Express Edition user, please download the vcsetup.exe and install 2008 with SP1.

For Device:
You need to install RVCT 2.2, we are using “Build 683”. You can use RVCT to build Qt libraries and applications which could running on S60 devices.
You can also install the “CSL Arm Toolchain”, if you forgot it, you can find it in Start->S60 Developer Tools->5th Edition SDK->v1.0->Tools->CSL Toolchain (GCCE) Install. You can use GCCE to build Qt applications with pre-build Qt libraries, and run your Qt applications on devices.

3. Build Qt with S60 5.0 Public SDK

For MinGW user, just open a Windows Command Prompt.
For VC2008EE user, please open Visual Studio 2008 Command Prompt.

C:
mkdir git
cd C:git
git clone -n git://gitorious.org/qt/qt.git
cd qt
git checkout -b 4.6 origin/4.6
set PATH=C:gitqt-s60bin;%PATH%

For MinGW user:
configure -platform win32-g++ -xplatform symbian-abld -qt-sql-sqlite -system-sqlite -no-script

For VC2008EE user:
configure -platform win32-msvc2008 -xplatform symbian-abld -qt-sql-sqlite -system-sqlite -no-script

make debug-winscw // for emulator
make release-armv5 // for devices arvm5

4. Build Examples

cd C:gitqtexampleswidgetsanalogclock
qmake
make debug-winscw // for emulator
make release-armv5 // for devices arvm5
make release-gcce // for devices gcce

5. Run

In Emulator:
C:S60devicesS60_5th_Edition_SDK_v1.0epoc32releasewinscwudebepoc.exe
“Menu”(or click the middle one of the 3 buttons)->QtExamples->analogclock

In Device:
createpackage C:gitqtsrcs60installsQt_for_S60_template.pkg release-armv5 // create Qt install package, it locates in C:gitqtsrcs60installsqt_for_s60_release-armv5.sis
createpackage C:gitqtexampleswidgetsanalogclockanalogclock_template.pkg release-armv5 // create analogclock armv5 install package, it locates in C:gitqtexampleswidgetsanalogclockanalogclock_release-armv5.sis
createpackage C:gitqtexampleswidgetsanalogclockanalogclock_template.pkg release-gcce // create analogclock gcce install package, it locates in C:gitqtexampleswidgetsanalogclockanalogclock_release-gcce.sis

Before you install Qt install package, you should also insall following packages:
pips_s60_1_6_SS.sis
openc_ssl_s60_1_6_SS.sis
STDCPP_s60_1_6_SS.sis

You can find them in C:S60devicesS60_5th_Edition_SDK_v1.0nokia_pluginopencs60opencsis and C:S60devicesS60_5th_Edition_SDK_v1.0nokia_pluginopencpps60opencppsis.

NOTE: If you are using virtual machine, please do not use Windows Remote Desktop to connect it. The default audio driver for it will cause S60 Emulator crash.

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.

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

最近的娱乐生活之电视

在国内的时候,超女快男也算得上是国内娱乐节目的先锋了,除了第一届超女没怎么关注,后来的好像都大致看了。还有一个原因就是很老婆喜欢流行音乐。

出了国之后,挪威语的电视基本上不看。也就是在网上看看PPStream和PPLive上的节目。另外就是在PowerApple上下载一些电影和电视节目看。

台湾中视无线台超级星光大道还是不错的,维基中文,现在在看的是第五届,官方博客维基中文。我们好像是从第四届开始看的。感觉还是很过瘾的,最近的踢馆赛中,蔡艾珈和倪安东真的很有实力,尤其是蔡艾珈,建议大家看看,^_^。

相比之下的湖南卫视的快女就逊色很多了,个人感觉,商业气氛太浓,根本就不是在听歌,大约2、3分钟的演唱,然后主持人和评委能说上15-20分钟,还有后面那一堆的专业媒体人士有时还会叽歪一下,评委有时说话感觉是参赛者的粉丝一样。另外湖南卫视不太专业的一点,就是09快女主页的信息竟然远比09快女资讯滞后。

看到了陶晶莹的主持后,一直在想是不是大陆这边也有类似量级的人士活动在电视主持人的位置上。

最近GET的服务很不稳定

GET是挪威的有线电视提供商,因此也提供基于Cable-TV的宽带、高清电视和电话的服务。他们家的安装和撤销服务所需时间比较短,一般一周左右就可以了,其它的如NextGenTel可能需要几周了,撤销甚至要提前3个月通知。

最近这一两个星期,断线事件经常发生,已经3次了,其中一次大约有5、6个小时至少。打服务电话,也没人接,留了电话之后,打回来也只是说我们这个区线路有问题,最近在修理,几个Sorry,也没有确切消息。

今天下班到家一会儿就断线了,打了半个小时电话,也没人接。就出去到楼里问问其他人,二楼的一个胖子,家里宽带用的是NextGenTel的很好,不过他家的电视还是有GET的信号的。他的邻居却说和我一样,有线电视和宽带都没有信号了。很奇怪。

国内银行SWIFT代码查询方法

对于在国外生活的朋友,给国内的父母转帐是一个很经常的问题。这里简单介绍一下国内银行SWIFT代码查询方法:

SWIFT – BIC Portal

在右侧的BIC Search一栏中输入下面信息就可以查询了。

国内几大行的前8位是(剩余三位才是具体的分行):
工行: ICBKCNBJ
农行:ABOCCNBJ
中行:BKCHCNBJ
建行:PCBCCNBJ
招行:CMBCCNBS
民生银行:MSBCCNBJ
交通银行:COMMCN
华夏银行:HXBKCN
工行国际借记卡:ICBKCNBJICC

注意,如果你开户的银行没有SWIFT,可以查省一级的分行的SWIFT。只要留心银行所在地就行了。

参考网址:中国企业电子信息网

第一次使用Nokia手机中的Sports Tracker

上周六实地考察了一下,骑自行车从家里出发到公司再回来,单程大约30分钟左右,上班的时候是上坡比较累,下班就很爽了,不过一爽直下骑错路了,多走了不少时间。

今天正式骑车上下班,并且启动了Nokia E90中的Sports Tracker,记录了一下,刚导出成Google Earth支持的格式,看着还是很不错的。

上班
下班

Build Qt with S60 5.0 Public SDK

Build Qt with S60 5.0 Public SDK

Platform: Windows XP with SP3(now we only support Qt/S60 on it.)

1. SYMBIAN Development Environment

For downloading the packages, you need to register an account in the forum of Nokia,
http://www.forum.nokia.com/main/registration/registration.html

1-1. Carbide.C++
http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/IDEs/Carbide.c++/
http://sw.nokia.com/id/7710eba7-4da7-4ddc-a52a-53b506cadb4a/Carbide_cpp_v2_0_en.exe

Carbide.C++ 2.0
Carbide_cpp_v2_0_en.exe 203MB

1-2. S60 Platform SDKs for Symbian OS, for C++
http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-af0631419e9c/S60_All_in_One_SDKs.html
http://sw.nokia.com/id/577ad48d-290c-4bb5-8bdf-779ea8a5bc6c/S60_5th_Edition_SDK_v1_0_en.zip

S60 Platform SDKs for Symbian OS, for C++, 5th Edition
S60_5th_Edition_SDK_v1_0_en.zip 622MB

2. Installation

Please install above 2 packages as default path.

Installation order: Carbide.C++, S60 SDK.

After Carbide.C++, you may need to install ActivePerl-5.6.1.638-MSWin32-x86.msi:

http://downloads.activestate.com/ActivePerl/Windows/5.6/ActivePerl-5.6.1.638-MSWin32-x86.msi

And you also need to use Git to get Qt from Qt S60 Git Repo, better to download this version of Git.

Please also make sure the path of our perl(default: C:Perlbin) should be before the perl in git(default: C:Program FilesGitbin) in PATH.

Please run this, Start->Carbide.c++ v2.0->Configure environment for WINSCW command line.

3. Build Qt with S60 5.0 Public SDK

cd C:git
git clone git://gitorious.org/+qt-s60-developers/qt/qt-s60.git
cd qt-s60
set PATH=C:gitqt-s60bin;%PATH%
configure -platform win32-mwc -xplatform symbian-abld -openssl-linked -qt-sql-sqlite -system-sqlite
make debug-winscw

4. Build Examples

cd C:gitqt-s60exampleswidgetsanalogclock
qmake
make debug-winscw
C:S60devicesS60_5th_Edition_SDK_v1.0epoc32releasewinscwudebepoc.exe
“Menu”(or click the middle one of the 3 buttons)->QtExamples->analogclock

You got it!