Firefly开源社区

打印 上一主题 下一主题

[Android] RK3288源码SDK编译android错误

93

积分

0

威望

0

贡献

技术小白

积分
93

RK3288源码SDK编译android错误

发表于 2018-6-4 19:44:40      浏览:13152 | 回复:9        打印      只看该作者   [复制链接] 楼主
在编译android源码SDK是出现这个错误,请技术人员和大神指点,问题在哪,应该怎么解决:
external/chromium_org/v8/src/api.cc:1753: error: undefined reference to 'v8::internal::Compiler::CompileScript(v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::Object>, int, int, bool, v8::internal::Handle<v8::internal::Context>, v8::Extension*, v8::internal::ScriptData**, v8::ScriptCompiler::CompileOptions, v8::internal::NativesFlag)'

external/chromium_org/v8/src/api.cc:1853: error: undefined reference to 'v8::internal::Parser::Internalize()'

回复

使用道具 举报

93

积分

0

威望

0

贡献

技术小白

积分
93
发表于 2018-6-5 20:21:17        只看该作者  沙发
abcxyztt 发表于 2018-6-5 08:37
是按照wiki的步骤架设的环境吗?

是的,你们PDF文档说是用ubuntu12.04而现在的网页却说是14.04版本,都不知道是用哪一个版本的合适呢?用ubuntu虚拟机是可以编译和开发android的源码的吧?
回复

使用道具 举报

93

积分

0

威望

0

贡献

技术小白

积分
93
发表于 2018-6-6 08:07:16        只看该作者  板凳
abcxyztt 发表于 2018-6-5 08:37
是按照wiki的步骤架设的环境吗?

还有一个问题就是,在编译android源码的时候,虚拟机经常是中途编译就死机,卡死在一个地方,动弹不得,不知道什么情况?请技术和大神指点,谢谢!
回复

使用道具 举报

25

积分

0

威望

0

贡献

游客

积分
25
发表于 2018-6-6 10:26:32        只看该作者  地板
ckh20070903 发表于 2018-6-6 08:07
还有一个问题就是,在编译android源码的时候,虚拟机经常是中途编译就死机,卡死在一个地方,动弹不得, ...

虚拟机内存尽量设置大一点8G差不多,jack-server很占内存,修改:`prebuilts/sdk/tools/jack-admin`文件,设置内存为4个G
```
JACK_SERVER_COMMAND="java -Xmx4096m -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -cp $LAUNCHER_JAR $LAUNCHER_NAME"
```
看你的报错应该是缺少一些库报错的,按wiki操作之后,执行一下
  1. make clean
复制代码
  1. make distclean
复制代码

再试一下
回复

使用道具 举报

93

积分

0

威望

0

贡献

技术小白

积分
93
发表于 2018-6-6 11:10:13        只看该作者  5#
huanjinzi 发表于 2018-6-6 10:26
虚拟机内存尽量设置大一点8G差不多,jack-server很占内存,修改:`prebuilts/sdk/tools/jack-admin`文件 ...

感谢!但是没有jack-admin这个文件呢里面有的是:
root@chkh:~/proj/firefly-rk3288# ls ./prebuilts/sdk/tools/
Android.mk  dx        jill.jar  lint   mainDexClasses        windows
darwin      jack.jar  lib       linux  mainDexClasses.rules
root@chkh:~/proj/firefly-rk3288#
我的电脑最大内存只有8G,所以有点尴尬,分配到了4个G就再也分不上去了,现在还是编译着终端就不动了,卡死在一个地方可以几个小时,求指点!
回复

使用道具 举报

25

积分

0

威望

0

贡献

游客

积分
25
发表于 2018-6-6 11:39:11        只看该作者  6#
看卡在那里了,把卡住的终端截图或者log信息发上来
回复

使用道具 举报

93

积分

0

威望

0

贡献

技术小白

积分
93
发表于 2018-6-6 14:47:36        只看该作者  7#
huanjinzi 发表于 2018-6-6 11:39
看卡在那里了,把卡住的终端截图或者log信息发上来

host StaticLib: libc++_32 (out/host/linux-x86/obj32/STATIC_LIBRARIES/libc++_intermediates/libc++.a)
host C++: libart_32 <= art/runtime/barrier.cc
host C++: libart_32 <= art/runtime/base/allocator.cc
host C++: libart_32 <= art/runtime/base/bit_vector.cc
host C++: libart_32 <= art/runtime/base/hex_dump.cc
host C++: libart_32 <= art/runtime/base/logging.cc
host C++: libart_32 <= art/runtime/base/mutex.cc
host C++: libart_32 <= art/runtime/base/scoped_flock.cc
host C++: libart_32 <= art/runtime/base/stringpiece.cc
host C++: libart_32 <= art/runtime/base/stringprintf.cc
host C++: libart_32 <= art/runtime/base/timing_logger.cc
host C++: libart_32 <= art/runtime/base/unix_file/fd_file.cc
host C++: libart_32 <= art/runtime/base/unix_file/mapped_file.cc
host C++: libart_32 <= art/runtime/base/unix_file/null_file.cc
host C++: libart_32 <= art/runtime/base/unix_file/random_access_file_utils.cc
host C++: libart_32 <= art/runtime/base/unix_file/string_file.cc
host C++: libart_32 <= art/runtime/check_jni.cc
host C++: libart_32 <= art/runtime/class_linker.cc
host C++: libart_32 <= art/runtime/common_throws.cc
host C++: libart_32 <= art/runtime/debugger.cc
host C++: libart_32 <= art/runtime/dex_file.cc
host C++: libart_32 <= art/runtime/dex_file_verifier.cc
host C++: libart_32 <= art/runtime/dex_instruction.cc
host C++: libart_32 <= art/runtime/elf_file.cc
host C++: libart_32 <= art/runtime/field_helper.cc
host C++: libart_32 <= art/runtime/gc/allocator/dlmalloc.cc
host C++: libart_32 <= art/runtime/gc/allocator/rosalloc.cc
host C++: libart_32 <= art/runtime/gc/accounting/card_table.cc
host C++: libart_32 <= art/runtime/gc/accounting/heap_bitmap.cc
host C++: libart_32 <= art/runtime/gc/accounting/mod_union_table.cc
host C++: libart_32 <= art/runtime/gc/accounting/remembered_set.cc
host C++: libart_32 <= art/runtime/gc/accounting/space_bitmap.cc
host C++: libart_32 <= art/runtime/gc/collector/concurrent_copying.cc
host C++: libart_32 <= art/runtime/gc/collector/garbage_collector.cc
host C++: libart_32 <= art/runtime/gc/collector/immune_region.cc
host C++: libart_32 <= art/runtime/gc/collector/mark_compact.cc
host C++: libart_32 <= art/runtime/gc/collector/mark_sweep.cc
host C++: libart_32 <= art/runtime/gc/collector/partial_mark_sweep.cc
host C++: libart_32 <= art/runtime/gc/collector/semi_space.cc
host C++: libart_32 <= art/runtime/gc/collector/sticky_mark_sweep.cc
host C++: libart_32 <= art/runtime/gc/gc_cause.cc
host C++: libart_32 <= art/runtime/gc/heap.cc
host C++: libart_32 <= art/runtime/gc/reference_processor.cc
host C++: libart_32 <= art/runtime/gc/reference_queue.cc
host C++: libart_32 <= art/runtime/gc/space/bump_pointer_space.cc
host C++: libart_32 <= art/runtime/gc/space/dlmalloc_space.cc
host C++: libart_32 <= art/runtime/gc/space/image_space.cc
host C++: libart_32 <= art/runtime/gc/space/large_object_space.cc
host C++: libart_32 <= art/runtime/gc/space/malloc_space.cc
host C++: libart_32 <= art/runtime/gc/space/rosalloc_space.cc
host C++: libart_32 <= art/runtime/gc/space/space.cc
host C++: libart_32 <= art/runtime/gc/space/zygote_space.cc
host C++: libart_32 <= art/runtime/hprof/hprof.cc
host C++: libart_32 <= art/runtime/image.cc
host C++: libart_32 <= art/runtime/indirect_reference_table.cc
host C++: libart_32 <= art/runtime/instruction_set.cc
host C++: libart_32 <= art/runtime/instrumentation.cc
host C++: libart_32 <= art/runtime/intern_table.cc
host C++: libart_32 <= art/runtime/interpreter/interpreter.cc
host C++: libart_32 <= art/runtime/interpreter/interpreter_common.cc
host C++: libart_32 <= art/runtime/interpreter/interpreter_switch_impl.cc
host C++: libart_32 <= art/runtime/jdwp/jdwp_event.cc
host C++: libart_32 <= art/runtime/jdwp/jdwp_expand_buf.cc
host C++: libart_32 <= art/runtime/jdwp/jdwp_handler.cc
host C++: libart_32 <= art/runtime/jdwp/jdwp_main.cc
host C++: libart_32 <= art/runtime/jdwp/jdwp_request.cc
host C++: libart_32 <= art/runtime/jdwp/jdwp_socket.cc
host C++: libart_32 <= art/runtime/jdwp/object_registry.cc
host C++: libart_32 <= art/runtime/jni_internal.cc
host C++: libart_32 <= art/runtime/jobject_comparator.cc
host C++: libart_32 <= art/runtime/mem_map.cc
host C++: libart_32 <= art/runtime/memory_region.cc
host C++: libart_32 <= art/runtime/method_helper.cc
host C++: libart_32 <= art/runtime/mirror/art_field.cc
host C++: libart_32 <= art/runtime/mirror/art_method.cc
host C++: libart_32 <= art/runtime/mirror/array.cc
host C++: libart_32 <= art/runtime/mirror/class.cc
host C++: libart_32 <= art/runtime/mirror/dex_cache.cc
host C++: libart_32 <= art/runtime/mirror/object.cc
host C++: libart_32 <= art/runtime/mirror/reference.cc
host C++: libart_32 <= art/runtime/mirror/stack_trace_element.cc
host C++: libart_32 <= art/runtime/mirror/string.cc
host C++: libart_32 <= art/runtime/mirror/throwable.cc
host C++: libart_32 <= art/runtime/monitor.cc
host C++: libart_32 <= art/runtime/native_bridge_art_interface.cc
host C++: libart_32 <= art/runtime/native/dalvik_system_DexFile.cc
host C++: libart_32 <= art/runtime/native/dalvik_system_VMDebug.cc
host C++: libart_32 <= art/runtime/native/dalvik_system_VMRuntime.cc
host C++: libart_32 <= art/runtime/native/dalvik_system_VMStack.cc
host C++: libart_32 <= art/runtime/native/dalvik_system_ZygoteHooks.cc
host C++: libart_32 <= art/runtime/native/java_lang_Class.cc
host C++: libart_32 <= art/runtime/native/java_lang_DexCache.cc
host C++: libart_32 <= art/runtime/native/java_lang_Object.cc
host C++: libart_32 <= art/runtime/native/java_lang_Runtime.cc
host C++: libart_32 <= art/runtime/native/java_lang_String.cc
host C++: libart_32 <= art/runtime/native/java_lang_System.cc
host C++: libart_32 <= art/runtime/native/java_lang_Thread.cc
host C++: libart_32 <= art/runtime/native/java_lang_Throwable.cc
host C++: libart_32 <= art/runtime/native/java_lang_VMClassLoader.cc
host C++: libart_32 <= art/runtime/native/java_lang_ref_FinalizerReference.cc
host C++: libart_32 <= art/runtime/native/java_lang_ref_Reference.cc
host C++: libart_32 <= art/runtime/native/java_lang_reflect_Array.cc
host C++: libart_32 <= art/runtime/native/java_lang_reflect_Constructor.cc
host C++: libart_32 <= art/runtime/native/java_lang_reflect_Field.cc
host C++: libart_32 <= art/runtime/native/java_lang_reflect_Method.cc
host C++: libart_32 <= art/runtime/native/java_lang_reflect_Proxy.cc
host C++: libart_32 <= art/runtime/native/java_util_concurrent_atomic_AtomicLong.cc
host C++: libart_32 <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmServer.cc
host C++: libart_32 <= art/runtime/native/org_apache_harmony_dalvik_ddmc_DdmVmInternal.cc
这次是卡死在这里
回复

使用道具 举报

25

积分

0

威望

0

贡献

游客

积分
25
发表于 2018-6-6 15:12:20        只看该作者  8#
只要能编过就行了,多等一下
回复

使用道具 举报

93

积分

0

威望

0

贡献

技术小白

积分
93
发表于 2018-6-6 15:50:27        只看该作者  9#
huanjinzi 发表于 2018-6-6 11:39
看卡在那里了,把卡住的终端截图或者log信息发上来

'get_search_index_address':
packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ndldic.c:150:74: warning: unused parameter 'search_pattern' [-Wunused-parameter]
static NJ_UINT8 *get_search_index_address(NJ_DIC_HANDLE handle, NJ_UINT8 search_pattern) {
                                                                          ^
packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ndldic.c: In function 'str_que_cmp':
packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ndldic.c:1531:39: warning: unused parameter 'iwnn' [-Wunused-parameter]
static NJ_INT16 str_que_cmp(NJ_CLASS *iwnn, NJ_DIC_HANDLE handle, NJ_CHAR *yomi,
                                       ^
target thumb C: libwnndict <= packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ndrdic.c
target thumb C: libwnndict <= packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/necode.c
target thumb C: libwnndict <= packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ndcommon.c
target thumb C: libwnndict <= packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/nj_str.c
Import includes file: out/target/product/rk3288_box/obj/SHARED_LIBRARIES/libjni_pacprocessor_intermediates/import_includes
Import includes file: out/target/product/rk3288_box/obj/SHARED_LIBRARIES/libpac_intermediates/import_includes
Gyp action: Generating icui18n shim headers (out/target/product/rk3288_box/obj/GYP/shared_intermediates/shim_headers/icui18n/target/third_party/icu/source/i18n/unicode/alphaindex.h)
Gyp action: Generating icuuc shim headers (out/target/product/rk3288_box/obj/GYP/shared_intermediates/shim_headers/icuuc/target/third_party/icu/source/common/unicode/appendable.h)
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/atomicops_internals_x86_gcc.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/bits.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/cpu.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/division-by-constant.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/logging.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/once.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/platform/time.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/platform/condition-variable.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/platform/mutex.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/platform/semaphore.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/sys-info.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/utils/random-number-generator.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/platform/platform-posix.cc
target thumb C++: v8_tools_gyp_v8_libbase_gyp <= external/chromium_org/v8/src/base/platform/platform-linux.cc
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/accessors.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/allocation.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/allocation-site-scopes.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/allocation-tracker.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/api.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/arguments.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/assembler.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/assert-scope.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/ast-value-factory.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/ast.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/background-parsing-task.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/bailout-reason.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/bignum-dtoa.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/bignum.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/bootstrapper.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/builtins.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/cached-powers.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/checks.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/code-factory.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/code-stubs.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/code-stubs-hydrogen.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/codegen.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/compilation-cache.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/compiler/access-builder.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/compiler/ast-graph-builder.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/compiler/change-lowering.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/compiler/code-generator.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/compiler/common-operator.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
1 warning generated.
host C++: v8_tools_gyp_v8_base_arm_host_gyp_32 <= external/chromium_org/v8/src/compiler/control-builders.cc
warning: unknown warning option '-Wno-unused-local-typedef' [-Wunknown-warning-option]
这次卡死在这里
回复

使用道具 举报

93

积分

0

威望

0

贡献

技术小白

积分
93
发表于 2018-6-6 15:52:35        只看该作者  10#
huanjinzi 发表于 2018-6-6 15:12
只要能编过就行了,多等一下

等过一晚上的,动不了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表