How to build stock Android TV rom for S805, S812 .... ? - Android Stick & Console AMLogic based Computers

Hi there,
Recently, I was curious to know and learn how to build Android from source code.
I have AceMax M8S+ and I want to install stock Android TV os in it.
I have done the research and found a few repositories that have Amlogic build tools and etc.
I downloaded the manifest, update to the proper revisions and old packages and still got an error after 1 hour of building.
Code:
device/amlogic/n200/overlay/packages/apps/DeskClock/AndroidManifest.xml:39: error: Error: No resource found that matches the given name (at 'theme' with value '@style/DeskClock').
device/amlogic/n200/overlay/packages/apps/DeskClock/AndroidManifest.xml:179: error: Error: No resource found that matches the given name (at 'theme' with value '@style/ScreensaverSettingsActivityTheme').
device/amlogic/n200/overlay/packages/apps/DeskClock/AndroidManifest.xml:194: error: Error: No resource found that matches the given name (at 'theme' with value '@style/TimerAlertFullScreenTheme').
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
make: Leaving directory `/home/t1000/android'
#### make failed to build some targets (01:47:50 (hh:mm:ss)) ####
Here are the sources that I found
amlogic_android_manifest -> github/firmanjml
android_device_amlogic -> github/Android-Amlogic
github.com/khadas

Related

[Q] [BUILD ERROR] Illegal instruction

I have tried compiling CM7 and CM9 many times, I have re-downloaded the source many times. But always when building I get this error:
Code:
Target ram disk: out/target/product/tass/ramdisk.img
/bin/bash: line 1: 12664 Broken pipe out/host/linux-x86/bin/mkbootfs out/target/product/tass/root
12665 Illegal instruction | out/host/linux-x86/bin/minigzip > out/target/product/tass/ramdisk.img
make: *** [out/target/product/tass/ramdisk.img] Error 132
make: *** Deleting file `out/target/product/tass/ramdisk.img'
Any ideas? ( I Googled the problem but unfortunately found nothing useful )
Running 32bit system.

Build Error

I just attempted my first rom building from source. I was using the repo off of Cyanogenmod's github. Long story short I was attempting to build a kitkat rom for the jflteatt ala Samsung Galaxy S4. I repo synced and attempted to build, I got back some errors and was hoping someone might could help. It might be a simple mistake since this is my first attempt at building a rom from source on my own.
http://pastebin.com/3D0r0QUk
Heres a snippet, of course go to paste bin for better view
Code:
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected unqualified-id at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected '}' at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:40:1: error: expected unqualified-id before 'namespace'
hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:499:1: error: expected '}' at end of input
In file included from hardware/qcom/audio-caf/legacy/alsa_sound/ALSAStreamOps.cpp:38:0:
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected unqualified-id at end of input
hardware/qcom/audio-caf/legacy/alsa_sound/AudioHardwareALSA.h:863:5: error: expected '}' at end of input
make: *** [/home/leroy/cyanogen/out/target/product/jflteatt/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/AudioStreamInALSA.o] Error 1
make: *** [/home/leroy/cyanogen/out/target/product/jflteatt/obj/SHARED_LIBRARIES/audio.primary.msm8960_intermediates/ALSAStreamOps.o] Error 1
Thanks,
Leroy

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.

Error Building CM11 FOR SM-G310HN

HELLO I'M TRYING TO BUILD CM11 FOR SM-G310HN
BECAUSE WITH IT'S TOO SLOW WITH LOLLIPOP
BUT IT FAILS
THERE IS THE LOG OF TERMINAL
I'M ON LINUX MINT 19
nothing matches overlay file default_wallpaper.jpg, for flavor ,,,,,,,,,,,,hdpi,,,,,,,
nothing matches overlay file default_wallpaper.jpg, for flavor ,,,,,,,,,,,,xhdpi,,,,,,,
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
device/samsung/heatnfc3g/overlay/frameworks/base/core/res/res/xml/storage_list.xml:41: error: No resource identifier found for attribute 'externalApps' in package 'android'
build/core/package.mk:269: recipe for target '/home/salvatore/cm11/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk' failed
make: *** [/home/salvatore/cm11/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Eliminazione del file "/home/salvatore/cm11/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk"

Weird Android Build Error; Undefined 'Compiler' symbol

Recently, I have been trying to build Lineage OS 16.0 for my smartphone (Nokia 8). I have created a device tree, vendor tree and downloaded the kernel sources. However everytime I try to build, at around 63% it gives weird compilation errors. Here is the error message. I am building with WSL 2 environment;
Code:
[ 5% 2042/39631] //art/dex2oat:libart-dex2oat clang++ art/dex2oat/linker/image_writer.operator_out.cc [arm]
In file included from /mnt/d/dev/android/android/lineage/out/soong/.intermediates/art/dex2oat/art_dex2oat_operator_srcs/gen/art/dex2oat/linker/image_writer.operator_out.cc:3:
In file included from art/dex2oat/linker/image_writer.h:40:
art/compiler/driver/compiler_driver.h:99:18: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind,
^
art/compiler/driver/compiler_driver.h:145:3: error: unknown type name 'Compiler'
Compiler* GetCompiler() const {
^
art/compiler/driver/compiler_driver.h:348:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind GetCompilerKind() {
^
art/compiler/driver/compiler_driver.h:471:19: error: use of undeclared identifier 'Compiler'
std::unique_ptr<Compiler> compiler_;
^
art/compiler/driver/compiler_driver.h:472:3: error: use of undeclared identifier 'Compiler'
Compiler::Kind compiler_kind_;
^
5 errors generated.
...
ninja: build stopped: subcommand failed.
10:22:23 ninja failed with: exit status 1
#### failed to build some targets (01:49:21 (hh:mm:ss)) ####
Looking at it, the compiler complains that the class 'Compiler' is not defined in the 'compiler_driver.h' file. However looking at this file, it includes the 'compiler.h' which contains the Compiler class. Has anyone ever experienced this error, and is there any way to fix it?

Categories

Resources