[maemo-developers] Something quite amazing (and simple): QtContacts 1.0 on qt Nokia SDK beta

From: Felipe Crochik felipe at crochik.com
Date: Tue Jun 8 01:02:52 EEST 2010
I don't know if this was just a happy accident but I just compiled my
application using Qt Contacts 1.0 mobility library on qt sdk beta and was
able to have it deployed to my phone automatically.

As most using qt sdk probably knows the mobility packages included with the
sdk are not release 1.0. 

After asking around and looking for a solution I decided to just mess around
and try... maybe there is a better way but I failed to find it.

IMPORTANT: I don't recommend...if you can...just wait for the official
release :)

In case anybody is feeling adventurous the steps were quite simple:

1. Copy the headers for the contacts module from scratchbox to 
C:\NokiaQtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-1014-slim\usr\inclu
de

(in order to find out which ones I needed I compiled just the contacts
module from qt mobility on scratchbox and installed it to a blank folder - I
can provide the list of files)

2. Copy the "library" (libqtContacts.so*) from your scratchbox (or device)
to 
C:\NokiaQtSDK\Maemo\4.6.2\sysroots\fremantle-arm-sysroot-1014-slim\usr\lib

Not sure if this applies to any other environment (than windows) and/or will
work for any other mobility package but for now it seems to have worked for
the contacts module at least on windows.

It does make life MUCH easier... too bad it took me all this time to try it.

Please be aware that I don't have any reason to believe (and neither should
you) that this will not cause some unexpected problems ... All that I know
is that apparently worked just for one application I tested. 

Felipe

More information about the maemo-developers mailing list