Hack-A-N900/Development Notes: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
|||
Zeile 84: | Zeile 84: | ||
$ for i in *.deb; do dpkg-deb --extract $i `echo -n $i | sed 's/.deb//'`; done | $ for i in *.deb; do dpkg-deb --extract $i `echo -n $i | sed 's/.deb//'`; done | ||
</pre> | </pre> | ||
Now copy the required telepathy lib .so's to the nokia SDK target sysroot: | There are two revisions for each package and to determine which one the MADDE SDK required we can compare some of the telepathy files already installed in the slim sysrootm. For example, the telepathy lib is already installed and if we compare the file size with the downloaded packages we can see that we need revision2: | ||
<pre> | |||
$ ls -l ~/nokiaqtsdk/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/lib/libtelepathy-qt4.so.0.0.0 | |||
-rw-r--r-- 2 user user 2646296 2010-10-11 08:42 libtelepathy-qt4.so.0.0.0 | |||
$ ls -l ./libtelepathy-qt4-0_0.2.0-1maemo5_armel/usr/lib/libtelepathy-qt4.so.0.0.0 | |||
-rw-r--r-- 1 user user 2648944 2010-02-08 20:39 libtelepathy-qt4.so.0.0.0 | |||
$ ls -l ./libtelepathy-qt4-0_0.2.0-2maemo5_armel/usr/lib/libtelepathy-qt4.so.0.0.0 | |||
-rw-r--r-- 1 user user 2646296 2010-04-13 19:58 libtelepathy-qt4.so.0.0.0 | |||
</pre> | |||
Now copy the required telepathy lib .so's to the nokia SDK target sysroot: | |||
<pre> | <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/. | $ 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/. | ||
Zeile 92: | Zeile 103: | ||
$ 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/. | $ 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> | </pre> | ||
This might be enough but for some reason i had an issue that the link loader in one of my applications was always loading the local libtelepathy-qt4.so. So I added the following in place of the '-ltelepathy': | |||
<pre> | |||
LIBS += /home/user/nokiaqtsdk/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/lib/libtelepathy-qt4.a | |||
</pre> | |||
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 == | == Qt API's == |