手機上的qt程式

來源:互聯網
上載者:User

學習qt在creator上自我感覺應該是比較熟悉了,現在需要的是把qt整手機上去了。因為My Phone是5800,所以呢,就選擇觸控螢幕sdk了,在網上下的軟體如下:

ActivePerl-5.6.1.635-MSWin32-x86.msi

jdk-6u21-windows-i586.exe

Carbide.c++_v2.3.exe     ------    要用carbide呢必須有前面2個,注意安裝順序,如果前面2個沒安裝,carbide就裝不上的,前面2個也需要注意安裝順序,不過會有提示的。

  

qt-symbian-opensource-4.6.3.exe     -----     在裝它之前呢必須有symbian sdk,而且要和一個symbian sdk在同一個目錄,因為qt for symbian嘛,否則還是會無法使用的。

S60_5th_Edition_SDK_v1_0_en.zip     -----     s60觸控螢幕的sdk。記得sdk也在carbide之前安裝。

 

好了,程式安裝好了,還要記得在carbide裡面windows->preference->qt->add進行設定, 設定如下:

1. version name:自己取,可以根據版本;

2. Bin Path:qt的安裝路徑裡面的bin,比如:S:/Qt/4.6.3/bin;

3. Include Path:你選擇了前面之後它會自動給你加上的,就是S:/Qt/4.6.3/Include;

點擊ok就行了。

現在可以編qt程式了。我把qt demos裡面的mainwindow import進去,然後右鍵點擊mainwindow->properties->carbide.c++->build configuration, 選擇sis builder選項卡,點擊Add,我增加了3個地方,1. 記得選擇templete的那個pkg;2. 記得選self sign sis file;3. 簽名後的sis的名字,這個是可以安裝在手機上的sis包;現在問題是我的nokia手機是不支援qt的,所以需要有支援qt的庫啊,fluidlauncher.sis和qt.sis,在S:/Qt/4.6.3,就是qt4.6.3的安裝地址處,結果安裝的時候提示沒有PIPS_INSTALLER等組件,又在網上下了這幾個組件,ok,成功運行在我的5800上了。PIPS_Installer.sisStandard_C++_library_Common.sisOpen_C_LIBSSL_Common_for_S60_3.2_and_5.0.sis這3個sis包被我上傳到我的資源上了,就是“qt for symbian運行在手機上所需組件”裡面。才發現另外一個比較不錯的資料,原來qt4.6.3的安裝路徑裡早有了完整的sis包,從下面可以看到:http://discussion.forum.nokia.com/forum/showthread.php?191893-QtWebKit-app-%E5%9C%A8S60%E4%B8%8A%E8%BF%90%E8%A1%8CYou really do not read my reply to you in another thread. Qt.sis is not enough. You have to install "qtwebkit.sis" file. You may choose to install "qt_demos.sis", which has everything inside (Open C/C++).

=============================================================================

Here is a short description of the different .sis
files contained in this package.

If you just quickly want to check out the Qt demos
running on your phone, install qt_demos.sis.
It will install everything needed and auto-start
the Qt demos on your phone.fluidlauncher.sis

fluidlauncher.sis
Contains around 10 different Qt demos.
Depends on Qt and Open C.

qt.sis
Contains the Qt libraries Symbian Signed for
Nokia phones. Depends on Open C.

qt_selfsigned.sis
A self-signed version of the above library.
Works on other phones such as the Samsung i8910.

qtwebkit.sis
Contains the QtWebKit library Symbian Signed for
Nokia phones. Depends on Qt.

qtwebkit_selfsigned.sis
A self-signed version of the above library.
Works on other phones such as the Samsung i8910.

qt_demos.sis
Contains qt.sis, qtwebkit.sis, fluidlauncher.sis
and Open C all in one convenient package. No
other dependencies.

qt_installer.sis
Contains qt.sis, qtwebkit.sis and Open C all
in one convenient package. No other dependencies. Thank google!也就是說,其實qtwebkit.sis也是需要安裝的,根據解釋,也就是最後那個sis可以全部安裝,倒數第2個也可以,而且還可以把demos也裝進去。參考資料:http://wiki.forum.nokia.com/index.php/%E5%B0%86Qt%E5%BA%94%E7%94%A8%E8%BF%90%E8%A1%8C%E5%9C%A8Symbian%E6%89%8B%E6%9C%BA%E4%B8%8Ahttp://www.cuteqt.com/blog/?p=1115

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.