I'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/guide-how-to-build-aosp-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
Related
this is my first time building an android custom rom and i got an error like this:
ninja: error: '/home/andra/android/lineage16/out/target/product/ASUS_Z01H_1/system/bin/app_process32', needed by '/home/andra/android/lineage16/out/target/product/ASUS_Z01H_1/system/bin/app_process', missing and no known rule to make it
18:14:10 ninja failed with: exit status 1
failed to build some targets (02:35 (mm:ss))
How to solve this?
help, i cant find any solution as to why its doing this im trying to build android-x86 but keep getting this error
H16TOFW firmware/edgeport/boot2.fw
H16TOFW firmware/edgeport/boot.fw
H16TOFW firmware/edgeport/down.fw
IHEX2FW firmware/emi62/midi.fw
H16TOFW firmware/edgeport/down2.fw
IHEX2FW firmware/whiteheat_loader.fw
IHEX2FW firmware/whiteheat.fw
IHEX2FW firmware/keyspan_pda/keyspan_pda.fw
IHEX2FW firmware/keyspan_pda/xircom_pgs.fw
make[1]: Leaving directory '/media/*USERNAME*/Not-so-speedy-one/Projects/android-x86/out/target/product/x86_64/obj/kernel'
make: Leaving directory '/media/*USERNAME*/Not-so-speedy-one/Projects/android-x86/kernel'
ninja: build stopped: subcommand failed.
01:23:42 ninja failed with: exit status 1
any advice is much appreciated
You are not providing enough log. The cause of the problem is probably a lot higher up in the log. In my case it was a java.lang.OutOfMemoryError, so I reduced the number of concurrent build tasks. That is the -j option in make.
Totally new to ROM building! Trying to build slim for the LG K20 Plus TP260 (MSM8917)
I've downloaded LG's source and have tried to assimilate it into Slim's source (basically merging everything but the frameworks folder) and am now trying to build.
But this is the Ninja error I get:
ninja: Entering directory `.'
ninja: error: '/home/android/Desktop/cheap_android_love/out/target/product/generic_arm64/obj/KERNEL_OBJ/usr', needed by '/home/android/Desktop/cheap_android_love/out/target/product/generic_arm64/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
I've checked the directory, and the "obj" folder doesn't even exist, so this error seems impossible to me... What files do I need to look at?
After changes to BoardConfig.mk and Kernel.mk makefiles regarding target kernel config and target source, everything goes together fine!
ninja: error: 'out/target/product/victara/obj/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/export_includes', needed by 'out/target/product/victara/obj/SHARED_LIBRARIES/libaudiopolicyservice_intermediates/import_includes', missing and no known rule to make it
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (04:02 (mm:ss)) ####
I got this error when compiling AOSP for victara (Moto X 2nd generation)... Anyone know how to fix ?
I'm using this local manifest: https://github.com/renanmarcs/local_manifests/blob/master/local.xml
And this is how I started to compile:
cd ~/aosp
repo sync
source build/envsetup.sh
lunch aosp_victara-userdebug
make -j2
SOLVED: I've changed "USE_CUSTOM_AUDIO_POLICY" in "BoardConfig.mk" to "0" for disable this option.
Do you have the common folder within qcom folder ?
If no then get the device/qcom/common folder from cm.
Add this line to your local_manifest.xml
Hope this helps.
I never had a problem compiling the AOSP version until 5.x. Now I'm trying to compile Android 6.0, which switched toolchain and uses Jack (Java Android Compiler Kit) but the compilation aborts.
The error seems to be related with a problem in compiling C object files, so the ld linker at some point starts producing file is empty errors such as the following one:
host SharedLib: libart (out/host/linux-x86/obj/lib/libart.so)
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//x86_64-linux/bin/ld: error: out/host/linux-x86/obj/SHARED_LIBRARIES/libart_intermediates/check_jni.o: file is empty
When I check these files their size is 0 bytes. I tried the process two times before writing this, but every time the make process stops with the follosing error:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj/lib/libart.so] Error 1
Have you experienced something like this and found a solution?