修改了skia的一个选项,如下修改,

diff --git a/gn/skia.gni b/gn/skia.gni
index 5863a29548..03a26f38f9 100644
--- a/gn/skia.gni
+++ b/gn/skia.gni
@@ -77,7 +77,7 @@ declare_args() {
   skia_use_xps = true
   skia_enable_graphite = false
   skia_use_zlib = true
-  skia_ohos_debug = false
+  skia_ohos_debug = true
   skia_vtune_path = ""
 
   if (is_ios) {
修改后编译报错了

[OHOS INFO] ERROR at //build/templates/cxx/cxx.gni:874:26: Script returned non-zero exit code.
[OHOS INFO]         handler_result = exec_script(external_deps_script, arguments, "string")
[OHOS INFO]                          ^----------
[OHOS INFO] Current dir: /home/zxy/work/openharmony/ohos4-1/out/a33/
[OHOS INFO] Command: /usr/bin/env /home/zxy/work/openharmony/ohos4-1/build/templates/common/external_deps_handler.py --external-deps hilog:libhilog hitrace_native:hitrace_meter --parts-src-flag-file build_configs/parts_src_flag.json --external-deps-temp-file gen/third_party/skia/skia__skia_canvaskit_external_deps_temp.json --sdk-base-dir ../../sdk/ohos-arm --sdk-dir-name sdk/ohos-arm --current-toolchain //build/toolchain/ohos:ohos_clang_arm --innerkits-adapter-info-file ../../build/ohos/inner_kits_adapter.json --component-override-map /home/zxy/work/openharmony/ohos4-1/out/a33/build_configs/component_override_map.json
[OHOS INFO] Returned 1 and printed out:
[OHOS INFO] 
[OHOS INFO] file '../../sdk/ohos-arm/hitrace_native/sdk_info.json' doesn't exist.
[OHOS INFO] 
[OHOS INFO] stderr:
[OHOS INFO] 
[OHOS INFO] Traceback (most recent call last):
[OHOS INFO]   File "/home/zxy/work/openharmony/ohos4-1/build/templates/common/external_deps_handler.py", line 262, in <module>
[OHOS INFO]     sys.exit(main())
[OHOS INFO]   File "/home/zxy/work/openharmony/ohos4-1/build/templates/common/external_deps_handler.py", line 229, in main
[OHOS INFO]     sdk_module_info, adapted_ok = _get_external_module_from_sdk(
[OHOS INFO]   File "/home/zxy/work/openharmony/ohos4-1/build/templates/common/external_deps_handler.py", line 74, in _get_external_module_from_sdk
[OHOS INFO]     raise Exception("part '{}' doesn't exist in sdk modules.".format(
[OHOS INFO] Exception: part 'hitrace_native' doesn't exist in sdk modules.
[OHOS INFO] 
[OHOS INFO] See //third_party/skia/BUILD.gn:1652:3: whence it was called.
[OHOS INFO]   ohos_shared_library("skia_canvaskit") {
[OHOS INFO]   ^--------------------------------------
[OHOS INFO] See //foundation/arkui/ace_engine/interfaces/inner_api/drawable_descriptor/BUILD.gn:60:15: which caused the file to be included.
[OHOS INFO]     deps += [ "$skia_root_new:skia_ohos" ]
[OHOS INFO]               ^-------------------------
[OHOS INFO] { }
[OHOS INFO] cmd ['/home/zxy/work/openharmony/ohos4-1/third_party/openssl/make_openssl_build_all_generated.sh', '/home/zxy/work/openharmony/ohos4-1/third_party/openssl', '/home/zxy/work/openharmony/ohos4-1/out/a33/obj/third_party/openssl/build_all_generated', 'linux-armv4'] start
[OHOS INFO] result.returncode = 0
[OHOS INFO] result.stdout = /home/zxy/work/openharmony/ohos4-1/out/a33
[OHOS INFO] ~/work/openharmony/ohos4-1/out/a33/obj/third_party/openssl/build_all_generated/linux-armv4 ~/work/openharmony/ohos4-1/out/a33
[OHOS INFO] /home/zxy/work/openharmony/ohos4-1/third_party/openssl/Configure linux-armv4 no-shared no-module
[OHOS INFO] Configuring OpenSSL version 3.0.7 for target linux-armv4
[OHOS INFO] Using os-specific seed configuration
[OHOS INFO] Created configdata.pm
[OHOS INFO] Running configdata.pm
[OHOS INFO] Created Makefile.in
[OHOS INFO] Created Makefile
[OHOS INFO] Created include/openssl/configuration.h
 

Logo

社区规范:仅讨论OpenHarmony相关问题。

更多推荐