Hack-A-N900/Development Notes: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
N900 Development Notes | |||
Not meant as a public resources. Just cluttered notes (meaning written in a hurry) that src, cyphunk are sharing with each other for remote collaboration on a project. | Not meant as a public resources. Just cluttered notes (meaning written in a hurry) that src, cyphunk are sharing with each other for remote collaboration on a project. | ||
= SDK Types = | |||
Nokia have switch mental frames of thought for how they want to develop their phones and the result is a few different paths one must choose from. | Nokia have switch mental frames of thought for how they want to develop their phones and the result is a few different paths one must choose from. | ||
Zeile 12: | Zeile 12: | ||
We have tried all 3 but are currently using MADDE which appears to have better Qt Creator integration than Scratchbox does. Also the Meego SDK is specific to n900 phones running Meego, which is not officially support yet. It works, but not well on 64 bit workstations. | We have tried all 3 but are currently using MADDE which appears to have better Qt Creator integration than Scratchbox does. Also the Meego SDK is specific to n900 phones running Meego, which is not officially support yet. It works, but not well on 64 bit workstations. | ||
= Installing MADDE SDK = | |||
== Download and Install == | |||
There is one decent installation document[http://wiki.maemo.org/MADDE] but it links to two different installers. Before getting to the installation steps the it links first to the "''Nokia Qt SDK (Release Candidate)''" installer but in the actual installation directions it tells you to download an install shell script from "''MADDE downloads''" in step 1. Both might work but we are using the "Nokia Qt SDK (Release Candidate)" installer http://www.forum.nokia.com/info/sw.nokia.com/id/e920da1a-5b18-42df-82c3-907413e525fb/Nokia_Qt_SDK.html | There is one decent installation document[http://wiki.maemo.org/MADDE] but it links to two different installers. Before getting to the installation steps the it links first to the "''Nokia Qt SDK (Release Candidate)''" installer but in the actual installation directions it tells you to download an install shell script from "''MADDE downloads''" in step 1. Both might work but we are using the "Nokia Qt SDK (Release Candidate)" installer http://www.forum.nokia.com/info/sw.nokia.com/id/e920da1a-5b18-42df-82c3-907413e525fb/Nokia_Qt_SDK.html | ||
Zeile 23: | Zeile 23: | ||
</pre> | </pre> | ||
== Configure == | |||
After installation we used the "''QtCreator integration for Linux''" guide[http://wiki.maemo.org/MADDE/QtCreator_integration_for_linux]. This will let you deploy applications to either the emulator or phone. For now lets just get the emulator working. Specifically we did the following (more details in the linked guide) from within the qtcreator_nokiaqtsdk: | After installation we used the "''QtCreator integration for Linux''" guide[http://wiki.maemo.org/MADDE/QtCreator_integration_for_linux]. This will let you deploy applications to either the emulator or phone. For now lets just get the emulator working. Specifically we did the following (more details in the linked guide) from within the qtcreator_nokiaqtsdk: | ||
<pre> | <pre> | ||
Zeile 39: | Zeile 39: | ||
The "''Debugging helper''" status might show a red "X". If it does, click the "''Rebuild''" button for both of the above entries. This should be enough to start building example projects. | The "''Debugging helper''" status might show a red "X". If it does, click the "''Rebuild''" button for both of the above entries. This should be enough to start building example projects. | ||
== Compile Hello World == | |||
Simple example (src[http://wiki.maemo.org/MADDE/Qt_example]). The following will create a hello world qt creator project called qthello in the current directory: | Simple example (src[http://wiki.maemo.org/MADDE/Qt_example]). The following will create a hello world qt creator project called qthello in the current directory: | ||
<pre> | <pre> | ||
Zeile 49: | Zeile 49: | ||
=== Installing | = Installing Scratchbox SDK = | ||
http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation | |||
= Installing Libraries = | |||
There are the nokia closed-source libraries and other libraries from the community that you might want to use in your application. For example, I would like to use TpSession[http://tpsession.garage.maemo.org/] which is an abstraction for the TelepathyQt4 API letting one manage sms's, phone calls, etc. | There are the nokia closed-source libraries and other libraries from the community that you might want to use in your application. For example, I would like to use TpSession[http://tpsession.garage.maemo.org/] which is an abstraction for the TelepathyQt4 API letting one manage sms's, phone calls, etc. | ||
== In MADDE for Simulator == | |||
To install TpSession to your MADDE SDK you need to install TelepathyQt4 on your workstation, ''apt-get install libtelepathy-qt4-dev''. Then compile TpSession (git clone https://vcs.maemo.org/git/tpsession) for your workstation and/or target. Then you have to copy the lib to the root dir of your target and add the location to the INCLUDES of the .pro file for the project. (thread discussion with more details[http://talk.maemo.org/showthread.php?t=56602]). Command log for using lib on local emulator: | To install TpSession to your MADDE SDK you need to install TelepathyQt4 on your workstation, ''apt-get install libtelepathy-qt4-dev''. Then compile TpSession (git clone https://vcs.maemo.org/git/tpsession) for your workstation and/or target. Then you have to copy the lib to the root dir of your target and add the location to the INCLUDES of the .pro file for the project. (thread discussion with more details[http://talk.maemo.org/showthread.php?t=56602]). Command log for using lib on local emulator: | ||
Zeile 70: | Zeile 73: | ||
For now we have tested this only with the local emulator. | For now we have tested this only with the local emulator. | ||
== In Scratchbox for Simulator == | |||
Same steps as for MADDE except that you will need to install the nokia libs which you have to agreed to a ALU for. See steps 7 through 7.2 at http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation#Installing_Maemo_5_SDK_on_x86-32_Debian_based_distribution | Same steps as for MADDE except that you will need to install the nokia libs which you have to agreed to a ALU for. See steps 7 through 7.2 at http://wiki.maemo.org/Documentation/Maemo_5_Final_SDK_Installation#Installing_Maemo_5_SDK_on_x86-32_Debian_based_distribution | ||
== In MADDE for N900 Target == | |||
The sysroot that comes with the MADDE sdk is "slim" and is missing a slew of libs that were available in the Scratchbox setup. For example, the 3rd party tpsession library requires the 2nd party libtelepathy-qt4. 3 solutions exist for getting telepathy into the sysroot for a Maemo target: | The sysroot that comes with the MADDE sdk is "slim" and is missing a slew of libs that were available in the Scratchbox setup. For example, the 3rd party tpsession library requires the 2nd party libtelepathy-qt4. 3 solutions exist for getting telepathy into the sysroot for a Maemo target: | ||
Zeile 111: | Zeile 114: | ||
Also, in the process of debugging I created a small script to compare the symbol tables of two files, should anyone be interested: [[cmpsymtbl.pl]] | Also, in the process of debugging I created a small script to compare the symbol tables of two files, should anyone be interested: [[cmpsymtbl.pl]] | ||
= Qt API's = | |||
== Saving Application Settings == | |||
[http://doc.qt.nokia.com/4.6/qsettings.html#details] | [http://doc.qt.nokia.com/4.6/qsettings.html#details] | ||