Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    help me to "mka systemimage"

    Porting
    2
    12
    259
    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
      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”
      
      Keneda 1 Reply Last reply Reply Quote 0
      • Keneda
        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-Now : Meizu MX4 (Stable) for daily use
        Spare : Nexus 5 (Stable)

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

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

          Keneda 1 Reply Last reply Reply Quote 0
          • Keneda
            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-Now : Meizu MX4 (Stable) for daily use
            Spare : Nexus 5 (Stable)

            E 3 Replies Last reply Reply Quote 0
            • E
              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
                errors @Keneda last edited by

                @keneda
                111.jpg

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

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

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

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

                    2015-Now : Meizu MX4 (Stable) for daily use
                    Spare : Nexus 5 (Stable)

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

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

                      1 Reply Last reply Reply Quote 0
                      • E
                        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
                          errors @Keneda last edited by

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

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

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

                            2015-Now : Meizu MX4 (Stable) for daily use
                            Spare : Nexus 5 (Stable)

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