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

HowTo: contributing to app development with crossbuilder

Scheduled Pinned Locked Moved App Development
51 Posts 8 Posters 13.3k 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.
    • M Offline
      mardy
      last edited by 17 Aug 2018, 20:37

      I have some trouble figuring out what's wrong here: the dch tool is part of the devscripts package, which should be installed by crossbuilder in the container. @matteo, can you please verify whether this is the case? Just run:

      crossbuilder shell
      # then, in the container:
      apt-cache policy devscripts
      

      and paste here the output.

      M 1 Reply Last reply 18 Aug 2018, 09:59 Reply Quote 0
      • M Offline
        matteo @mardy
        last edited by 18 Aug 2018, 09:59

        @mardy here we go with the keyboard component:
        0_1534586094339_b74c19a0-13e2-4343-8795-d2a988ff50ba-image.png

        I tried the same with the network-manager after copying the folder from GitHub into my local folder and I got some additional work done, but I have no idea of what's the meaning:

        0_1534586333024_18112b18-b063-4b4c-bfac-a415d15fb00b-image.png

        1 Reply Last reply Reply Quote 0
        • M Offline
          matteo
          last edited by 18 Aug 2018, 10:03

          Ok, for the network-manager I found out the output was different because it was the first time I ran it with crossbuilder....If I do it again, I find a similar behavior than with the keyboard-component.

          1 Reply Last reply Reply Quote 0
          • M Offline
            mardy
            last edited by 18 Aug 2018, 16:26

            It looks like the container was not created properly. Can you please delete it (lxc list to see the container name, then lxc delete <container>) and modify the crossbuilder script by adding the line

            set -x
            

            near the beginning, right after the existing set -e line? Then please run it and post here the full output. By the way, what versions of lxc and Ubuntu are you using?

            M 1 Reply Last reply 3 Sept 2018, 16:15 Reply Quote 0
            • M Offline
              matteo @mardy
              last edited by 3 Sept 2018, 16:15

              @mardy Hi mardy, sorry if I didn't reply before but I was in a long holidays....just back though. To answer your question, the version of lxc is 2.0.11 and I'm on Ubuntu 16.04 Desktop. Running the first command I got this:
              0_1535991267921_e9995117-ed62-4c51-877b-65aec5f44f33-image.png

              Am I supposed to delete both the environments before to proceed?

              Thank you for your help!

              1 Reply Last reply Reply Quote 0
              • M Offline
                mardy
                last edited by 3 Sept 2018, 19:50

                Yes, @matteo, please try to delete them. Also, update your crossbuilder, before trying again. Please let me know if the new version somehow helps.

                M 1 Reply Last reply 5 Sept 2018, 16:10 Reply Quote 0
                • M Offline
                  matteo @mardy
                  last edited by 5 Sept 2018, 16:10

                  @mardy I deleted both the containers, added the new required line in the script and then run the crossbuilder command. Please check here below the output:
                  0_1536163811793_006ba3d8-3dbc-4d47-8306-60e6d7b81d58-image.png

                  M 1 Reply Last reply 7 Sept 2018, 16:32 Reply Quote 0
                  • M Offline
                    matteo @matteo
                    last edited by 7 Sept 2018, 16:32

                    I tried to re-setup the environment and I got caught in an error (or maybe that's what I feel about). Here below the output:

                    https://paste.ubuntu.com/p/DGN3642VNg/

                    Then I tried to cross build the OSK package to the connected device, a Pro5, by just typing "crossbuilder" in the OSK directory and this is the result (again a final error it seems):

                    https://paste.ubuntu.com/p/Crwm65FyQV/

                    Any suggestion?

                    Matteo

                    M 1 Reply Last reply 7 Sept 2018, 16:35 Reply Quote 0
                    • M Offline
                      matteo @matteo
                      last edited by 7 Sept 2018, 16:35

                      Sorry, if I run the same command "crossbuilder" in the OSK directory, now there is a complain with a missing "dch" command:

                      https://paste.ubuntu.com/p/dRpvrK8thY/

                      M 1 Reply Last reply 7 Sept 2018, 17:02 Reply Quote 0
                      • M Offline
                        matteo @matteo
                        last edited by matteo 9 Jul 2018, 17:09 7 Sept 2018, 17:02

                        @mardy I found this issue on Github which explains why my container doesn't connect to the internet as well as experienced by @jonius: https://github.com/ubports/crossbuilder/issues/2

                        But now, how to fix it?

                        Thank you.

                        P.S. my laptop is running Ubuntu 16.04 LTS (Xenial) but I see that in your answer on the Github issue you are indicating that the devscripts are installed by means of a repo available for Vivid?? Could it be the culprit?

                        Matteo

                        M 1 Reply Last reply 10 Sept 2018, 06:07 Reply Quote 0
                        • M Offline
                          mardy @matteo
                          last edited by 10 Sept 2018, 06:07

                          Hi @matteo! I think your issue might not be related to https://github.com/ubports/crossbuilder/issues/2

                          Instead, can you please update your crossbuilder again, then remove all of your existing lxc containers (those created with crossbuilder, at least) and run the crossbuilder setup-lxd command again (and collect the logs in the same way you did before)?

                          M 1 Reply Last reply 10 Sept 2018, 17:59 Reply Quote 0
                          • M Offline
                            matteo @mardy
                            last edited by matteo 9 Oct 2018, 17:59 10 Sept 2018, 17:59

                            @mardy I'm not sure what you do mean for "update crossbuilder"...would you please help me to figure this out? Maybe I'm failing this step...Anyhow, I deleted the previous lxc containers and ran the "crossbuilder setup-lxd" command; this is the output: https://paste.ubuntu.com/p/hhDr699mmH/

                            If I re-create the keyboard container with my phone connected I got always the same error: "Container is not connected to the Internet."

                            M 1 Reply Last reply 16 Sept 2018, 11:16 Reply Quote 0
                            • M Offline
                              matteo @matteo
                              last edited by 16 Sept 2018, 11:16

                              @mardy I'd need your help on this. Not being able to update crossbuilder as per your request, I just got rid of the previous installation and I started a fresh installation from scratch. Everything went smooth, so I tried again to build the OSK app onto my phone but I still get the error complaining for a missing command dch, I guess near to the end of the building process:

                              0_1537096449272_0174bfbe-ba0c-49f8-87eb-653bb5914ecb-image.png

                              Thank you in advance.

                              Matteo

                              M 1 Reply Last reply 17 Sept 2018, 05:56 Reply Quote 0
                              • M Offline
                                mardy @matteo
                                last edited by 17 Sept 2018, 05:56

                                Hi @matteo!
                                To update crossbuilder, just go to the directory where it's located and run git pull. As for the error, I would really need to see the full logs, as the real error most likely happens much before that dch line.

                                M 1 Reply Last reply 17 Sept 2018, 06:37 Reply Quote 0
                                • M Offline
                                  matteo @mardy
                                  last edited by 17 Sept 2018, 06:37

                                  @mardy ok for the hint, I'll try it but I'm not sure git command will work to me, because I tried to use it before but it failed miserably; so, what I did to install crossbuilder before, was to manually copy the folder from Github to my local folder on my PC and then manually installing from there. I don't know if this makes any difference though.

                                  However, I already posted the complete output for the "dch error"; if you scroll upwards the previous messages, you can find it. I re-post here for ease of reference:

                                  https://paste.ubuntu.com/p/dRpvrK8thY/

                                  Thank you for the help, much appreciated 😉

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    mardy
                                    last edited by 17 Sept 2018, 06:46

                                    Yes, copying the folder from GutHub works as well 🙂

                                    About the logs, I need to see those relative to the first time the container is setup: you should delete all your crossbuilder containers, then run crossbuilder again (with the set -e option as well). Those logs will show all the packages being installed, and I'll hopefully understand why dch is not there. The logs you pasted seem to refer to a situation where the container had already been set up.

                                    M 1 Reply Last reply 17 Sept 2018, 17:09 Reply Quote 1
                                    • M Offline
                                      matteo @mardy
                                      last edited by matteo 17 Sept 2018, 17:09

                                      @mardy here what I have done:

                                      1. Previous lxd installation deleted with Synaptic (lxd and lxd-client packages);
                                      2. crossbuilder folder downloaded from https://github.com/ubports/crossbuilder;
                                      3. I checked that the crossbuilder file got the 'set -e' command at the beginning already provided; however I see that the 'set -x' part is no more there....should I add to the crossbuilder file or leave it as it is, with only the 'set -e' specification? Needless to say, I tried also adding both the commands at the same time but still the 'dch' error is thrown;
                                      4. Typed 'crossbuilder setup-lxd' to install the container dependencies.

                                      This is the output: https://paste.ubuntu.com/p/Jd4w6y4BYK/

                                      M 1 Reply Last reply 20 Sept 2018, 13:31 Reply Quote 0
                                      • M Offline
                                        matteo @matteo
                                        last edited by 20 Sept 2018, 13:31

                                        @mardy any suggestion? I know that you are probably busy but I'm stuck with that and really no clue how to fix this issue.

                                        Thank you.

                                        1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          mardy
                                          last edited by 21 Sept 2018, 16:40

                                          Sorry @matteo, it's just that I don't read the forum everyday. 🙂

                                          Yes, indeed I meant that you need to add set -x
                                          The setup phase seems to be OK, I cannot spot any problems there. Now can you please try to create a new container and show the output?

                                          M 1 Reply Last reply 21 Sept 2018, 17:53 Reply Quote 0
                                          • M Offline
                                            matteo @mardy
                                            last edited by 21 Sept 2018, 17:53

                                            @mardy I know, sorry if I'm bothering you but this thing is driving me nuts...I feel this to be the last hurdle before to start helping pro-actively UBports, that's why I'm insisting 😉
                                            Here you go, with the latest output I produced trying to create the OSK container....always complaining about 'dch' missing:

                                            https://paste.ubuntu.com/p/8KTf8TjKVs/

                                            Hope you'll find a clue in here.

                                            Thank you mardy!

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