Record some common errors so that you can view and use them, saving time for searching.
1. stlport Problem Solving
External/stlport/src/num_put_float.cpp: In function 'bool STD: priv: _ stl_is_nan_or_inf (double) ': external/stlport/src/num_put_float.cpp: 143: Error: 'isnanorinf 'was not declared in this scopeexternal/stlport/src/num_put_float.cpp: In function 'bool STD: priv: _ stl_is_inf (double )':
Solution: Edit external/stlport/Android. mk to modify libstlport_cflags: =-d_gnu_source-duse_sprintf_instead
2. bitwise. c Problem Solving
In file encoded ded from external/tremolo/bitwise. C: 43:
External/tremolo/Misc. h: 82: Error: redefinition of 'Union magic'
Solution:
Add # include <endian. h> 3 and _ dso_handle to external/tremolo/Misc. h to solve the problem.
External/stlport/src/monetary. CPP: 39: Undefined reference to '_ dso_handle' out/target/product/Vm/obj/shared_libraries/libstlport_intermediates/src/locale. o: In function '_ static_initialization_and_destruction_0 ':
Solution: Add external/stlport/dll_main.cpp to extern "C" {void * _ dso_handle = 0 ;}
4. resolve the issue of dnsmasq callback
External/dnsmasq/src/internal. c: 21: 23: Error: Failed/failed. h: No such file or directoryexternal/dnsmasq/src/logs. c: 60: Error: Expected specifier-qualifier-list before 'dbuswatch 'external/dnsmasq/src/templates. c: 65: Error: Expected '=', ';', 'asm 'or' _ attribute _ 'before' Add _ watch'
Modify external/dnsmasq/src/config. h/* # define have_dbus */# ifdef _ Android __# UNDEF have_dbus # endif
5. libnfc-NXP Solution
Target arm C: libnfc <= external/libnfc-NXP/src/phlibnfc. ccc1: Error: Unrecognized command line option "-MAPCs" C0: Error: Unrecognized command line option "-MnO-sched-Prolog" C0: Error: unrecognized command line option "-mabi = aapcs-Linux" Maid: Error: Unrecognized command line option "-MnO-thumb-interwork" Modify external/libnfc-NXP/android. MK sets local_cflags + =-dnxp_messaging-pipeline-pipe-fomit-frame-pointer-wall-wno-trigraphs-werror-implicit-function-declaration-fno-strict-aliasing-MAPCs- mnO-sched-Prolog-mabi = aapcs-Linux-MnO-thumb-interwork-msoft-float-uarm-fno-common
-Change FPIC to local_cflags + =-dnxp_messaging-pipeline-pipe-fomit-frame-pointer-wall-wno-trigraphs-werror-implicit-function-declaration-fno-strict-aliasing-msoft -Float-uarm-fno-common-FPIC
6. iaudioeffect. C solution 6,
Out/target/product/Vm/obj/shared_libraries/libopensles_intermediates/iandroideffect. O :(. data. rel. ro. _ parameters [typeinfo for Android: sortedvector <Android: key_value_pair_t <unsigned long, Android: audioeffect *>
>] + 0x0): Undefined reference to 'vtable for _ cxxabiv1 ::__ vmi_class_type_info'
Change System/Media/opensles/libopensles/iandroideffect. C to iandroideffect. cpp, and update iaudioeffect. C-> iaudioeffect. cpp in the Android. mk file.
7. Eliminate the problem of local_module_tags (external/GRUB ),
Set local_module_tags: = optional
Build/CORE/base_rules.mk: 74: *** Module name: grub_stage1build/CORE/base_rules.mk: 75: *** makefile location: external/GRUB
Summary is good. Record here for query. Thank you, author's blog:
Http://carltao.blog.51cto.com