0
这个问题有一些问题。但是答案没有帮助。我尝试为android生成D8。 The v8 guide表示gyp已被弃用。我的步骤是在这里:交叉编译 - 在mac上为android生成V8
- 混帐克隆https://chromium.googlesource.com/chromium/tools/depot_tools.git
- 出口PATH = 'PWD'/ depot_tools: “$ PATH”
- 下载NDK-R14B
- 取V8
- CD V8
- 回声 “TARGET_OS = [ '机器人']” >> ../.gclient & & gclient同步--nohooks
- tools/dev/v8gen.py arm.release
- gn gen out.gn/arm.release --args ='android_ndk_root =“/ path/android-ndk-r14b”android_ndk_version =“r14”v8_static_library = true android_sdk_root = “/路径/ Android的SDK-R25” TARGET_OS = “机器人” target_cpu = “臂” v8_target_cpu = “臂” is_component_build =假”
- 忍者-C out.gn/arm.release D8
编译会引发一些错误。
In file included from ../../third_party/icu/source/common/unicode/unistr.h:33:0,
from ../../third_party/icu/source/common/unicode/locid.h:36,
from ../../third_party/icu/source/i18n/unicode/dcfmtsym.h:36,
from ../../third_party/icu/source/i18n/unicode/decimfmt.h:38,
from ../../third_party/icu/source/i18n/digitlst.h:32,
from ../../third_party/icu/source/i18n/visibledigits.cpp:18:
../../third_party/icu/source/common/unicode/std_string.h:35:18: fatal error: string: No such file or directory
#include <string>
^
compilation terminated.
[6/939] CC obj/third_party/icu/icui18n/utmscale.o
ninja: build stopped: subcommand failed.
我该如何解决?
你需要看看你的链接,您所指定的链接* V8引擎指南* 4,但没有4,你在你的问题有1和2。你能纠正它们吗? – Draken
想必您需要指定要使用的STL。不知道如何在gn中做到这一点,但在ndk-build中这将是'APP_STL'。 –