How to build a custom launcher based on lipstick?



  • I will start prototyping a custom Qt launcher based on lipstick. Therefore I checked out the lipstick project and the licstick example project form th Git server.

    https://git.merproject.org/mer-core/lipstick
    http://github.com/nemomobile/lipstick-example-home/
    

    First I would like to build and run the example to learn the components, interfaces and capabilities before I start modifications and development of an own launcher. Maybe the laucnher is not the appropriate term, because it's Android terminology.

    To build and run the example I need to build and install lipstick first. I'm afraid I need a how to guide, because I'm familar with Xcode and Eclipse, but not with Qt Creator. In the past I used Ant and Maven for deployment on console respectively terminal level either. In this case I'm not sure, how to install lipstick and run the example.

    I think I have to reference the installed lipstick library somehow in the example project. Do I have to install lipstick on the host system of Qt Creator or on the Sailfish OS build engine?

    If I open the lipstick project, I can the following log output:

    Project MESSAGE: Using contentaction to launch applications
    Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
    Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
    Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
    Project ERROR: Unknown module(s) in QT: testlib systeminfo
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    /bin/sh: pkg-config: command not found
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    Project ERROR: Unknown module(s) in QT: testlib
    

    It seems, that I have to install another test library before I can install the lipstick library. And I assume, that the issing pkg-config is related to the host system, isn't it? I have startet a build in Qt Creator with the follosing warnings and errors:

    Warning: contentaction doesn't exist; falling back to exec - this may not work so great
    Warning: Contextsubscriber not found
    Error: contextkit-statefs development package not found

  • Moderators

    @a.burks You need the QtTest module (testlib)



  • @jsulm Thanks for your response. How can I add the testlib? Do I have to install the library an my host, that runs Qt Creator or do I have to build and link the library in the project settings? A similar question will be relevant as soon I can build the lipstick project to reference the build in the example project for a custom launcher.

    Another question is also, whether the error /bin/sh: pkg-config: command not found is another problem. This seemt to me a missing library of the host or of the Qt Creator. Maybe the virtual machine for the build process hat to updated instead of the host.


  • Moderators

    @a.burks How did you install Qt?



  • @jsulm I use the SailfishOS SDK for macOS of Jolla, which is a customized Qt Creator. This includes two VMs, one for the build process and another for the device emulation with SailfishOS.


  • Moderators

    @a.burks The you need to check the SailfishOS SDK or ask Jolla, I never used their SDK.



  • @jsulm Thanks for your response. Unfortunately Jolla supports only enterprise partners and the Jolla forum is mainly a user forum.

    The SailfishOS SDK seems to be a customized Qt Creater with two VMs, one is a mer build engine, the other is the deployment target engine with an installed SailfishOS to test the developed apps.

    Another add on is the SailfishOS specific Qt framework Silica.

    I'm not sure, whether the test library is missed on the host of the QT Creator or on the build engine. I assume, it is on the build engine.

    Hopefully other Qt developers of that forum can recommend the apprpriate platform to find a solution. I also agree in a payed support for that problem. I think the efford would not more than one man day about 600 USD. Does someone know a platform to post this kind of micro projects to find a developer, who can help me.



  • @jsulm I filed the issue as a bug, but unfortunately I don't understand the answer. https://github.com/sailfishos/sailfish-qtcreator/issues/121


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.