SDK 4.5.0.16 Emulator not recognising org.freedesktop.contextkit

REPRODUCIBILITY: 100%
OS VERSION: 4.5.0.16 EA
HARDWARE: Xperia 10 II
UI LANGUAGE: English
REGRESSION: Yes

DESCRIPTION:

Building my project was not a problem under the previous SDK release, the import statement for contextkit was underlined, but all aspects of the kit worked and gave desired readings; temp, voltage, etc

The latest EA 4.5.0.16 for SDK does not recognise “import org.freedesktop.contextkit 1.0” and the emulator displays a white window with the following errors:

[I] unknown:0 - QmlLive Bench connected
[W] unknown:7 - file:///usr/share/harbour-bmw-e46/qml/harbour-bmw-e46.qml:7:30: Type FirstPage 
unavailable 
initialPage: Component { FirstPage { } } 
                              ^
[W] unknown:11 - file:///usr/share/harbour-bmw-e46/qml/pages/FirstPage.qml:11:1: module 
"org.freedesktop.contextkit" is not installed 
     import org.freedesktop.contextkit 1.0 
     ^
[D] unknown:0 - 	activate document:  "qml/harbour-bmw-e46.qml"

I have run qmake and cleaned the project several times, even hashing out all things related to contextkit but still I am left with a white screen on emulator.

However, the same project displays and works correctly on my Xperia 10 II, all aspects of context kit are working and to add; the import statement for contextkit is no longer underlined in red. So I assume the problem is with SDK.

PRECONDITIONS:

Have a project that uses “import org.freedesktop.contextkit 1.0”

STEPS TO REPRODUCE:

Build your project!

EXPECTED RESULT:

Project should build and display correctly in emulator

ACTUAL RESULT:

Emulator shows a white background with errors given in console

MODIFICATIONS:

None

Do you have qml(org.freedesktop.contextkit) in the Requires of your app?

1 Like

Thanks @vige,

I did already have;

 Requires:   qml(org.freedesktop.contextkit)

in my SPEC file but I was missing the following from my YAML file;

    # Runtime dependencies which are not automatically detected
    Requires:
      - qml(org.freedesktop.contextkit)

with that line added to the YAML file, I can continue building between my device and emulator.

I came here just now to update my post to say I had worked out what was wrong and saw your reply.

1 Like