HarmonyOS react-native-oh-tpl-react-native-fast-image-8.6.3-0.4.10.tgz编译失败
RNOH - react-native-oh-tpl-react-native-fast-image-8.6.3-0.4.10.tgz 编译失败,报错日志如下:
[50/170] Building CXX object svg/CMakeFiles/rnoh_svg.dir/EventEmitters.cpp.o
clang++: warning: -Wl,-z,relro,-z,now,-z,noexecstack: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB2/openharmony/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
[51/170] Linking CXX shared library /Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/build/default/intermediates/cmake/default/obj/arm64-v8a/librnoh_webview.so
[52/170] Building CXX object fast-image/CMakeFiles/rnoh_fast_image.dir/FastImageLoaderTurboModule.cpp.o
FAILED: fast-image/CMakeFiles/rnoh_fast_image.dir/FastImageLoaderTurboModule.cpp.o
/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB2/openharmony/native/llvm/bin/clang++ --target=aarch64-linux-ohos --gcc-toolchain=/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB2/openharmony/native/llvm --sysroot=/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB2/openharmony/native/sysroot -DBOOST_CONTEXT_EXPORT="" -DBOOST_CONTEXT_NO_LIB -DBOOST_CONTEXT_STATIC_LINK -DC_API_ARCH -DWITH_HITRACE_SYSTRACE -Drnoh_fast_image_EXPORTS -I/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB2/hms/native/sysroot/usr/include -I/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/oh_modules/@react-native-oh-tpl/react-native-fast-image/src/main/cpp -I/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp ...
...
party/rn/ReactCommon/react/nativemodule/core -fstack-protector-strong -Wl,-z,relro,-z,now,-z,noexecstack -s -fPIE -pie -O0 -g -fno-limit-debug-info -fPIC -DFOLLY_NO_CONFIG=1 -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation -faligned-new -DRAW_PROPS_ENABLED -std=c++17 -MD -MT fast-image/CMakeFiles/rnoh_fast_image.dir/FastImageLoaderTurboModule.cpp.o -MF fast-image/CMakeFiles/rnoh_fast_image.dir/FastImageLoaderTurboModule.cpp.o.d -o fast-image/CMakeFiles/rnoh_fast_image.dir/FastImageLoaderTurboModule.cpp.o -c '/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/oh_modules/@react-native-oh-tpl/react-native-fast-image/src/main/cpp/FastImageLoaderTurboModule.cpp'
clang++: warning: -Wl,-z,relro,-z,now,-z,noexecstack: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '--gcc-toolchain=/Applications/DevEco-Studio.app/Contents/sdk/HarmonyOS-NEXT-DB2/openharmony/native/llvm' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/oh_modules/@react-native-oh-tpl/react-native-fast-image/src/main/cpp/FastImageLoaderTurboModule.cpp:35:26: error: no member named 'arkTSMessageHub' in 'rnoh::ArkTSTurboModule::Context'
weakInstance.arkTSMessageHub, instance);
~~~~~~~~~~~~ ^
1 error generated.
...
In file included from /Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/FallbackComponentInstance.h:3:
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:30:6: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:30:13: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:30:20: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:30:27: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:32:6: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:32:13: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:32:20: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
/Users/xxx/Documents/PUYI/gf2/puyifund-oh/harmony/entry/src/main/cpp/../../../oh_modules/@rnoh/react-native-openharmony/src/main/cpp/RNOH/CppComponentInstance.h:32:27: warning: braces around scalar initializer [-Wbraced-scalar-init]
{{0.0}, {0.0}, {0.0}, {0.0}},
^~~~~
9 warnings generated.
ninja: build stopped: subcommand failed.
> hvigor ERROR: BUILD FAILED in 19 s 447 ms
Process finished with exit code -1
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS 关于react-native-fast-image-8.6.3-0.4.10版本集成报错问题
29浏览 • 1回复 待解决
HarmonyOS @react-native-oh-tpl/react-native-reanimated 引入编译出错
259浏览 • 1回复 待解决
HarmonyOS 集成@react-native-oh-tpl/react-native-spinkit报错
274浏览 • 1回复 待解决
HarmonyOS 无法安装@react-native-oh-tpl/react-native-reanimated
567浏览 • 1回复 待解决
HarmonyOS 集成@react-native-oh-tpl/react-native-pdf后App Crash
258浏览 • 1回复 待解决
HarmonyOS @react-native-oh-tpl/react-native-view-shot增量包权限问题
203浏览 • 1回复 待解决
HarmonyOS 集成@react-native-oh-tpl/datetimepicker报错
179浏览 • 1回复 待解决
HarmonyOS react-native应用编译失败
139浏览 • 1回复 待解决
HarmonyOS react-native-image-colors调用getColors失败
234浏览 • 1回复 待解决
HarmonyOS rnoh-react-native-harmony-0.72.21.tgz如何获取
17浏览 • 1回复 待解决
HarmonyOS react-native-oh-library/react-navigation如何集成
239浏览 • 1回复 待解决
HarmonyOS 适配 React native
571浏览 • 1回复 待解决
HarmonyOS react-native项目引用native-stack插件失败
352浏览 • 1回复 待解决
HarmonyOS react-native-image-crop-picker使用问题
203浏览 • 1回复 待解决
HarmonyOS 使用react-native中的Image问题
34浏览 • 1回复 待解决
HarmonyOS react-native-pager-view安装失败
267浏览 • 1回复 待解决
HarmonyOS React Native三方库需要适配@react-native-community/art
229浏览 • 1回复 待解决
HarmonyOS 咨询React Native适配情况
294浏览 • 1回复 待解决
HarmonyOS react-native-image-crop-picker引入后,找不到
255浏览 • 1回复 待解决
HarmonyOS react-native-webview 加载网页失败,渲染白屏
21浏览 • 1回复 待解决
HarmonyOS react-native-webview 13.10.2-nc.0.0.1 编译报错
356浏览 • 1回复 待解决
HarmonyOS react-native-harmony-svg 13.14.0-0.3.12 编译报错
299浏览 • 1回复 待解决
HarmonyOS react-native-image-capinsets-next支持这个库吗
224浏览 • 1回复 待解决
当前react-native-fast-image-8.6.3-0.4.10.tgz版本对应rnoh依赖版本还未发布,请使用react-native-fast-imager2.10.4.9或0.4.8版本。