[SailfishDevel] Harmattan to Sailfish Migration: QCamera not found

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Sun Apr 7 14:50:08 UTC 2013


Hi all

firstly I would like to congratulate the guys at Jolla / Sailfish for  
their great work so far: It's looking very promising. Maybe there is  
life after the N9 after all.

This weekend I installed the alpha Sailfish SDK on OSX. I was quickly  
able to add the kits for my N9, the QEMU Harmattan Emulator and the N9  
Simulator, and run my current Harmattan project against these.

Then I decided to try the same project against Sailfish: to see how  
easy it would be to get it up and running. As my project uses the GPS,  
the camera and sends SMSs this is probably quite an evil test for an  
SDK that is only in Alpha.

So having made no changes at all to the project I pressed the green  
run button in QtCreator ....

On compiling I get the error "QCamera no such file or directory"

After much searching and comparison of the Harmattan and Sailfish SDKs  
I find the following:


1)
//SailfishOS/mersdk/targets/SailfishOS-1486-x86/usr/lib/
contains the 3 files
libQtMultimediaKit.so.1
libQtMultimediaKit.so.1.2
libQtMultimediaKit.so.1.2.2

while
//QtSDK/Madde/sysroots/harmattan_sysroot_10.2.2011.34-1_slim/usr/lib/
contains the 4 files
libQtMultimediaKit.so
libQtMultimediaKit.so.1
libQtMultimediaKit.so.1.2
libQtMultimediaKit.so.1.2.2
this directory also contains libQtMultimedia files which are not  
present in Sailfish equivalent

2) the directories
//SailfishOS/mersdk/targets/SailfishOS-1486-x86/usr/lib/qt4/imports/
//QtSDK/Madde/sysroots/harmattan_sysroot_10.2.2011.34-1_slim/usr/lib/qt4/imports/
both contain a subdirectory QtMultimediaKit

3) the two directories
//SailfishOS/mersdk/targets/SailfishOS-1486-x86/usr/include/qt4/
//QtSDK/Madde/sysroots/harmattan_sysroot_10.2.2011.34-1_slim/usr/include/qt4/
look quite different, with the harmattan version having more  
subdirectories, including the QtMultimediaKit within which the QCamera  
and qcamera.h files lurk.

Any ideas?

Chris





More information about the Devel mailing list