• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Building Address Book app

Scheduled Pinned Locked Moved App Development
13 Posts 4 Posters 1.5k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      gb
      last edited by 6 Aug 2018, 02:03

      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

      D ? 2 Replies Last reply 6 Aug 2018, 04:47 Reply Quote 0
      • D Offline
        doniks @gb
        last edited by 6 Aug 2018, 04:47

        @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

        1 Reply Last reply Reply Quote 1
        • G Offline
          gb
          last edited by 6 Aug 2018, 11:19

          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 🙂

          D 1 Reply Last reply 9 Aug 2018, 04:40 Reply Quote 0
          • ? Offline
            A Former User @gb
            last edited by 6 Aug 2018, 13:42

            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! 😉

            A 1 Reply Last reply 6 Aug 2018, 14:29 Reply Quote 0
            • A Offline
              advocatux @Guest
              last edited by 6 Aug 2018, 14:29

              @3arn0wl you've posted a link to localhost 😉

              ? 1 Reply Last reply 6 Aug 2018, 14:33 Reply Quote 0
              • ? Offline
                A Former User @advocatux
                last edited by 6 Aug 2018, 14:33

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

                A 1 Reply Last reply 6 Aug 2018, 14:38 Reply Quote 0
                • A Offline
                  advocatux @Guest
                  last edited by 6 Aug 2018, 14:38

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

                  ? 2 Replies Last reply 6 Aug 2018, 14:47 Reply Quote 0
                  • ? Offline
                    A Former User @advocatux
                    last edited by 6 Aug 2018, 14:47

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

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      doniks @gb
                      last edited by doniks 8 Sept 2018, 04:41 9 Aug 2018, 04:40

                      @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

                      • scan https://docs.ubports.com/en/latest/appdev/index.html
                      • read http://clickable.bhdouglass.com/en/latest/
                      • consider building your own hello world app with clickable init and play around a bit
                      1 Reply Last reply Reply Quote 1
                      • ? Offline
                        A Former User @advocatux
                        last edited by 16 Sept 2018, 10:26

                        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

                        A 1 Reply Last reply 16 Sept 2018, 10:30 Reply Quote 0
                        • A Offline
                          advocatux @Guest
                          last edited by 16 Sept 2018, 10:30

                          @3arn0wl yep, it works \o/

                          ? 1 Reply Last reply 16 Sept 2018, 10:32 Reply Quote 0
                          • ? Offline
                            A Former User @advocatux
                            last edited by 16 Sept 2018, 10:32

                            🙂 Thanks for confirming that, @advocatux.

                            A 1 Reply Last reply 16 Sept 2018, 10:38 Reply Quote 1
                            • A Offline
                              advocatux @Guest
                              last edited by 16 Sept 2018, 10:38

                              @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

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post