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

    Need help building Ubuntu Touch for Galaxy Tab 2

    Scheduled Pinned Locked Moved Porting
    16 Posts 4 Posters 2.6k 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.
      • Y Offline
        Yxles @AppLee
        last edited by

        @applee I don't have it, I think there are some files missing even though repo sync completely

        AppLeeA 1 Reply Last reply Reply Quote 0
        • AppLeeA Offline
          AppLee @Yxles
          last edited by

          @yxles
          Alright, so given the error message and the fact you don't have the file I guess you'll have to create it.
          Given the .mk extension I bet it is a makefile hopefully an autogenerated one or you'll have to manually create one.

          Best of luck.

          1 Reply Last reply Reply Quote 0
          • Y Offline
            Yxles
            last edited by

            Looking for mention of gpg on default.xml at https://github.com/Halium/android/blob/halium-7.1/default.xml for Halium 7.1 shows up nothing, is that normal?

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              Mighty @tchan
              last edited by

              @tchan said in Need help building Ubuntu Touch for Galaxy Tab 2:

              @yxles
              Hi,
              I'm not an expert of porting but maybe the device is a bit too low of specs.
              I have a Galaxy tab 4 and it's also too low (1Go) of RAM.

              Good luck!

              That is not an issue, I have had successfully built halium and ubuntu touch for the device, the issue is missing files

              1 Reply Last reply Reply Quote 0
              • M Offline
                Mighty @Yxles
                last edited by

                @yxles said in Need help building Ubuntu Touch for Galaxy Tab 2:

                Looking for mention of gpg on default.xml at https://github.com/Halium/android/blob/halium-7.1/default.xml for Halium 7.1 shows up nothing, is that normal?

                https://github.com/Halium/android/pull/49

                Y 1 Reply Last reply Reply Quote 1
                • Y Offline
                  Yxles @Mighty
                  last edited by

                  @mighty hey its you, thx for helping me with this but there's another problem. So I downloaded the master branch of gpg here https://github.com/ubports/android_external_gpg and paste it on the external folder. Now when I execute mka mkbootimg I got this error

                  build/core/base_rules.mk:183: *** external/gpg: MODULE.TARGET.STATIC_LIBRARIES.libdl already defined by bionic/libdl.
                  make: *** [build/core/ninja.mk:167: /home/yxles/halium/out/build-aosp_espresso3g.ninja] Error 1
                  make: Leaving directory '/home/yxles/halium'
                  

                  So I thought maybe it conflicted with bionic/libdl so I removed that and execute the command again and now I got this

                  build/core/binary.mk:1253: external/gpg/g10/Android.mk: static_gpg: Unused source files: filter.h
                  build/core/binary.mk:1253: external/gpg/util/Android.mk: libgpgutil: Unused source files: assuan-defs.h
                  device/sample/frameworks/PlatformLibrary/Android.mk:37: build/core/java_library.mk: No such file or directory
                  make: *** [build/core/ninja.mk:167: /home/yxles/halium/out/build-aosp_espresso3g.ninja] Error 1
                  make: Leaving directory '/home/yxles/halium'
                  

                  How do I fix this?

                  Y 1 Reply Last reply Reply Quote 0
                  • Y Offline
                    Yxles @Yxles
                    last edited by

                    @yxles said in Need help building Ubuntu Touch for Galaxy Tab 2:

                    @mighty hey its you, thx for helping me with this but there's another problem. So I downloaded the master branch of gpg here https://github.com/ubports/android_external_gpg and paste it on the external folder. Now when I execute mka mkbootimg I got this error

                    build/core/base_rules.mk:183: *** external/gpg: MODULE.TARGET.STATIC_LIBRARIES.libdl already defined by bionic/libdl.
                    make: *** [build/core/ninja.mk:167: /home/yxles/halium/out/build-aosp_espresso3g.ninja] Error 1
                    make: Leaving directory '/home/yxles/halium'
                    

                    So I thought maybe it conflicted with bionic/libdl so I removed that and execute the command again and now I got this

                    build/core/binary.mk:1253: external/gpg/g10/Android.mk: static_gpg: Unused source files: filter.h
                    build/core/binary.mk:1253: external/gpg/util/Android.mk: libgpgutil: Unused source files: assuan-defs.h
                    device/sample/frameworks/PlatformLibrary/Android.mk:37: build/core/java_library.mk: No such file or directory
                    make: *** [build/core/ninja.mk:167: /home/yxles/halium/out/build-aosp_espresso3g.ninja] Error 1
                    make: Leaving directory '/home/yxles/halium'
                    

                    How do I fix this?

                    @Mighty removing device/sample fix it but I saw on the github that its needed

                    M 1 Reply Last reply Reply Quote 0
                    • Y Offline
                      Yxles
                      last edited by Yxles

                      ok now mka mkbootimg completed successfully as well as export USE_HOST_LEX=yes mka halium-boot but without the device/sample but now when executing mka systemimage I got this

                      Running kati to generate build-aosp_espresso3g.ninja...
                      No need to regenerate ninja file
                      Starting build with ninja
                      ninja: Entering directory `.'
                      ninja: error: '/home/yxles/halium/out/target/product/espresso3g/obj/SHARED_LIBRARIES/libdl_intermediates/export_includes', needed by '/home/yxles/halium/out/target/product/espresso3g/obj/EXECUTABLES/applypatch_intermediates/import_includes', missing and no known rule to make it
                      make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
                      make: Leaving directory '/home/yxles/halium'
                      
                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        Mighty @Yxles
                        last edited by

                        @yxles said in Need help building Ubuntu Touch for Galaxy Tab 2:

                        ok now mka mkbootimg completed successfully as well as export USE_HOST_LEX=yes mka halium-boot but without the device/sample but now when executing mka systemimage I got this

                        Running kati to generate build-aosp_espresso3g.ninja...
                        No need to regenerate ninja file
                        Starting build with ninja
                        ninja: Entering directory `.'
                        ninja: error: '/home/yxles/halium/out/target/product/espresso3g/obj/SHARED_LIBRARIES/libdl_intermediates/export_includes', needed by '/home/yxles/halium/out/target/product/espresso3g/obj/EXECUTABLES/applypatch_intermediates/import_includes', missing and no known rule to make it
                        make: *** [build/core/ninja.mk:152: ninja_wrapper] Error 1
                        make: Leaving directory '/home/yxles/halium'
                        

                        Hey! Please ping me on github, i'm not very active here, anyways you can just make that folder i suppose

                        Y 1 Reply Last reply Reply Quote 1
                        • M Offline
                          Mighty @Yxles
                          last edited by

                          @yxles said in Need help building Ubuntu Touch for Galaxy Tab 2:

                          @yxles said in Need help building Ubuntu Touch for Galaxy Tab 2:

                          @mighty hey its you, thx for helping me with this but there's another problem. So I downloaded the master branch of gpg here https://github.com/ubports/android_external_gpg and paste it on the external folder. Now when I execute mka mkbootimg I got this error

                          build/core/base_rules.mk:183: *** external/gpg: MODULE.TARGET.STATIC_LIBRARIES.libdl already defined by bionic/libdl.
                          make: *** [build/core/ninja.mk:167: /home/yxles/halium/out/build-aosp_espresso3g.ninja] Error 1
                          make: Leaving directory '/home/yxles/halium'
                          

                          So I thought maybe it conflicted with bionic/libdl so I removed that and execute the command again and now I got this

                          build/core/binary.mk:1253: external/gpg/g10/Android.mk: static_gpg: Unused source files: filter.h
                          build/core/binary.mk:1253: external/gpg/util/Android.mk: libgpgutil: Unused source files: assuan-defs.h
                          device/sample/frameworks/PlatformLibrary/Android.mk:37: build/core/java_library.mk: No such file or directory
                          make: *** [build/core/ninja.mk:167: /home/yxles/halium/out/build-aosp_espresso3g.ninja] Error 1
                          make: Leaving directory '/home/yxles/halium'
                          

                          How do I fix this?

                          @Mighty removing device/sample fix it but I saw on the github that its needed

                          Where does it say that removing device/sample is gonna fix it?

                          Y 1 Reply Last reply Reply Quote 0
                          • Y Offline
                            Yxles @Mighty
                            last edited by

                            @mighty the line

                            device/sample/frameworks/PlatformLibrary/Android.mk:37: build/core/java_library.mk: No such file or directory
                            

                            I guess when it tries to build the device/sample, it looks for that file but since it doesn't exist for me it just errors out and stop the building so I just deleted it (temporarily) to see if it fix it and it did build without errors

                            1 Reply Last reply Reply Quote 0
                            • Y Offline
                              Yxles @Mighty
                              last edited by

                              @mighty sure, I'll just move this discussion at github. [https://github.com/Halium/projectmanagement/issues/238]

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