https://blog.csdn.net/a906754899/article/details/71522173
https://blog.csdn.net/gjy_it/article/details/79524561
报错时:
Export includes file: vendor/mediatek/proprietary/hardware/mtkcam/v3/device/Android.mk -- out/target/product/k8w/obj/STATIC_LIBRARIES/libcam.device3.common_intermediates/export_includes
Import includes file: out/target/product/k8w/obj/STATIC_LIBRARIES/libcam.device3.common_intermediates/import_includes
Export includes file: vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/v3/device/Android.mk -- out/target/product/k8w/obj/SHARED_LIBRARIES/libcam.device3_intermediates/export_includes
Notice file: vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/v3/device/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam.device3.so.txt
Notice file: vendor/mediatek/proprietary/hardware/mtkcam/v3/app/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam3_app.so.txt
Notice file: vendor/mediatek/proprietary/hardware/mtkcam/v3/utils/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam3_utils.so.txt
Notice file: vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/v3/hwpipeline/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam3_hwpipeline.so.txt
Notice file: vendor/mediatek/proprietary/hardware/mtkcam/v3/pipeline/DefaultPipelineModel/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam3_pipeline_DefaultPipelineModel.a.txt
Notice file: vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/v3/hwnode/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam3_hwnode.so.txt
Notice file: vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/v3/hwnode/FDNode/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam3_pipeline.fdNode.a.txt
Notice file: vendor/mediatek/proprietary/hardware/mtkcam/exif/v3/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam.exif.v3.so.txt
Notice file: vendor/mediatek/proprietary/platform/mt6580/hardware/mtkcam/hal/aaa/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam.hal3a.v3.so.txt
make: *** 没有规则可以创建“out/target/product/k8w/obj/SHARED_LIBRARIES/libcam_platform_intermediates/import_includes”需要的目标“out/target/product/k8w/obj/STATIC_LIBRARIES/libcam.halmemory_intermediates/export_includes”。 停止。
make: *** 正在等待未完成的任务....
Notice file: vendor/mediatek/proprietary/hardware/mtkcam/v3/pipeline/NOTICE -- out/target/product/k8w/obj/NOTICE_FILES/src//system/lib/libcam3_pipeline.so.tx
单独编译一下:
mmm vendor/mediatek/proprietary/hardware/mtkcam/
不要做make clean 接着执行 source build/envsetup.sh 、lunch 、make -jX 2>&1 | tee build2249.log
注:这个问题按这个方案最终没有解决。因为根本原因在于16.04的make版本太高导致的,改为3.8.2后仍然有这个问题。
最终将make版本降至3.8.1并安装所有相关的编译链工具后,这个问题才解决 。所以android 5.1最好还是用ubuntu14.04来编译比较好,省的折腾。
附:cmake 3.8.1的安装
./configure
make
make install
执行完后在/usr/local/bin中可得到新版本的make,复制到/usr/bin中即可
https://bbs.usoftchina.com/thread-200627-1-1.html