主题 : Fedora 15 64位编译Android 2.3.4系统 复制链接 | 浏览器收藏 | 打印
级别: 骑士
UID: 42149
精华: 2
发帖: 201
金钱: 1115 两
威望: 223 点
贡献值: 2 点
综合积分: 442 分
注册时间: 2011-04-05
最后登录: 2013-03-29
楼主  发表于: 2011-07-26 21:16

 Fedora 15 64位编译Android 2.3.4系统

管理提醒: 本帖被 xoom 设置为精华(2011-10-19)
android开发使用指南中,使用的是Fedora 14 32位系统对Android系统进行编译的,因为我的系统为Fedora 15 64,不想折腾系统,所以就在下面做了。Fedora 14 64系统应该类似。
一、准备工作,安装编译过程中需要的32位库,需要使用root用户权限操作,我直接su,然后进行下面的安装命令
# yum install gperf

# yum install glibc.i686
# yum install glibc-deve.i686
# yum install libstdc++.686
# yum install zlib_devel.i686
# yum install ncurses-devel.i686
# yum install libX11-devel.i686
# yum install libXext.i686
# yum install libao.i686
# yum install alsa.i686
# yum install readline-devel.i686 readline.i686
# yum install libgcc.i686
# yum install mesa-libGL-devel.i686 measa-libGL.i686
二、降级安装make 3.82 到 3.81
yum downgrade releasever=13 make --nogpgcheck
三、修改 frameworks/base/libs/utils/Android.mk

LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
改为
LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)  -fpermissive
四、修改 build-android
因为源码里面的JDK1.6.0_23是32位版本,所以不能使用。将3-5,15行注释掉,在15行下增加一行,重新加入你的JDK目录,如果本身环境变量已经有了,可以不加
我改成了如下的内容
export PATH=/usr/java/jdk1.6.0_25/bin:PATH
五、其它步骤按照手册的做就可以了。
[ 此帖被tingjie在2011-08-01 07:33重新编辑 ]
级别: 新手上路
UID: 82264
精华: 0
发帖: 16
金钱: 80 两
威望: 16 点
贡献值: 0 点
综合积分: 32 分
注册时间: 2012-11-20
最后登录: 2013-06-14
1楼  发表于: 2013-03-03 16:14
host C++: mksnapshot <= external/v8/src/accessors.cc
host C++: mksnapshot <= external/v8/src/allocation.cc
In file included from external/v8/src/v8.h:63:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/objects.h: In instantiation of ‘v8::internal::PropertyDetails v8::internal::Dictionary<Shape, Key>::DetailsAt(int) [with Shape = v8::internal::StringDictionaryShape; Key = v8::internal::String*]’:
external/v8/src/property.h:189:62:   required from here
external/v8/src/objects.h:2140:71: 错误:‘get’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
external/v8/src/objects.h:2140:71: 附注:declarations in dependent base ‘v8::internal::FixedArray’ are not found by unqualified lookup
external/v8/src/objects.h:2140:71: 附注:use ‘this->get’ instead
external/v8/src/objects.h: In instantiation of ‘v8::internal::Object* v8::internal::Dictionary<Shape, Key>::ValueAt(int) [with Shape = v8::internal::StringDictionaryShape; Key = v8::internal::String*]’:
external/v8/src/property.h:248:78:   required from here
external/v8/src/objects.h:2128:60: 错误:‘get’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
external/v8/src/objects.h:2128:60: 附注:declarations in dependent base ‘v8::internal::FixedArray’ are not found by unqualified lookup
external/v8/src/objects.h:2128:60: 附注:use ‘this->get’ instead
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Map**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:137:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Smi**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:582:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Object**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:734:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::FixedArray**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:2523:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::String**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:7503:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::DescriptorArray**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:7695:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::JSObject**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:7992:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Proxy**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:8149:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::NumberDictionary**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:8321:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Code**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:8655:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Script**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:9783:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/allocation.cc:30:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::SymbolTable**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:10236:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/allocation.cc:30:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
make: *** [out/host/linux-x86/obj/EXECUTABLES/mksnapshot_intermediates/src/allocation.o] 错误 1
make: *** 正在等待未完成的任务....
In file included from external/v8/src/v8.h:63:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/objects.h: In instantiation of ‘v8::internal::PropertyDetails v8::internal::Dictionary<Shape, Key>::DetailsAt(int) [with Shape = v8::internal::StringDictionaryShape; Key = v8::internal::String*]’:
external/v8/src/property.h:189:62:   required from here
external/v8/src/objects.h:2140:71: 错误:‘get’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
external/v8/src/objects.h:2140:71: 附注:declarations in dependent base ‘v8::internal::FixedArray’ are not found by unqualified lookup
external/v8/src/objects.h:2140:71: 附注:use ‘this->get’ instead
external/v8/src/objects.h: In instantiation of ‘v8::internal::Object* v8::internal::Dictionary<Shape, Key>::ValueAt(int) [with Shape = v8::internal::StringDictionaryShape; Key = v8::internal::String*]’:
external/v8/src/property.h:248:78:   required from here
external/v8/src/objects.h:2128:60: 错误:‘get’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
external/v8/src/objects.h:2128:60: 附注:declarations in dependent base ‘v8::internal::FixedArray’ are not found by unqualified lookup
external/v8/src/objects.h:2128:60: 附注:use ‘this->get’ instead
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Map**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:137:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Smi**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:582:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Object**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:734:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::FixedArray**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:2523:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::String**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:7503:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::DescriptorArray**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:7695:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::JSObject**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:7992:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Proxy**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:8149:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::NumberDictionary**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:8321:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Code**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:8655:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::Script**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:9783:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
In file included from external/v8/src/v8.h:56:0,
                 from external/v8/src/accessors.cc:28:
external/v8/src/globals.h: In instantiation of ‘Dest v8::internal::bit_cast(const Source&) [with Dest = v8::internal::SymbolTable**; Source = v8::internal::Object**]’:
external/v8/src/factory.h:323:10236:   required from here
external/v8/src/globals.h:605:3: 错误:‘memcpy’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
In file included from external/v8/src/checks.h:31:0,
                 from external/v8/src/v8.h:57,
                 from external/v8/src/accessors.cc:28:
/usr/include/string.h:42:14: 附注:‘void* memcpy(void*, const void*, size_t)’ declared here, later in the translation unit
make: *** [out/host/linux-x86/obj/EXECUTABLES/mksnapshot_intermediates/src/accessors.o] 错误 1
有谁知道这个错误怎么解决吗???