Android 4.0 compilation Error

Source: Internet
Author: User

1,
**************************************** ********************
You are attempting to build with the incorrect version
Of java.
 
Your version is: java version "1.6.0 _ 24 ".
The specified correct version is: Java SE 1.6.
 
Please follow the machine setup instructions
Http://source.android.com/source/download.html
**************************************** ********************
Solution:
Install java 1.6
In envsetup. sh
Finally, add the set environment variable export JAVA_HOME =/usr/local/arm/jdk1.6.0 _ 31.
No
2.
Error 2
(Ir_dereference_variable *) '[-Woverloaded-virtual]
External/mesa3d/src/glsl/linker. cpp: In function 'void
Assign_varying_locations (gl_shader_program *, gl_shader *, gl_shader *)':
External/mesa3d/src/glsl/linker. cpp: 1394: 49: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1394: 50: error: 'varyings 'was not
Declared in this scope
External/mesa3d/src/glsl/linker. cpp: 1394: 58: error: 'offsetof 'was not
Declared in this scope
External/mesa3d/src/glsl/linker. cpp: 1395: 48: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1412: 47: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1412: 48: error: 'position' was not
Declared in this scope
External/mesa3d/src/glsl/linker. cpp: 1414: 47: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1414: 48: error: 'pointsize' was
Not declared in this scope
External/mesa3d/src/glsl/linker. cpp: 1424: 47: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1424: 48: error: 'position' was not
Declared in this scope
External/mesa3d/src/glsl/linker. cpp: 1428: 47: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1428: 48: error:
'Frontfacingpointcoord 'was not declared in this scope
External/mesa3d/src/glsl/linker. cpp: 1431: 47: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1431: 48: error:
'Frontfacingpointcoord 'was not declared in this scope
External/mesa3d/src/glsl/linker. cpp: In function 'void
Link_shaders (const gl_context *, gl_shader_program *)':
External/mesa3d/src/glsl/linker. cpp: 1734: 49: error: expected primary-
Expression before ', 'token
External/mesa3d/src/glsl/linker. cpp: 1734: 50: error: 'fragcolor' was
Not declared in this scope
External/mesa3d/src/glsl/linker. cpp: 1734: 59: error: 'offsetof 'was not
Declared in this scope
Make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/
LibMesa_intermediates/src/glsl/linker. o] Error 1

Solution:
Add "# include <stddef. h>" to the header of the linker. cpp file.

3.
External/oprofile/libpp/format_output.h: 94: 22: error: reference a €? Countsa €? Cannot be declared a €? Mutablea €? [-Fpermissive]
In file encoded ded from external/oprofile/libpp/arrange_profiles.cpp: 24: 0:
External/oprofile/libpp/format_output.h: 94: 22: error: reference a €? Countsa €? Cannot be declared a €? Mutablea €? [-Fpermissive]
In file encoded ded from external/oprofile/libpp/format_output.cpp: 26: 0:
External/oprofile/libpp/format_output.h: 94: 22: error: reference a €? Countsa €? Cannot be declared a €? Mutablea €? [-Fpermissive]
Make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/op_header.o] Error 1
Make: *** Waiting for unfinished jobs ....
In file encoded ded from external/oprofile/libpp/xml_utils.h: 15: 0,
From external/oprofile/libpp/xml_utils.cpp: 14:
External/oprofile/libpp/format_output.h: 94: 22: error: reference a €? Countsa €? Cannot be declared a €? Mutablea €? [-Fpermissive]
Make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/xml_utils.o] Error 1
Make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/arrange_profiles.o] Error 1
Make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/liboprofile_pp_intermediates/format_output.o] Error 1
Solution:
You need to modify the external/oprofile/libpp/format_output.h: 94 rows
Mutable counts_t & counts is
Counts_t & counts

4.
Frameworks/compile/slang/slang_rs_export_foreach.cpp: 249: 23: error: variable a €? ParamNamea €? Set but not used [-Werror = unused-but-set-variable
Solution:
 
Fix/Workaround:
Frameworks/compile/slang/Android. mk
-Local_cflags_for_slang: =-Wno-sign-promo-Wall-Wno-unused-parameter-Werror
+ Local_cflags_for_slang: =-Wno-sign-promo-Wall-Wno-unused-parameter
5.
External/gtest/src/../include/gtest/internal/gtest-param-util.h: 122: 11: error: a €? Ptrdiff_ta €? Does not name a typ
Solution:
$ Vi external/gtest/src/../include/gtest/internal/gtest-param-util.h
+ # Include <cstddef>


From the persistent Embedded Zone

Related Article

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.