《!-------------------20180516-----------------------------》
編譯android報錯
including ./vendor/mstar/supernova/projects/android.mk ...最後找到原因的我眼淚掉下來....export includes file: external/bluetooth/bluedroid/hci/android.mk -- out/target/product/generic/obj/shared_libraries/libbt-hci_intermediates/export_includes
export includes file: external/bluetooth/bluedroid/utils/android.mk -- out/target/product/generic/obj/shared_libraries/libbt-utils_intermediates/export_includes
export includes file: external/bluetooth/bluedroid/gki/android.mk -- out/target/product/generic/obj/static_libraries/libbt-brcm_gki_intermediates/export_includes
export includes file: external/bluetooth/bluedroid/bta/android.mk -- out/target/product/generic/obj/static_libraries/libbt-brcm_bta_intermediates/export_includes
export includes file: external/bluetooth/bluedroid/stack/android.mk -- out/target/product/generic/obj/static_libraries/libbt-brcm_stack_intermediates/export_includes import includes file: out/target/product/generic/obj/shared_libraries/bluetooth.default_intermediates/import_includes target thumb c++: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/btif_config_util.cpptarget thumb c: bluetooth.default <= external/bluetooth/bluedroid/main/../btif/src/bluetooth.c external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:415:1: error: missing initializer [-werror=missing-field-initializers] external/bluetooth/bluedroid/main/../btif/src/bluetooth.c:415:1: error: (near initialization for 'bluetoothinte***ce.enter_headless_mode') [-werror=missing-field-initializers] cc1: all warnings being treated as errors make: *** [out/target/product/generic/obj/shared_libraries/bluetooth.default_intermediates/../btif/src/bluetooth.o] 錯誤 1
居然是因為在編譯android的之前沒有source build/env... >>> lunch!!!我的天,還是要細心細心
《!-------------------20180516-----------------------------》
android 編譯:
kconfig setting :"ov5648_mipi_raw imx214_mipi_raw ov5648sub_mipi_raw imx278_mipi_raw gc5025_mipi_raw "
projectconfig setting:"imx214_mipi_raw ov5648_mipi_raw ov5648sub_mipi_raw imx278_mipi_raw gc5025_mipi_raw "
***string error***config_custom_kernel_imgsensor not sync with custom_kernel_imgsensor in projectconfig.mk
解決方法:
device/newmobi/newmobi6753_66t_v_l1/projectconfig.mk 的custom_kernel_imgsensor = 順序和
kernel-3.10/arch/arm64/configs/newmobi6753_66t_v_l1_debug_defconfig 的config_custom_kernel_imgsensor=順序和
kernel-3.10/arch/arm64/configs/newmobi6753_66t_v_l1_defconfig的config_custom_kernel_imgsensor=順序一致
(target_product=full_newmobi6753_66t_v_l1 newmobi6753_66t_v_l1 是編譯的專案名)
《!-------------------20180517-----------------------------》
android 編譯:
/root/i7_new/xy3501_l1/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/bin/../lib/gcc/x86_64-linux/4.6/../../../../x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/static_libraries/libcompiler_rt_intermediates/libcompiler_rt.a(eprintf.o): unsupported reloc 43 against global symbol stderr
external/compiler-rt/lib/builtins/eprintf.c:32: error: unsupported reloc 43
collect2: ld returned 1 exit status
make: *** [out/host/linux-x86/obj32/lib/libcompiler_rt.so] error 1
make: *** waiting for unfinished jobs....
#### make failed to build some targets (02:06:23 (hh:mm:ss)) ####
解決:1.art/build/android.common_build.mk中把true改為false
# host.2.執行命令,更改鏈結指向art_host_clang := false
ifneq ($(without_host_clang),
false) #ture--->false
# by default, host builds use clang
forbetter warnings.
art_host_clang :=ture
endif
ln -sf /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6/x86_64-linux/bin/ld原因: 的15樓 && 19樓
Android編譯環境報錯記錄
一 報錯出現了 build core host shared library internal.mk 44 recipe for target out host linux x86 obj lib libc so failed 解決方案 1.art build android.common buil...
編譯成android新增按鈕報錯
cocos ext.h改為extensions cocos ext.h 還有不要用 要用 android.mk 新增這一句 local whole static libraries cocos extension static 根據本樓以上所有建議,已經能編譯至android了,感謝各位 cocos...
gradle編譯報錯
同事發過來乙個專案莫名編譯不通過 報錯資訊 a problem occurred configuring project library org.gradle.api.internal.tasks.defaulttaskinputs taskinputunionfilecollection cann...