[HELP] make failed due to an error

bnayagrawal

Senior Member
Apr 20, 2013
110
38
0
Bangalore
www.bnayagrawal.xyz
Hello guys
I have setup aosp build environment on my google cloud platform by following this guide.
> synced android-8.0.0_r4(branch) repo.
> Cloned the device tree in dir "aosp/device/lenovo/p2a42/" [device tree by wzedlare]
[INSIDE THE DEVICE TREE DIR]
> Modified the file "vendorsetup.sh". Now it contains "add_lunch_combo full_p2a42-userdebug" this line.
> Created a new file AndroidProducts.mk and inserted this "
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_p2a42.mk
" 2 lines.
[VENDOR TREE] [by wzedlare]
> cloned the vendor tree in dir "aosp/vendor/lenovo/p2a42/"

I added missing qcom common and sepolicy files

Now i run the commands in aosp directory [outputs in attachment]
---------------------------------------------------
> . build/envsetup.h
> make clobber
> lunch
and choose 25 which is p2a42
[ALL WENT FINE TILL HERE]
now after i tried to build using this command
> make -j4

i got the following error
"build/core/binary.mk:1485: error: device/lenovo/p2a42/gps/loc_api/libloc_api_50001/Android.mk: libloc_eng: C_INCLUDES must be under the source or output directories: /loc_api/libloc_api_50001.
09:15:08 ckati failed with: exit status 1
build/core/main.mk:21: recipe for target 'run_soong_ui' failed
make: *** [run_soong_ui] Error 1"

Can any developer here help me in this?
Thanks
 

Attachments

abhayruparel

Senior Member
Dec 27, 2016
590
979
113
Ahmedabad
Last edited:
  • Like
Reactions: bnayagrawal
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone