Android2.3 compilation in ubuntu11.10

Source: Internet
Author: User

1. CD android23

2. Make

Appears:

Find:'Frameworks/Base/Frameworks/Base/Docs/Html': The file or directory does not exist.

] Can be ignored, or you can create the folder above.

 

<Command line>: 0: 0: Error: "_ fortify_source" redefinition [-werror] <built-in>: 0: 0: Note: This is the previously defined location

] Modify build/CORE/Combo/HOST_linux-x86.mk line 61:

-Host_global_cflags + =-d_fortify_source = 0
+ Host_global_cflags + =-u_fortify_source-d_fortify_source = 0

 

Frameworks/base/libs/utils/refbase. cpp: In the member function 'void Android: refbase: weakref_type: trackme (bool, bool:
Frameworks/base/libs/utils/refbase. CPP: 483: 67: Error: 'const Android: refbase: weakref_impl 'As 'void Android: refbase: weakref_impl: trackme (bool, bool) the Type limit [-fpermissive] is discarded when the 'This' parameter is set.
Make: *** [out/host/linux-x86/obj/static_libraries/libutils_intermediates/refbase. O] Error 1

]

Cause: GCC 11.10 of ubuntu 4.6 is too high, and GCC 4.4 is required for Android compilation.

Solution: Change GCC and G ++ version 4.6 to 4.4.

Sudo apt-Get install gcc-4.4

Sudo apt-Get install g ++-4.4

Sudo Rm-RF/usr/bin/GCC/usr/bin/g ++

Sudo ln-S/usr/bin/gcc-4.4/usr/bin/GCC

Sudo ln-S/usr/bin/g ++-4.4/usr/bin/g ++

 

G ++: Error:-fpermissive: No file or directory
Make: *** [out/host/linux-x86/obj/static_libraries/libutils_intermediates/refbase. O] Error 1

]
Solution: sudo apt-Get install g ++-4.4-multilib

 

 

Note: Some input files use or overwrite outdated APIs.
Note: For details, use-xlint: deprecation to re-compile.
Note: Some input files use unchecked or insecure operations.
Note: For details, use-xlint: unchecked to recompile.
]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.