Include headers files location missing during the build process
549 views
Skip to first unread message
Raman Katwal
unread,
Jun 17, 2015, 10:22:14 AM6/17/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-...@googlegroups.com
Hi Team,
I am trying to build the ROM from AOSP Source based on 5.1.1. Till now the build was going fine but now I am facing issue with compilation errors.
Command Used:
1) source build/envsetup.sh
2) lunch <option 7 for my device>
3) Build went fine for quite some time then file missing error.
The QCOM stuff creating these error because each files in the folder hardware/qcom/display/msm8974 missing the reference to compiler header file/location. So I don't want to amend each reference to point specifically. I know where the files are located but compiler not picking it up.
E.G: #include <media/msm_media_info.h>
All the stuff available on >> hardware/qcom/msm8x74
Can someone please guide me like which ENV variable I need to check?? or which .mk file I need to amend ??
******************ERROR DETAILS************** target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp target thumb C++: libmemalloc <= hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp hardware/qcom/display/msm8974/libgralloc/alloc_controller.cpp:41:34: fatal error: media/msm_media_info.h: No such file or directory #include <media/msm_media_info.h> ^ compilation terminated. build/core/binary.mk:620: recipe for target 'out/target/product/cancro/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o' failed make: *** [out/target/product/cancro/obj/SHARED_LIBRARIES/libmemalloc_intermediates/alloc_controller.o] Error 1 make: *** Waiting for unfinished jobs.... *********************************
quanganh pham
unread,
Jun 24, 2015, 8:07:24 AM6/24/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-...@googlegroups.com
You can get pass it by simply add to your BoardConfig.mk:
TARGET_BOARD_KERNEL_HEADERS := path/to/your/dirname/header-files
Or add to your device.mk:
TARGET_PRODUCT_KERNEL_HEADERS := path/to/your/dirname/header-files
Details in build/core/config.mk & product-config.mk