[Android Software Development] Desmanto:
Thanks for the tips. I just realize that it is case sensitive. Renaming the folder ZTE to zte works now. It asks to use Java 1.7 or 1.8, so i switch to 1.8 (and 1.7 also the same, as it is for lollipop). However, when i compile, there is another error message after 3 minutes something.

It is very long, i just take the last few lines before it stopped.

including ./vendor/omni/Android.mk ...
No private recovery resources for TARGET_DEVICE P839F30
build/core/tasks/kernel.mk:104: ***************************************************************
build/core/tasks/kernel.mk:105: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:106: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:107: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:108: * source repository to kernel/zte/msm8916
build/core/tasks/kernel.mk:109: * See http://xdaforums.com/wiki/ROM/Integrated_Kernel_Build
build/core/tasks/kernel.mk:110: * for more information *
build/core/tasks/kernel.mk:111: ***************************************************************
mkdir -p /home/pureshot/omni/out/target/product/P839F30/recovery/root"/twres/"
cp -fr bootable/recovery/gui/devices/common/res/* bootable/recovery/gui/devices/portrait/res/* /home/pureshot/omni/out/target/product/P839F30/recovery/root"/twres/"
cp -fr bootable/recovery/gui/devices/1080x1920/res/* /home/pureshot/omni/out/target/product/P839F30/recovery/root"/twres/"
rm -f /home/pureshot/omni/out/target/product/P839F30/recovery/root"/twres/"fonts/*.dat
mkdir -p /home/pureshot/omni/out/target/product/P839F30/recovery/root/sbin/
ln -sf /sbin/busybox /home/pureshot/omni/out/target/product/P839F30/recovery/root/sbin/sh
ln -sf /sbin/pigz /home/pureshot/omni/out/target/product/P839F30/recovery/root/sbin/gzip
ln -sf /sbin/unpigz /home/pureshot/omni/out/target/product/P839F30/recovery/root/sbin/gunzip
target Prebuilt: twrp (/home/pureshot/omni/out/target/product/P839F30/obj/RECOVERY_EXECUTABLES/twrp_intermediates/twrp)
Install: /home/pureshot/omni/out/target/product/P839F30/recovery/root/twres//twrp
make: *** No rule to make target '/home/pureshot/omni/out/target/product/P839F30/obj/KERNEL_OBJ/usr', needed by '/home/pureshot/omni/out/target/product/P839F30/obj/SHARED_LIBRARIES/libminuitwrp_intermediates/events.o'. Stop.

#### make failed to build some targets (9 seconds) ####

I google the problem. It says that I miss something in the mk file or the file in the directory. I checked and boardconfig.mk. There is a line where it commented out the TARGET_PREBUILT_KERNEL. There is kernel file along with where mk files located. But it is not used based on this line (commented).

# Kernel

BOARD_KERNEL_BASE := 0x80000000

BOARD_KERNEL_CMDLINE := console=ttyHSL0,115200,n8 androidboot.console=ttyHSL0 androidboot.hardware=qcom user_debug=30 msm_rtb.filter=0x3F ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhci lpm_levels.sleep_disabled=1 androidboot.selinux=permissive

BOARD_KERNEL_PAGESIZE := 2048

BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --dt device/zte/P839F30/dt.img

BOARD_RAMDISK_OFFSET := 0x01000000

BOARD_KERNEL_TAGS_OFFSET := 0x00000100

#TARGET_PREBUILT_KERNEL := device/zte/P839F30/kernel

TARGET_KERNEL_SOURCE := kernel/zte/msm8916

TARGET_KERNEL_CONFIG := msm8916-zte_defconfig

TARGET_KERNEL_VARIANT_CONFIG := msm_P839F30-PV_defconfig

So I try to uncomment it, there come out another error. I tried using LANG=C in the lunch and same.

host C: checkpolicy <= external/checkpolicy/checkpolicy.c
external/checkpolicy/checkpolicy.c: In function ‘display_bools’:
external/checkpolicy/checkpolicy.c:296:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < policydbp->p_bools.nprim; i++) {
^
external/checkpolicy/checkpolicy.c: In function ‘main’:
external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (policyvers != n)
^
host C++: checkpolicy <= /home/pureshot/omni/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option ‘-Wsign-promo’ is valid for C++/ObjC++ but not for C
Lex: checkpolicy <= external/checkpolicy/policy_scan.l
flex-2.5.39: loadlocale.c:131: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.
build/core/binary.mk:576: recipe for target '/home/pureshot/omni/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed
make: *** [/home/pureshot/omni/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)

#### make failed to build some targets (06:41 (mm:ss)) ####

I know there must be something missing in the mk file or the directory. Try to resync repo and force resync to make sure the file is correct.

Rebuild again, still same error. What did I miss?

Edit : This thread seems to be bug out, my post never come to the last