Hack-A-N900/Development Notes: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
Zeile 52: | Zeile 52: | ||
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 ==== | ==== 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 70: | ||
For now we have tested this only with the local emulator. | For now we have tested this only with the local emulator. | ||
==== In Scratchbox ==== | ==== 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 Maemo/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: | |||
1. Copy libs from scratchbox. see[] | |||
2. Install libs locally on the N900 and then copy them back to your workstation. see[] | |||
3. Download the deb for the lib from the scratchbox installation. Described here: | |||
<pre> | |||
$ wget --mirror --no-parent --no-host-directories --cut-dirs=5 --accept *armel.deb -e robots=off http://repository.maemo.org/extras-d...telepathy-qt4/ | |||
$ cd telepathy-qt4 | |||
$ for i in *.deb; do dpkg-deb --extract $i `echo -n $i | sed 's/.deb//'`; done | |||
</pre> | |||
Now copy the required telepathy lib .so's to the nokia SDK target sysroot:: | |||
<pre> | |||
$ cp ./libtelepathy-qt4-0_0.2.0-1maemo5_armel/usr/lib/libtelepathy-qt4.so.0* /home/user/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/lib/. | |||
</pre> | |||
I question if it is wise to use the headers from the local QT telepathy installation on the local workstation so you "might" consider using the headers from the .deb's as well and then adding it to your INCLUDEPATH of the .pro: | |||
<pre> | |||
$ cp ./libtelepathy-qt4-dev_0.2.0-2maemo5_armel/usr/lib/libtelepathy-qt4.a /home/user/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/lib/. | |||
</pre> | |||
== Qt API's == | == Qt API's == | ||