View Single Post
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#45
Originally Posted by GreatGonzo View Post
Unfortumately it isn't working out-of-the-box. Qt mobility needs to be installed and linked to the default search location

Code:
sudo gainroot
apt-get install libqtm-12-declarative
ln -s /opt/qtm12/imports/QtMultimediaKit /usr/lib/qt4/imports/
ln -s /opt/qtm12/imports/QtMobility /usr/lib/qt4/imports
DO NOT DO THIS ! You *will* bork your Qt install at some point/upgrade if you go down the path of manually modding Qt lib paths (which is the reason it isn't done that way 'out-of-the-box' in the first place)

The right (future-proof) way to do this for now is to handle the import paths from your code

Code:
viewer.engine()->addImportPath(QString("/opt/qtm12/imports"));
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following 3 Users Say Thank You to attila77 For This Useful Post: