Thanks Antti... That was the silver bullet I was missing. :)
The line "# self-signed Mobility libs have UID3 0cE002AC89" lit the light. I manually tried to change the dependency in camera_template.pkg to depend on 0xE002AC89 instead of 0x2002AC89, and now I am running the QtMobility Camera Example on my Nokia E52 device. A long and winding road, but right now I am quite happy. Nice start on the day. Once again thanks, I will now start looking more deeply into the Camera API... /Anders From: Luoma Antti [mailto:antti.lu...@digia.com] Sent: 21. september 2010 08:28 To: Anders Kjærgaard Hansen; qt-mobility-feedback@trolltech.com Subject: RE: [Qt-mobility-feedback] Do there exist a prebuilt sis file for QtMobility 1.1 TP? Hi, This error "'Component QtMobility missing. Continue anyway?" comes from dependency you have in your package files. check x_template.pkg. If pkg is wrong, then qtmobility.prf file (located in c:\qt\4.6.3\mkspecs\features\mobility.prf) might not be updated from the latest qtmobility build. It has got (or something like) these dependency lines which are taken into use when you use config=MOBILITY option in your pro file. # Add dependency to QtMobility package to all projects besides QtMobility package itself. # Mobility libs have UID3 0x2002AC89 # self-signed Mobility libs have UID3 0xE002AC89 symbian:contains(CONFIG, mobility):!contains(TARGET.UID3, 0x2002AC89):!contains(TARGET.UID3, 0xE002AC89) { mobility_default_deployment.pkg_prerules += \ "; Default dependency to QtMobility libraries" \ "(0x2002AC89), 1, 1, 0, {\"QtMobility\"}" DEPLOYMENT += mobility_default_deployment For symbian multimedia camera parts to work you will need: either qtmobility.sis from src\s60installs\ (after you you have compiled and run make sis) or QtMultimediaKit.sis (api, from src/multimedia) + qtmultimediakit_ecamengine.sis (api backend, from plugins\multimedia\symbian\ecam). But I think dlls should be in place though. In emulator it can crash for various reasons one is that emulator doesn't support camera very well. You can put a break point in S60CameraService constructor and see if it loads the backend at all. In Hw you can check these (in emulator there might not be any devices...): There are static methods inQCamera class that should return reasonable values (2 devices, and some description): static QList<QByteArray> availableDevices(); static QString deviceDescription(const QByteArray &device); -antti ________________________________ From: Anders Kjærgaard Hansen [mailto:anders.kjaergaard.han...@logimatic.dk] Sent: Tuesday, September 21, 2010 8:57 AM To: Luoma Antti; qt-mobility-feedback@trolltech.com Subject: RE: [Qt-mobility-feedback] Do there exist a prebuilt sis file for QtMobility 1.1 TP? Have now fetched the head/master revision (from the http://qt.gitorious.org/qt-mobility/qt-mobility/trees/HEAD though). It configures and compiles fine (have only tried with "-modules multimedia", but all seems to be fine.) Until I want to run the camera example that is. ;-) In the emulator (in Carbide), it boots, and load, and then panics. On the device it still reports 'Component QtMobility missing. Continue anyway?'. I have done the 'make sis' step, and have installed QtMobility.sis file on the device. And if I try to reinstall it, it says it is already installed. My best guess would be that QtMobility uses another ID to install itself than the id the other packages look for. But when I investigate the pkg files it seems to be the same Id all over (0x2002AC89). If I continue and install it, the camera example panics on startup and never gets started. So it seemed better, but I must still be missing something. Trying to install qtmultimediakit_ecamengine.sis (or a signed sisx), once again gives me a warning about QtMobility not installed, and during install I get an update error. Looking at the src\s60installs\QtMobility_template.pkg, it seems like the ecamengine should be included automatically. But clearly I'm missing something. Any good ideas out there? /Anders From: Luoma Antti [mailto:antti.lu...@digia.com] Sent: 20. september 2010 12:59 To: Anders Kjærgaard Hansen; qt-mobility-feedback@trolltech.com Subject: RE: [Qt-mobility-feedback] Do there exist a prebuilt sis file for QtMobility 1.1 TP? Hi, Just realized that symbian Camera backend wasn't available in qtmobility 1.1 TP. So I am not amazed that id doesn't work :-). Backend is located in plugins\multimedia\symbian\ecam For camera to work you will need newer code. You have to get it from gitorious via git and compile that again. This isn't released just yet so there might be some bugs still, but if there are bugs, please report those also. Magic command for getting the code.. "git clone git://gitorious.org/qt-mobility/qt-mobility.git" -antti ________________________________ From: qt-mobility-feedback-boun...@trolltech.com [mailto:qt-mobility-feedback-boun...@trolltech.com] On Behalf Of Anders Kjærgaard Hansen Sent: Friday, September 17, 2010 3:56 PM To: Anders Kjærgaard Hansen; qt-mobility-feedback@trolltech.com Subject: Re: [Qt-mobility-feedback] Do there exist a prebuilt sis file for QtMobility 1.1 TP? The rest of the mail follows here - damn keyboard shortcuts... Hi all Now the week are about to end, and I'm still struggling getting QtMobility 1.1 TP running on my device. So my question now is... Can anyone in the community send me a working sis file able to install QtMobility 1.1 TP on a device? Below is a resume of where I am standing now. To sum up, my situation is this: 1. I have successfully installed Qt 4.7 RC, and QtMobility 1.1 TP on my machine. QtMobility configured to only use Multimedia module. 2. I can compile the Camera Sample, and I can build my own small samples using Multimedia module, and including Camera. 3. I can create sis files that run on phone (when not instantiating a Camera object) a. This sample compiles, and installs (With warning that QtMobility is not installed - even though it is) and runs on my device: #include "JustHello.h" #include <qmessagebox.h> #include <qcamera.h> JustHello::JustHello(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); QMessageBox::information(this, "JustHello", "App started"); // camera = new QCamera(); } b. This sample compiles, installs (with warning that QtMobility is not installed - even though it is), but panics at startup. #include "JustHello.h" #include <qmessagebox.h> #include <qcamera.h> JustHello::JustHello(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); QMessageBox::information(this, "JustHello", "App started"); camera = new QCamera(); } My QtMobility.sis file installs, but subsequently installs of applications with QtMobility 1.1 as prerequisite reports that QtMobility is not installed. I really hope somebody can take 10 seconds of their time to send me their sis file.. ;-) Have a nice weekend /Anders
_______________________________________________ Qt-mobility-feedback mailing list Qt-mobility-feedback@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback