Need help with error while building unofficial crDroid ROM for my phone - General Questions and Answers

So I am building an unofficial copy of crDroid for my OnePlus 9R and I am getting this error:
Code:
error: hardware/oneplus/hidl/fingerprint/inscreen/Android.bp:44:1: "[email protected]" depends on undefined module "vendor.lineage.biometrics.fingerprint.inscree
[email protected]"
12:01:38 soong bootstrap failed with: exit status 1
#### failed to build some targets (01:32 (mm:ss)) ####
This never happened to me while building LineageOS 18.1. I am pretty new to compiling ROMs from source, so please help.
Thank you.

Errors while compiling crDroid 8 for OnePlus 9R
So, I was building crDroid for my phone the OnePlus 9R (codename: lemonades), and I encountered 2 errors.
The first one was after using the lunch command and selecting my device. The error was:
Code:
Which would you like? [aosp_arm-eng] 30
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Trying dependencies-only mode on a non-existing device tree?
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Now, I ignored this, and used the brunch command to start building the ROM, when I got this error:
Code:
error: hardware/oneplus/hidl/fingerprint/inscreen/Android.bp:44:1: "lineage.biom
[email protected]" depends on undefined module "ve
[email protected]"
17:03:33 soong bootstrap failed with: exit status 1
#### failed to build some targets (18 seconds) ####
Now, I assume I got this error due to missing files, so I re - downloaded the complete source code, and tried to build again, but I still got the same error.
I am pretty new to ROM development, and have no Idea what to do next, so any help would be appreciated.
Thank You.
(I have also attached Images of the errors.)

KomradeKamarov said:
Errors while compiling crDroid 8 for OnePlus 9R
So, I was building crDroid for my phone the OnePlus 9R (codename: lemonades), and I encountered 2 errors.
The first one was after using the lunch command and selecting my device. The error was:
Code:
Which would you like? [aosp_arm-eng] 30
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Trying dependencies-only mode on a non-existing device tree?
device/oneplus/sm8250-common/BoardConfigCommon.mk:181: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
Now, I ignored this, and used the brunch command to start building the ROM, when I got this error:
Code:
error: hardware/oneplus/hidl/fingerprint/inscreen/Android.bp:44:1: "lineage.biom
[email protected]" depends on undefined module "ve
[email protected]"
17:03:33 soong bootstrap failed with: exit status 1
#### failed to build some targets (18 seconds) ####
Now, I assume I got this error due to missing files, so I re - downloaded the complete source code, and tried to build again, but I still got the same error.
I am pretty new to ROM development, and have no Idea what to do next, so any help would be appreciated.
Thank You.
(I have also attached Images of the errors.)View attachment 5567035View attachment 5567037
Click to expand...
Click to collapse
i know this is a old thread but the correct sequence for crDroid buidling is the following:
1. repo sync
2. . build/envsetup.sh
3. brunch (followed by your device codename. I have the 9 Pro so mine would be brunch lemonadep
4. If it errors, then try
mka bacon -j$(nproc --all)
5. If it errors again, try brunch (followed by codename again)
I've gotten my phone to build successfully by doing this after it failed the first two times.

Related

Help solving errors on compiling LineageOS 15.1 build for Oppo R7f

So after following multiple guides on xda forums on compiling a rom (that exists in LineageOS/TheMuppets repositories), I've started compiling LOS15.1 builds for oppo r7f.
This is what I did if anyone wants to follow along:
https://forum.xda-developers.com/android/software-hacking/guide-how-to-build-lineageos-15-1-t3750175
The only deviation was made was after step 11 (or 10 i can't remember) after an error, so i changed the repo/project/file it was pointing to ("android_vendor_cm/config/common_full_phone.mk") to the one on lineage-15.1 branch ("android_vendor_lineage/config/common_full_phone.mk")
At brunch, another issue occurred:
Code:
in file included from device/oppo/msm8939-common/init/init_msm8939.cpp:42:system/core/init/util.h:29:10: fatal error: 'selinux/label.h' file not found #include <selinux/label.h>
Additionally:
Code:
make: Leaving directory '/home/user/android/lineage/kernel/oppo/msm8939'
Building DTBs
make: Entering directory '/home/user/android/lineage/kernel/oppo/msm8939'
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
DTC arch/arm/boot/dts/qcom/../msm8939-mtp-15011.dtb
make: Leaving directory '/home/user/android/lineage/kernel/oppo/msm8939'
ninja: build stopped: subcommand failed.
23:17:41 ninja failed with: exit status 1
#### failed to build some targets (13:11:17 (hh:mm:ss)) ####
:angel: Halp anyone?
Aaand lastly,
I shall take no credit for the building of this rom (should it turn out properly) because all code/kernel development are done by the amazing developers of:
https://github.com/LineageOS/android_device_oppo_r7
https://github.com/TheMuppets/proprietary_vendor_oppo
https://github.com/LineageOS

CM/LOS Build Error during zip packaging

I'm building a CM/LOS 13 ROM for a Mediatek based device. The build completes up until about 99% when it packages the ROM in to a .zip and the following lines appear:
PHP:
Install system fs image: /home/android/lineage13/out/target/product/QW09/system.img
/home/android/lineage13/out/target/product/QW09/system.img+/home/android/lineage13/out/target/product/QW09/obj/PACKAGING/recovery_patch_intermediates/recovery_from_boot.p maxsize=1096212480 blocksize=135168 total=529126717 reserve=11083776
Package target files: /home/android/lineage13/out/target/product/QW09/obj/PACKAGING/target_files_intermediates/lineage_QW09-target_files-eea485c9a7.zip
using prebuilt recovery.img from BOOTABLE_IMAGES...
using prebuilt boot.img from BOOTABLE_IMAGES...
putting script in bin/install-recovery.sh
/bin/bash: -c: line 0: unexpected EOF while looking for matching ``'
/bin/bash: -c: line 1: syntax error: unexpected end of file
build/core/Makefile:1682: recipe for target '/home/android/lineage13/out/target/product/QW09/obj/PACKAGING/target_files_intermediates/lineage_QW09-target_files-eea485c9a7.zip' failed
make: *** [/home/android/lineage13/out/target/product/QW09/obj/PACKAGING/target_files_intermediates/lineage_QW09-target_files-eea485c9a7.zip] Error 1
I've never experience this before when building LOS, and I can't work out if it's an issue in the device trees, or in the build system.
Here are the dev trees:
https://gitlab.com/optech/android_vendor_tenfifteen-qw09
https://gitlab.com/optech/android_device_tenfifteen-qw09

AOSP: Can't Run Emulator

I'm a AOSP newbie. I am following this tutorial.
I have successfully synced my repo to tag android-11.0.0_r29.
I set lunch to aosp_arm-eng. The build reports:
...
[ 99% 90444/90520] //art/build/apex:art-check-debug-apex-gen generate art-check-debug-apex-gen.dummy
--bitness=auto, trying to autodetect. This may be incorrect!
Detected multilib
[100% 90520/90520] Target vbmeta image: out/target/product/generic_arm64/vbmeta.img
#### build completed successfully (05:25:57 (hh:mm:ss)) ####
However, when I attempt to run the emulator:
[email protected]:~/aosp$ emulator
emulator: ERROR: Can't get kernel version from the kernel image file: '/home/clayton/aosp/prebuilts/qemu-kernel/arm64/ranchu/kernel-qemu'
Have not found a solution. Please help.

Problem building lineage source code for athene

I have this problem and i cant fix it. I try some tree sources of github but the problem its the same.
The guide i follow is this:
[Guide] How to Build Your Own Custom ROM [athene]
Hello guys. I will show you how to build LineageOS to Moto G4 Plus. You have to build in a Linux system. I prefer Ubuntu 16.04 in this guide. The lines which is starting with $ are commands you should write but you won't write $'s. 1- First...
forum.xda-developers.com
Thanks all!!!
breakfast athene
including vendor/lineage/vendorsetup.sh
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_athene".
14:18:38 dumpvars failed with: exit status 1
Device athene not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Found repository: android_device_motorola_athene
Default revision: lineage-16.0
Checking branch info
Default revision lineage-16.0 not found in android_device_motorola_athene. Bailing.
Branches found:
cm-13.0
cm-14.1
lineage-15.0
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_athene".
14:18:40 dumpvars failed with: exit status 1
build/make/core/product_config.mk:234: error: Can not locate config makefile for product "lineage_athene".
14:18:40 dumpvars failed with: exit status 1
** Don't have a product spec for: 'lineage_athene'
** Do you have the right repo manifest?

LineageOS 18.1, were we abandoned?

Will we have our Zenfone 6 for LineageOS 18.1?
Pretty sure it's never happening unless someone randomly picks it up.
Almost no development on the Zenfone 7 or Zenfone 8 flip either. People really don't want to have amazing front cameras I guess. Maybe ahead of it's time.
I prefer 9 anyway... no Android cov Build in surveillance!
I would like to build LineageOS 18.1 for Zenfone 6 flip, but i have not done such a build before.
Android 12 looks like crap and also has no SIP client.
Would it be enough to replace
repo init -u https://github.com/LineageOS/android.git -b lineage-17.1 with
repo init -u https://github.com/LineageOS/android.git -b lineage-18.1
and otherwise folow the same steps? Also, can it be done on Manjaro? I could otherwise set up an Ubuntu VM.
Thanks!
fartyfart said:
I would like to build LineageOS 18.1 for Zenfone 6 flip, but i have not done such a build before.
Android 12 looks like crap and also has no SIP client.
Would it be enough to replace
repo init -u https://github.com/LineageOS/android.git -b lineage-17.1 with
repo init -u https://github.com/LineageOS/android.git -b lineage-18.1
and otherwise folow the same steps? Also, can it be done on Manjaro? I could otherwise set up an Ubuntu VM.
Thanks!
Click to expand...
Click to collapse
I can't help you but please doo! Still rocking 17.1 on this thing.
i tried building 18.1 but got stuck at
~/android/lineage$ breakfast I01WD
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
build/make/core/product_config.mk:155: error: Can not locate config makefile for product "lineage_I01WD".
14:29:51 dumpvars failed with: exit status 1
/usr/bin/env: ‘python’: No such file or directory
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
build/make/core/product_config.mk:155: error: Can not locate config makefile for product "lineage_I01WD".
14:29:51 dumpvars failed with: exit status 1
In file included from build/make/core/config.mk:291:
In file included from build/make/core/envsetup.mk:266:
build/make/core/product_config.mk:155: error: Can not locate config makefile for product "lineage_I01WD".
14:29:52 dumpvars failed with: exit status 1
** Don't have a product spec for: 'lineage_I01WD'
** Do you have the right repo manifest?
Click to expand...
Click to collapse

Categories

Resources