Building LineageOS for an Unsupported Devices - Android Q&A, Help & Troubleshooting

I am trying to build recovery and Lineage 14.1 for my Samsung A5 2015 (A520W). I know that I need the vendor files, kernel and device tree.
Im currently trying to get the vendor files off my device using the mkvendor.sh file but in LineageOS 14.1 I cannot find this file. From what I understand I need to run
make -j4 otatools
to get this file but I get an error
ninja: error: unknown target 'otatools', did you mean 'obbtool'?
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (02:34 (mm:ss)) ####
Click to expand...
Click to collapse

*bump*

Related

Sony - Xperia - SGP611 - Custom Rom build error

Hi there all,
I have been trying for about a week to get a custom android 5 built for a client for their Xperia Z3 tablet i have followed all the instructions on the Sony website and am running Ubuntu 16, after getting the repositories and required sony Vendor files i finally get to the make -j4 command, this starts to run until it hits an error saying that there is no vendor file for scorpion_windy and then breaks the make process, my question is can i download this resource separately, and also if not how can i choose what files the make command uses can i not just skip the scorpion_windy file?
I am a complete noob and any assistance in this regard would be much appreciated!
Thanks in advance
The info on this thread is what I used http://forum.xda-developers.com/z3-...torial-stock-android-marshmallow-6-0-t3409486 It worked fine on LinuxMint KDE.
SGP611 Build errors
Hi There,
I appreciate the input, but i am attempting to compile the aosp archive, once i complete the setup and finally get to make -j4 the process runs along until it gives me an error regarding the file healthd and the specific error of battery monitor error, i have tried to do this in kit kat, jellybean and marshmallow now have all the sony device files followed the instructions here
developer.sonymobile.com/open-devices/aosp-build-instructions/how-to-build-aosp-marshmallow-for-unlocked-xperia-devices/
But no dice im pretty confused and frustrated at this point any thoughts would be very much appreciated
Can you post a copy of the error from the terminal console?
iancornelius said:
Can you post a copy of the error from the terminal console?
Click to expand...
Click to collapse
Hi There,
Thank you for your reply here is the error im getting
...
including ./vendor/sony/yukon-seagull/proprietary/Android.mk ...
including ./vendor/sony/yukon-tianchi/proprietary/Android.mk ...
No private recovery resources for TARGET_DEVICE scorpion_windy
make: *** No rule to make target 'external/openssl/flavor.mk'. Stop.
#### make failed to build some targets (01:02 (mm:ss)) ####
very frustrating when you learning
Ok so i cleaned my entire system and re synced my repos, and got much further in the process follwing the instructions exactly and now i get this error
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:50:56 (hh:mm:ss)
Any help would be much appreciated!
Monkybomb said:
Ok so i cleaned my entire system and re synced my repos, and got much further in the process follwing the instructions exactly and now i get this error
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
libnativehelper/JniInvocation.cpp:165: error: unsupported reloc 43
clang: error: linker command failed with exit code 1 (use -v to see invocation)
build/core/host_shared_library_internal.mk:44: recipe for target 'out/host/linux-x86/obj32/lib/libnativehelper.so' failed
make: *** [out/host/linux-x86/obj32/lib/libnativehelper.so] Error 1
make: *** Waiting for unfinished jobs....
#### make failed to build some targets (01:50:56 (hh:mm:ss)
Any help would be much appreciated!
Click to expand...
Click to collapse
I've recently built Nougat for my device and came across no errors and followed the guide to the single letter. Have you done everything it has asked to? Most importantly the first part regarding openjdk-8 and the other libraries to be installed.

[HELP] Error in 'make otapackage'

after i type make otapackage, after some time i get this error message and build stops. every time same error.
[ 69% 21776/31360] build out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c
FAILED: /bin/bash -c "external/iw/version.sh out/target/product/hikari/gen/EXECUTABLES/iw_intermediates/version.c"
fatal: No names found, cannot describe anything.
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
#### make failed to build some targets (05:33:08 (hh:mm:ss)) ####
Click to expand...
Click to collapse
can anyone help?
Are you trying to make AOSP otapackage
Ashwinrg said:
Are you trying to make AOSP otapackage
Click to expand...
Click to collapse
yeah, AOSP. any solution? i'm still struck

Help Build Lineageos for Xiaomi Redmi Pro

Can someone please help me?
I'm having trouble while to compile my build.
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/system.prop', needed by '/home/neverson/android/system/out/target/product/omega/obj/ETC/system_build_prop_intermediates/build.prop', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/neverson/android/system'
What this error means and how can I fix it? Just for the context I have system.prop file. And I also tried disable ninja using export USE_NINJA=false. but the error remains.
You device tree?
thinhx2 said:
You device tree?
Click to expand...
Click to collapse
Here is my device tree
https://drive.google.com/open?id=0B0M07vEulBG8eGE3c2hUaUVhcTA
Dersaun said:
Here is my device tree
https://drive.google.com/open?id=0B0M07vEulBG8eGE3c2hUaUVhcTA
Click to expand...
Click to collapse
You can upload to github.
Hi,
Here is my device tree in github
https://github.com/Dersaun/android_device_Xiaomi_omega
your device tree is not complete
Dersaun said:
Can someone please help me?
I'm having trouble while to compile my build.
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/system.prop', needed by '/home/neverson/android/system/out/target/product/omega/obj/ETC/system_build_prop_intermediates/build.prop', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/neverson/android/system'
What this error means and how can I fix it? Just for the context I have system.prop file. And I also tried disable ninja using export USE_NINJA=false. but the error remains.
Click to expand...
Click to collapse
Hi sir did u fix this error can u tell me how u fixed this error

CM 12.0 Build Failed with Error 127

I'm trying to build CM 12.0 for Nexus 9.
I followed instructions from here :
https://wiki.lineageos.org/devices/flounder/build#start-the-build
Only thing I changed is replacing CM-14.1 with CM-13.0 in the following command:
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
I am getting Error 127. These are the details:
Code:
vendor/cm/build/core/maven_artifact.mk:42: recipe for target '/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar' failed
make: *** [/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar] Error 127
make: *** Waiting for unfinished jobs....
Notice file: packages/providers/DataUsageProvider/NOTICE -- /home/attila/android/cm13/out/target/product/flounder/obj/NOTICE_FILES/src//system/priv-app/DataUsageProvider/DataUsageProvider.apk.txt
make: Leaving directory '/home/attila/android/cm13'
#### make failed to build some targets (20:33 (mm:ss)) ####
Not sure What I'm doing wrong. Any help will be greatly appreciated.
pikudroid said:
I'm trying to build CM 12.0 for Nexus 9.
I followed instructions from here :
https://wiki.lineageos.org/devices/flounder/build#start-the-build
Only thing I changed is replacing CM-14.1 with CM-13.0 in the following command:
Code:
repo init -u https://github.com/LineageOS/android.git -b cm-14.1
I am getting Error 127. These are the details:
Code:
vendor/cm/build/core/maven_artifact.mk:42: recipe for target '/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar' failed
make: *** [/home/attila/android/cm13/out/target/common/obj/JAVA_LIBRARIES/ambientsdk_intermediates/com.cyngn.ambient.ambientsdk-1.6.0-147069776-39fe2d07.aar] Error 127
make: *** Waiting for unfinished jobs....
Notice file: packages/providers/DataUsageProvider/NOTICE -- /home/attila/android/cm13/out/target/product/flounder/obj/NOTICE_FILES/src//system/priv-app/DataUsageProvider/DataUsageProvider.apk.txt
make: Leaving directory '/home/attila/android/cm13'
#### make failed to build some targets (20:33 (mm:ss)) ####
Not sure What I'm doing wrong. Any help will be greatly appreciated.
Click to expand...
Click to collapse
In case someone faces the same problem in future, the error was there because I was missing maven.
Just do
Code:
sudo apt-get install maven

build lineage i9100

Can someone there help me I try to compile rom i9100 more of this error
find: '/home/viperx/android/lineage/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates': No such file or directory
build/core/base_rules.mk:183: *** vendor/samsung/galaxys2-common/proprietary: MODULE.TARGET.SHARED_LIBRARIES.libUMP already defined by hardware/samsung/exynos4/hal/libUMP.
make: *** [build/core/ninja.mk:167: /home/viperx/android/lineage/out/build-lineage_i9100.ninja] Error 1
make: Leaving directory '/home/viperx/android/lineage'
#### make failed to build some targets (01:53 (mm:ss)) ####

Categories

Resources