Building Address Book app



  • Hi,

    I´m trying to build the address-book-app in my laptop but I´m facing some errors that someone in the community might know how to solve.

    I need to install the libraries libqofono-dev and qtpim5-dev
    Then I solve two errors in this two files:

    address-book-app/po/zh_TW.po
    address-book-app/po/hu.po

    Commented out lines 38,39 and 40.

    ##: ../src/imports/Ubuntu/AddressBook/ContactEditor/ContactEditor.qml:307
    #msgid "Add Field"
    #msgstr "Mező hozzáadása"

    The problem arouses when running the app as stated in the github repo via:
    cd build
    ./src/app/address-book-app

    I get the following errors. Any help would be appreciated :)

    Fail to connect with pim service.
    QObject::connect: No such signal QDBusAbstractInterface::safeModeChanged()
    QObject::connect: No such signal QDBusAbstractInterface::sourcesChanged()
    Using contact manager: "galera"
    New import path: "/home/user/Software/ubports/address-book-app/build/src/app//home/user/Software/ubports/address-book-app/src"
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:18:1: module "Ubuntu.Components" is not installed
    import Ubuntu.Components 1.3
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:20:1: module "QtSystemInfo" is not installed
    import QtSystemInfo 5.5
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:19:1: module "Ubuntu.Components.Popups" is not installed
    import Ubuntu.Components.Popups 1.3 as Popups
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:18:1: module "Ubuntu.Components" is not installed
    import Ubuntu.Components 1.3
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:20:1: module "QtSystemInfo" is not installed
    import QtSystemInfo 5.5
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:19:1: module "Ubuntu.Components.Popups" is not installed
    import Ubuntu.Components.Popups 1.3 as Popups
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:18:1: module "Ubuntu.Components" is not installed
    import Ubuntu.Components 1.3
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:20:1: module "QtSystemInfo" is not installed
    import QtSystemInfo 5.5
    ^
    file:///home/user/Software/ubports/address-book-app/src/imports/MainWindow.qml:19:1: module "Ubuntu.Components.Popups" is not installed
    import Ubuntu.Component



  • @gb said in Building Address Book app:

    Hi,

    I´m trying to build the address-book-app in my laptop

    directly on the machine or in some container? which os do you have on your laptop?

    I think you probably should try building it with clickable



  • I tried it directly on my pc with Elementary OS 0.4.1 Loki (based on ubuntu 16.04)

    $uname -a
    Linux sumatra 4.4.0-131-generic #157-Ubuntu SMP Thu Jul 12 15:51:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux$ tree -L 1

    I am trying clickable instead. I created a new project with clickable init.
    The following is a list of the files that clickable generates:

    ../address-book-app
    ├── address-book-app.apparmor
    ├── address-book-app.desktop.in
    ├── assets
    ├── clickable.json
    ├── CMakeLists.txt
    ├── LICENSE
    ├── manifest.json.in
    ├── plugins
    ├── po
    ├── qml
    └── README.md

    And this is the clone from the previous address-book-app

    $ tree -L 1
    .
    ├── address-book-apparmor.json -> ./click/address-book-apparmor.json
    ├── build
    ├── click
    ├── clickable.json
    ├── cmake
    ├── CMakeLists.txt
    ├── cmake_uninstall.cmake.in
    ├── config.h.in
    ├── COPYING.CC
    ├── COPYING.GPL-3
    ├── data
    ├── debian
    ├── examples
    ├── Jenkinsfile
    ├── manifest.json -> ./click/manifest.json.in
    ├── po
    ├── README.md
    ├── setup
    ├── snapcraft.yaml
    ├── src
    └── tests

    What of this files are mandatory to build the?
    I understand that "src" and "po" should be copied.
    Anything else?

    Thanks :)



  • A long time ago (!) I had the idea of a more intelligent contacts app - http://localhost/index.php/s/XyLj4MRpcL34cdD

    • where the person could choose who had what contact details
    • where changing one's own details changed them for everyone, so that your details were always correct, and
    • where you could set contact preferences depending on location or time...

    But I'm not a coder, so I only got as far as the Presentation! :/

    If anyone would like to code it though, be my guest! ;)



  • @3arn0wl you've posted a link to localhost ;)



  • That's because I'm an idiot, @advocatux! ;) (I thought I could share a file from Nexcloud as I could with Dropbox)



  • @3arn0wl you can share links with NextCloud if your server is publicly accessible and your user has the rights to do it



  • That's very bad news then, @advocatux, because it means that I still haven't got my port-forwarding sorted out properly. Meh!



  • @gb said in Building Address Book app:

    I am trying clickable instead. I created a new project with clickable init.

    No no. No need for clickable init. There is already a https://github.com/ubports/address-book-app/blob/master/clickable.json added by @NeoTheThird . All you should need to do is:

    Connect with usb cable
    git clone
    clickable

    This should build it, install it on your phone and run it. If your phone is on xenial, do clickable --sdk 16.04 instead.

    If it's not clear, or you're not familiar with clickable yet, be sure to



  • I think I finally managed to sort out the port forwarding, @advocatux - woot woot.

    So here was the idea I had (please let it work!) https://3arn0wl.hopto.org/index.php/s/xnNJPoDp25gqQ2N



  • @3arn0wl yep, it works \o/



  • :) Thanks for confirming that, @advocatux.



  • @3arn0wl btw if you don't have it already, it's good to have 2FA https://docs.nextcloud.com/server/14/user_manual/user_2fa.html


Log in to reply
 

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