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

    help me to "mka systemimage"

    Scheduled Pinned Locked Moved Porting
    12 Posts 2 Posters 1.5k Views 1 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.
    • E Offline
      errors
      last edited by errors

      ubuntu@ubuntu-virtual-machine:~/halium$ mka systemimage
      make: 进入目录“/home/ubuntu/halium”
      ============================================
      PLATFORM_VERSION_CODENAME=REL
      PLATFORM_VERSION=7.1.1
      LINEAGE_VERSION=14.1-20220219-UNOFFICIAL-cancro
      TARGET_PRODUCT=lineage_cancro
      TARGET_BUILD_VARIANT=userdebug
      TARGET_BUILD_TYPE=release
      TARGET_BUILD_APPS=
      TARGET_ARCH=arm
      TARGET_ARCH_VARIANT=armv7-a-neon
      TARGET_CPU_VARIANT=krait
      TARGET_2ND_ARCH=
      TARGET_2ND_ARCH_VARIANT=
      TARGET_2ND_CPU_VARIANT=
      HOST_ARCH=x86_64
      HOST_2ND_ARCH=x86
      HOST_OS=linux
      HOST_OS_EXTRA=Linux-5.13.0-28-generic-x86_64-with-glibc2.29
      HOST_CROSS_OS=windows
      HOST_CROSS_ARCH=x86
      HOST_CROSS_2ND_ARCH=x86_64
      HOST_BUILD_TYPE=release
      BUILD_ID=NOF27B
      OUT_DIR=/home/ubuntu/halium/out
      ============================================
      Running kati to generate build-lineage_cancro.ninja...
      No need to regenerate ninja file
      Starting build with ninja
      ninja: Entering directory `.'
      ninja: error: 'vendor/xiaomi/cancro/proprietary/app/TimeService/TimeService.apk', needed by '/home/ubuntu/halium/out/target/product/cancro/obj/APPS/TimeService_intermediates/package.apk', missing and no known rule to make it
      make: *** [build/core/ninja.mk:152:ninja_wrapper] 错误 1
      make: 离开目录“/home/ubuntu/halium”
      
      KenedaK 1 Reply Last reply Reply Quote 0
      • KenedaK Offline
        Keneda @errors
        last edited by Keneda

        @errors
        If i read your log, it seems an apk (TimeService.apk) is needed to complete some task, and is missing.
        If i understand correctly, it's a Xiaomi apk.

        2015-2023 : Meizu MX4 ☠️⚰️✝️
        2023-2024 : Nexus 5 ☠️⚰️✝️
        2024-***** : FPOS Fairphone 5
        🇲🇫🇬🇧

        E 1 Reply Last reply Reply Quote 0
        • E Offline
          errors @Keneda
          last edited by

          @keneda
          yes ,this is xiaomi4. I don't know do it ,help ,help me

          KenedaK 1 Reply Last reply Reply Quote 0
          • KenedaK Offline
            Keneda @errors
            last edited by

            @errors
            Sorry i'm not a porter/dev, i'll let someone with those skills help you.
            Just wait a little, it's early, activity on forum increase in the evenning.

            2015-2023 : Meizu MX4 ☠️⚰️✝️
            2023-2024 : Nexus 5 ☠️⚰️✝️
            2024-***** : FPOS Fairphone 5
            🇲🇫🇬🇧

            E 3 Replies Last reply Reply Quote 0
            • E Offline
              errors @Keneda
              last edited by

              @keneda I just copied this file, and now the error information is as follows

              Running kati to generate build-lineage_cancro.ninja...
              No need to regenerate ninja file
              Starting build with ninja
              ninja: Entering directory `.'
              ninja: error: '/home/ubuntu/halium/out/host/linux-x86/framework/signapk.jar', needed by '/home/ubuntu/halium/out/target/product/cancro/obj/APPS/TimeService_intermediates/package.apk', missing and no known rule to make it
              make: *** [build/core/ninja.mk:152:ninja_wrapper] 错误 1
              make: 离开目录“/home/ubuntu/halium”
              
              1 Reply Last reply Reply Quote 0
              • E Offline
                errors @Keneda
                last edited by

                @keneda
                111.jpg

                1 Reply Last reply Reply Quote 0
                • E Offline
                  errors @Keneda
                  last edited by

                  @keneda I have checked this file “proprietary-files.txt”

                  KenedaK 1 Reply Last reply Reply Quote 0
                  • KenedaK Offline
                    Keneda @errors
                    last edited by Keneda

                    @errors
                    Really, i have no skill or knowledge to help you further, i'm sorry 😅

                    2015-2023 : Meizu MX4 ☠️⚰️✝️
                    2023-2024 : Nexus 5 ☠️⚰️✝️
                    2024-***** : FPOS Fairphone 5
                    🇲🇫🇬🇧

                    E 3 Replies Last reply Reply Quote 0
                    • E Offline
                      errors @Keneda
                      last edited by

                      @keneda
                      I don't believe ,you must can help me!

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        errors @Keneda
                        last edited by

                        @keneda
                        I modified a file,(~/halium/vendor/xiaomi/cancro/Android.mk) and now the error information is as follows

                        [ 32% 5112/15525] Generated: (/home/ub...arget/product/cancro/android-info.txt)
                        FAILED: /bin/bash -c "(build/tools/check_radio_versions.py device/xiaomi/cancro/board-info.txt ) && (grep -v '#' device/xiaomi/cancro/board-info.txt > /home/ubuntu/halium/out/target/product/cancro/android-info.txt )"
                          File "build/tools/check_radio_versions.py", line 56
                            print "*** Error opening \"%s.sha1\"; can't verify %s" % (fn, key)
                                  ^
                        SyntaxError: invalid syntax
                        [ 32% 5112/15525] host C: libsepol <= ...nal/selinux/libsepol/src/conditional.c
                        ninja: build stopped: subcommand failed.
                        make: *** [build/core/ninja.mk:152:ninja_wrapper] 错误 1
                        make: 离开目录“/home/ubuntu/halium”
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          errors @Keneda
                          last edited by

                          @keneda
                          sudo apt-get install python
                          python -V
                          Python 2.7.18
                          now is no problem!

                          KenedaK 1 Reply Last reply Reply Quote 0
                          • KenedaK Offline
                            Keneda @errors
                            last edited by

                            @errors
                            Glad you sorted it out, sorry again for my lack of coding knowledge.

                            2015-2023 : Meizu MX4 ☠️⚰️✝️
                            2023-2024 : Nexus 5 ☠️⚰️✝️
                            2024-***** : FPOS Fairphone 5
                            🇲🇫🇬🇧

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • First post
                              Last post