AOSP - error failed to build the custom ROM - Xperia Z5 Q&A, Help & Troubleshooting

'm trying to build AOSP for a supported device (sony Xperia z5) (aosp_mips64-eng) I follow the instruction here: https://forum.xda-developers.com/t/...sp-pie-custom-rom-for-xperia-devices.3921641/ After download the source, Initializing device type for ROM building. I Encounter an error while trying to build the custom ROM:
I there anything i could do? Have I done something wrong? I'm pretty sure i did the previous steps correctly.
============================================
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
No need to regenerate ninja file
ninja: error: 'device/generic/common/nfc/libnfc-nci.conf', needed by 'out/target/product/generic/system/etc/libnfc-nci.conf', missing and no known rule to make it
10:29:40 ninja failed with: exit status 1
build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1

helloguys2489574 said:
build AOSP for a supported device (sony Xperia z5) (aosp_mips64-eng)
Click to expand...
Click to collapse
You have to build for your device, not for a mips64 device as you can read in your mentioned instruction:
Code:
source build/envsetup.sh && lunch aosp_[device_model]-userdebug
Please take a closer look into the numerous tutorials available at the internet.
Please don't ask for further assistance if you don't know exactly what you're doing!

Related

compiling from source issues

hey, I'm trying to build stock android from source using the cyanogen vendors as usual. But when I try to compile I get the error
Code:
make: *** No rule to make target `out/target/product/bravo/kernel', needed by `out/target/product/bravo/boot.img'. Stop.
Obviously the kernel is an issue, but how would i go about fixing it?

Makefile error during CM10.1 Build: libmkyaffs2image_intermediates

Hi,
I'm trying to build CM10.1 for huashan : Xperia SP.
I have based my build on tsubasa: Xperia V.
But I'm not able to get past this error
make: * No rule to make target `/home/aniket/android/android/system/out/target/product/huashan/obj/STATIC_LIBRARIES/libmkyaffs2image_intermediates/export_includes', needed by `/home/aniket/android/android/system/out/target/product/huashan/obj/EXECUTABLES/recovery_intermediates/import_includes'. Stop.
I guess it is some kind of makefile issue and a tweak here or there might fix this ...
Any help ?
New error
I donno how I got past that error. But now I have a new error:
make: *** No rule to make target `android/android/android/system/out/target/product/huashan/obj/SHARED_LIBRARIES/libril_intermediates/export_includes', needed by `android/android/system/out/target/product/huashan/obj/EXECUTABLES/rild_intermediates/import_includes'
Any one ?

[Q] NEW TO PORTING ROMs.."No rule to make target "

I'm trying to porting CM11 to my Huawei U9200. I've forked Shev_t's device and vendor tree. While when I begin my build, something goes wrong like below, could anyone tell me what happened and what should I do?
Code:
make: *** No rule to make target `/home/alexander/android/system/out/target/product/viva/obj/SHARED_LIBRARIES/libbluetooth_intermediates/export_includes', needed by `/home/alexander/android/system/out/target/product/viva/obj/EXECUTABLES/hcidump_intermediates/import_includes'. Stop.

Android building errors - N5 Nougat

Hello everyone, i've some problems with building Nougat (AOSP) for Nexus 5.
I've modified manifest (that's how it look like) to have everything downloaded but it hangs on this error:
Code:
make: *** No rule to make target 'frameworks/base/services/core/../../../../system/netd/server/binder/android/net/metrics/IDnsEventListener.aidl', needed by '/home/edi194/AOSP/out/target/common/obj/JAVA_LIBRARIES/services.core_intermediates/src/../../../../system/netd/server/binder/android/net/metrics/IDnsEventListener.java'. Stop.
make: *** Waiting for unfinished jobs....
logtags: /home/edi194/AOSP/out/target/common/obj/JAVA_LIBRARIES/services_intermediates/src/core/java/com/android/server/EventLogTags.java <= frameworks/base/services/core/java/com/android/server/EventLogTags.logtags
I've thought that disabling ninja will make any difference but sadly not.
I'll be grateful for help.
If i've posted it in wrong section, please move it to correct
Edit: Yes, there is ThemeIntarfacer on manifest, but i need to have working build to do anything with it

Problem with building a Lineage OS Image (brunch zerofltexx)

Device: SM-G920
Lineage OS installable zip: lineage-17.1-20200606-UNOFFICIAL-zerofltexx (found on https://www.los-legacy.de/17.1/zerofltexx)
I follow the step by step guide on this website: https://wiki.lineageos.org/devices/zerofltexx
I extracted proprietary blobs from block-based OTAs from the zip obtained from the link: https://www.los-legacy.de/17.1/zerofltexx
The OTA doesn't include vendor.transfer.list and vendor.new.dat.br or vendor.new.dat.
During the building step I get this error:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/samsung/zero-common/proprietary/lib/libcamera_metadata.so', needed by '/home/louloulou/android/lineage/out/target/product/zerofltexx/system/lib/libcamera_metadata.so', missing and no known rule to make it
make: *** [build/core/ninja.mk:152 : ninja_wrapper] Erreur 1
make : on quitte le répertoire « /home/louloulou/android/lineage »
Do you have an idea of how to arrange this please?
Thanks a lot!
Cheers!
looks like it is missing some vendor LIB files, try to pull them from stock or AndroidDumps repository, then paste them in the libs folder
Tsumetaay said:
looks like it is missing some vendor LIB files, try to pull them from stock or AndroidDumps repository, then paste them in the libs folder
Click to expand...
Click to collapse
Thanks for the answer Tsumetaay!
Do you know a website where I can get them from?
(They weren't included in the installable zip)
louloui said:
Thanks for the answer Tsumetaay!
Do you know a website where I can get them from?
(They weren't included in the installable zip)
Click to expand...
Click to collapse
you can get it from AndroidDumps repo
some of them are in System/Vendor/Lib, Vendor/Lib or System/Lib, i made things easy to you, so here is the libs you need: https://dumps.tadiphone.dev/dumps/s...-NRD90M-G920FXXS6ETI6-release-keys/system/lib
also if you want to search for another phone just go to the root dir and search for the specific device.
louloui said:
Device: SM-G920
Lineage OS installable zip: lineage-17.1-20200606-UNOFFICIAL-zerofltexx (found on https://www.los-legacy.de/17.1/zerofltexx)
I follow the step by step guide on this website: https://wiki.lineageos.org/devices/zerofltexx
I extracted proprietary blobs from block-based OTAs from the zip obtained from the link: https://www.los-legacy.de/17.1/zerofltexx
The OTA doesn't include vendor.transfer.list and vendor.new.dat.br or vendor.new.dat.
During the building step I get this error:
Starting build with ninja
ninja: Entering directory `.'
ninja: error: 'vendor/samsung/zero-common/proprietary/lib/libcamera_metadata.so', needed by '/home/louloulou/android/lineage/out/target/product/zerofltexx/system/lib/libcamera_metadata.so', missing and no known rule to make it
make: *** [build/core/ninja.mk:152 : ninja_wrapper] Erreur 1
make : on quitte le répertoire « /home/louloulou/android/lineage »
Do you have an idea of how to arrange this please?
Thanks a lot!
Cheers!
Click to expand...
Click to collapse
use the trees from here or here . That guide is out dated. Just clone the local manifest, to .repo/local_manifests and repo sync and you will have all the vendor files, device trees, and kernel.

Categories

Resources