{"id":220,"date":"2013-06-07T07:35:16","date_gmt":"2013-06-07T07:35:16","guid":{"rendered":"http:\/\/www.selinuxplus.com\/?p=220"},"modified":"2013-06-07T08:07:45","modified_gmt":"2013-06-07T08:07:45","slug":"fedroa-16-%e7%bc%96%e8%af%91android-%e6%ba%90%e7%a0%81","status":"publish","type":"post","link":"http:\/\/www.selinuxplus.com\/?p=220","title":{"rendered":"Fedroa 16 \u7f16\u8bd1Android \u6e90\u7801"},"content":{"rendered":"<p>1 \u5b89\u88c5jdk 6U43<br \/>\n\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904 <a href=\"http:\/\/www.selinuxplus.com\/?p=22\" title=\"selinuxplus.com\">[By SELinux+]<\/a><\/p>\n<pre class=\"lang:default decode:true \" title=\"jdk 6U43\" >\r\n[root@android Android_build]# wget ftp:\/\/10.2.20.58\/pub\/jdk-6u43-linux-x64-rpm.bin\r\n[root@android Android_build]# chmod +x jdk-6u43-linux-x64-rpm.bin\r\n[root@android Android_build]# .\/jdk-6u43-linux-x64-rpm.bin<\/pre>\n<p>2 \u5bf9java\u7684\u7248\u672c\u8fdb\u884c\u7ba1\u7406<br \/>\n[root@android Android_build]# alternatives &#8211;install \/usr\/bin\/java java \/usr\/java\/jdk1.6.0_43\/bin\/java 100<\/p>\n<pre class=\"lang:default decode:true \" >[root@android Android_build]# alternatives --install \/usr\/bin\/jar jar \/usr\/java\/jdk1.6.0_43\/bin\/jar 100\r\n[root@android Android_build]# alternatives --install \/usr\/bin\/javac javac \/usr\/java\/jdk1.6.0_43\/bin\/javac 100\r\n[root@android Android_build]# alternatives --config java\r\nThere are 2 programs which provide 'java'.\r\n\r\nSelection Command\r\n-----------------------------------------------\r\n*+ 1 \/usr\/lib\/jvm\/jre-1.6.0-openjdk.x86_64\/bin\/java\r\n2 \/usr\/java\/jdk1.6.0_43\/bin\/java\r\n\r\nEnter to keep the current selection[+], or type selection number: 2<\/pre>\n<p>3 \u786e\u5b9a\u7248\u672c<\/p>\n<pre class=\"lang:default decode:true \" >[root@android Android_build]# java -version\r\njava version \"1.6.0_43\"\r\nJava(TM) SE Runtime Environment (build 1.6.0_43-b01)\r\nJava HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode<\/pre>\n<p>4 \u8bbe\u7f6e\u8def\u5f84<\/p>\n<pre class=\"lang:default decode:true \" >[root@android Android_build]# cat java.sh\r\nexport JAVA_HOME=\/usr\/java\/jdk1.6.0_43\r\nexport CLASSPATH=.:${JAVA_HOME}\/lib;\r\nexport PATH=${JAVA_HOME}\/bin:${JAVA_HOME}\/jre\/bin:${PATH}<\/pre>\n<p>5 \u5b89\u88c5\u4f9d\u8d56\u8f6f\u4ef6\u5305<\/p>\n<pre class=\"lang:default decode:true \" >[root@android Android_build]# cat yum.sh\r\nyum install git gnupg valgrind flex bison gperf zip curl ncurses-devel readline-devel zlib-devel libX11-devel xorg-x11-proto-devel libuuid-devel uuid uuid-devel libsx-devel<\/pre>\n<p>=================<br \/>\n6 \u4e0b\u8f7d\u6e90\u7801 \/\/\u53c2\u7167\u5b98\u65b9\u6587\u6863[root@android Android_Directory]# repo sync<br \/>\n7 \u7f16\u8bd1<\/p>\n<pre class=\"lang:default decode:true \" >[root@android Android_Directory]# source build\/envsetup.sh\r\nincluding device\/asus\/grouper\/vendorsetup.sh\r\nincluding device\/asus\/tilapia\/vendorsetup.sh\r\nincluding device\/generic\/armv7-a-neon\/vendorsetup.sh\r\nincluding device\/generic\/armv7-a\/vendorsetup.sh\r\nincluding device\/generic\/mips\/vendorsetup.sh\r\nincluding device\/generic\/x86\/vendorsetup.sh\r\nincluding device\/lge\/mako\/vendorsetup.sh\r\nincluding device\/samsung\/maguro\/vendorsetup.sh\r\nincluding device\/samsung\/manta\/vendorsetup.sh\r\nincluding device\/samsung\/toroplus\/vendorsetup.sh\r\nincluding device\/samsung\/toro\/vendorsetup.sh\r\nincluding device\/ti\/panda\/vendorsetup.sh\r\nincluding sdk\/bash_completion\/adb.bash\r\n2\r\n[root@android Android_Directory]# lunch full-eng\r\n\r\n============================================\r\nPLATFORM_VERSION_CODENAME=REL\r\nPLATFORM_VERSION=4.2.2\r\nTARGET_PRODUCT=full\r\nTARGET_BUILD_VARIANT=eng\r\nTARGET_BUILD_TYPE=release\r\nTARGET_BUILD_APPS=\r\nTARGET_ARCH=arm\r\nTARGET_ARCH_VARIANT=armv7-a\r\nHOST_ARCH=x86\r\nHOST_OS=linux\r\nHOST_OS_EXTRA=Linux-3.1.0-7.fc16.x86_64-x86_64-with-fedora-16-Verne\r\nHOST_BUILD_TYPE=release\r\nBUILD_ID=JDQ39\r\nOUT_DIR=out\r\n============================================\r\n\r\n[root@android Android_Directory]# make -j4\r\n============================================\r\nPLATFORM_VERSION_CODENAME=REL\r\nPLATFORM_VERSION=4.2.2\r\nTARGET_PRODUCT=full\r\nTARGET_BUILD_VARIANT=eng\r\nTARGET_BUILD_TYPE=release\r\nTARGET_BUILD_APPS=\r\nTARGET_ARCH=arm\r\nTARGET_ARCH_VARIANT=armv7-a\r\nHOST_ARCH=x86\r\nHOST_OS=linux\r\nHOST_OS_EXTRA=Linux-3.1.0-7.fc16.x86_64-x86_64-with-fedora-16-Verne\r\nHOST_BUILD_TYPE=release\r\nBUILD_ID=JDQ39\r\nOUT_DIR=out\r\n============================================<\/pre>\n<p>\u9047\u5230\u95ee\u9898\uff081\uff09<\/p>\n<pre class=\"lang:default decode:true \" >make: *** [out\/target\/product\/generic\/obj\/STATIC_LIBRARIES\/libwebcore_intermediates\/Source\/WebCore\/html\/DocTypeStrings.cpp] Error 2<\/pre>\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<br \/>\nvim webkit.patch<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<pre class=\"lang:default decode:true \" >diff --git a\/Source\/WebCore\/make-hash-tools.pl b\/Source\/WebCore\/make-hash-tools.pl\r\nindex 37639eb..2968beb 100644\r\n--- a\/Source\/WebCore\/make-hash-tools.pl\r\n+++ b\/Source\/WebCore\/make-hash-tools.pl\r\n@@ -20,7 +20,8 @@\r\n# Boston, MA 02110-1301, USA.\r\n\r\nuse strict;\r\n-use Switch;\r\n+# use Switch;\r\n+use feature qw(switch);\r\nuse File::Basename;\r\n\r\nmy $outdir = $ARGV[0];\r\n@@ -28,9 +29,9 @@ shift;\r\nmy $option = basename($ARGV[0],\".gperf\");\r\n\r\n-switch ($option) {\r\n+given ($option) {\r\n\r\n-case \"DocTypeStrings\" {\r\n+when (\"DocTypeStrings\") {\r\n\r\nmy $docTypeStringsGenerated = \"$outdir\/DocTypeStrings.cpp\";\r\nmy $docTypeStringsGperf = $ARGV[0];\r\n@@ -40,7 +41,7 @@ case \"DocTypeStrings\" {\r\n\r\n} # case \"DocTypeStrings\"\r\n\r\n-case \"ColorData\" {\r\n+when (\"ColorData\") {\r\n\r\nmy $colorDataGenerated = \"$outdir\/ColorData.cpp\";\r\nmy $colorDataGperf = $ARGV[0];<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<pre class=\"lang:default decode:true \" >cp webkit.patch ..\/Android_Directory\/external\/webkit\/webkit.patch<\/pre>\n<p>\u95ee\u9898\uff082\uff09<\/p>\n<pre class=\"lang:default decode:true \" >prebuilts\/tools\/gcc-sdk\/g++: prebuilts\/tools\/gcc-sdk\/..\/..\/gcc\/linux-x86\/host\/i686-linux-glibc2.7-4.6\/bin\/i686-linux-g++: \/lib\/ld-linux.so.2: bad ELF interpreter: No such file or directory\r\n\r\n.\/..\/..\/i686-linux\/bin\/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory<\/pre>\n<p>\u9700\u8981\u5206\u522b\u6253\u4e0a\u4ee5\u4e0b\u8865\u4e01<br \/>\nvim oprofile.patch<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<pre class=\"lang:default decode:true \" >diff --git a\/libpp\/format_output.h b\/libpp\/format_output.h\r\nindex b6c4592..4efdbb1 100644\r\n--- a\/libpp\/format_output.h\r\n+++ b\/libpp\/format_output.h\r\n@@ -91,7 +91,8 @@ protected:\r\nsymbol_entry const &amp;amp; symbol;\r\nsample_entry const &amp;amp; sample;\r\nsize_t pclass;\r\n- mutable counts_t &amp;amp; counts;\r\n+\/\/ mutable counts_t &amp;amp; counts;\r\n+ counts_t &amp;amp; counts;\r\nextra_images const &amp;amp; extra;\r\ndouble diff;\r\n};<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nvim gtest.patch<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<pre class=\"lang:default decode:true \" >t a\/include\/gtest\/internal\/gtest-param-util.h b\/include\/gtest\/internal\/gtest-param-util.h\r\nindex 5559ab4..b964c45 100644\r\n--- a\/include\/gtest\/internal\/gtest-param-util.h\r\n+++ b\/include\/gtest\/internal\/gtest-param-util.h\r\n@@ -37,6 +37,7 @@\r\n#include &amp;lt;iterator&amp;gt;\r\n#include &amp;lt;utility&amp;gt;\r\n#include &amp;lt;vector&amp;gt;\r\n+#include &amp;lt;cstddef&amp;gt;\r\n\r\n#include &amp;lt;gtest\/internal\/gtest-port.h&amp;gt;<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nvim slang.patch<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<pre class=\"lang:default decode:true \" >diff --git a\/Android.mk b\/Android.mk\r\nindex fce3637..aff5b7d 100644\r\n--- a\/Android.mk\r\n+++ b\/Android.mk\r\n@@ -19,7 +19,8 @@ ifeq ($(TARGET_BUILD_APPS),)\r\n\r\nLOCAL_PATH := $(call my-dir)\r\n\r\n-local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror\r\n+#local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter -Werror\r\n+local_cflags_for_slang := -Wno-sign-promo -Wall -Wno-unused-parameter\r\nifneq ($(TARGET_BUILD_VARIANT),eng)\r\nlocal_cflags_for_slang += -D__DISABLE_ASSERTS\r\nendif<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nvim development.patch<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<pre class=\"lang:default decode:true \" >t a\/tools\/emulator\/opengl\/host\/renderer\/Android.mk b\/tools\/emulator\/opengl\/host\/renderer\/Android.mk\r\nindex 55fcb80..5e4d0bb 100644\r\n--- a\/tools\/emulator\/opengl\/host\/renderer\/Android.mk\r\n+++ b\/tools\/emulator\/opengl\/host\/renderer\/Android.mk\r\n@@ -5,6 +5,7 @@ $(call emugl-begin-host-executable,emulator_renderer)\r\n$(call emugl-import,libOpenglRender)\r\nLOCAL_SRC_FILES := main.cpp\r\nLOCAL_CFLAGS += -O0 -g\r\n+LOCAL_LDLIBS += -lX11\r\n\r\n#ifeq ($(HOST_OS),windows)\r\n#LOCAL_LDLIBS += -lws2_32<\/pre>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<pre class=\"lang:default decode:true \" >[root@android Android_build]# cp oprofile.patch ..\/Android_Directory\/external\/oprofile\/\r\n[root@android Android_build]# cp gtest.patch ..\/Android_Directory\/external\/gtest\/\r\n[root@android Android_build]# cp slang.patch ..\/Android_Directory\/frameworks\/compile\/slang\/\r\n[root@android Android_build]# cp development.patch ..\/Android_Directory\/development\/\r\n\r\n[root@android webkit]# patch -p1 &amp;lt;webkit.patch\r\npatching file Source\/WebCore\/make-hash-tools.pl\r\n[root@android oprofile]# patch -p1 &amp;lt; oprofile.patch\r\npatching file libpp\/format_output.h\r\nHunk #1 FAILED at 91.\r\n1 out of 1 hunk FAILED -- saving rejects to file libpp\/format_output.h.rej\r\n\r\n[root@android gtest]# patch -p1 &amp;lt;gtest.patch\r\npatching file include\/gtest\/internal\/gtest-param-util.h\r\nHunk #1 succeeded at 37 with fuzz 2.\r\n[root@android slang]# patch -p1 &amp;lt; slang.patch\r\npatching file Android.mk<\/pre>\n<p>\u9047\u5230\u95ee\u9898<\/p>\n<pre class=\"lang:default decode:true \" >target Generated: lib_renderControl_dec &amp;lt;= out\/host\/linux-x86\/obj\/EXECUTABLES\/emugen_intermediates\/emugen\r\nout\/host\/linux-x86\/obj\/EXECUTABLES\/emugen_intermediates\/emugen: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory<\/pre>\n<p>\u6216<\/p>\n<pre class=\"lang:default decode:true \" >Copying: out\/target\/common\/obj\/JAVA_LIBRARIES\/core_intermediates\/classes-jarjar.jar\r\nout\/host\/linux-x86\/bin\/acp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory\r\nout\/host\/linux-x86\/bin\/acp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory\r\nout\/host\/linux-x86\/bin\/acp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory\r\nInstall: out\/host\/linux-x86\/framework\/dx.jar<\/pre>\n<p>\u89e3\u51b3\u65b9\u6cd5<\/p>\n<pre class=\"lang:default decode:true \" >[root@android Android_build]# yum install libgcc\r\nyum install glibc.i686 ncurses-libs.i686 libstdc libstdc++.i686 libzip.i686 libX11.i686 libXrandr.i686 SDL.i686<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1 \u5b89\u88c5jdk 6U43 \u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904 [By &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[40,1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/220"}],"collection":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220"}],"version-history":[{"count":14,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions"}],"predecessor-version":[{"id":253,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions\/253"}],"wp:attachment":[{"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.selinuxplus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}