编译三方库报Platform/OHOS to use this system错误
编译C++库出现多条相同警告信息,能够编译出so,但加载次so时直接crash
System is unknown to camke, create:
Platform/OHOS to use this system, please post your config file on discourse.cmake.org so it can be added to cmake
crash信息:
Device info:HUAWEI Mate 40 Pro
Build info:NOH-AN00 4.1.0.59(DEVC00E59R1P1log)
Fingerprint:8f080fae5c0d96f843f4d3b95bdad3655a54daa1dbb9381ddb4fb8aa5b694cc6
Module name:com.tencent.wemeet.app
Version:1.0.0
VersionCode:1000000
PreInstalled:No
Foreground:Yes
Timestamp:2024-01-27 11:18:41.433
Pid:26205
Uid:20010179
Process name:com.tencent.wemeet.app
Reason:Signal:SIGABRT(SI_TKILL)@0x013154c30000665d from:26205:20010179
LastFatalMessage:[gc] AllocateBuffer:567 size must have a size bigger than 0
Fault thread Info:
Tid:26205, Name:cent.wemeet.app
#00 pc 000000000017faa4 /system/lib/ld-musl-aarch64.so.1(raise+124)(a10e24722cdee9e5e5e0ae20fd619ccb)
#01 pc 0000000000137394 /system/lib/ld-musl-aarch64.so.1(abort+20)(a10e24722cdee9e5e5e0ae20fd619ccb)
#02 pc 00000000002c86e4 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::JSPandaFileManager::JSPandaFileAllocator::AllocateBuffer(unsigned long)+1132)(8c4826a562e41c5de97fa66e489e6d27)
#03 pc 00000000002bde5c /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#04 pc 00000000002bd560 /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#05 pc 00000000002c7128 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::JSPandaFileManager::NewJSPandaFile(panda::panda_file::File const*, std::__h::basic_string<char, std::__h::char_traits<char>, panda::ecmascript::CAddressAllocator<char>> const&)+76)(8c4826a562e41c5de97fa66e489e6d27)
#06 pc 00000000002c4680 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::JSPandaFileManager::GenerateJSPandaFile(panda::ecmascript::JSThread*, panda::panda_file::File const*, std::__h::basic_string<char, std::__h::char_traits<char>, panda::ecmascript::CAddressAllocator<char>> const&, std::__h::basic_string_view<char, std::__h::char_traits<char>>)+88)(8c4826a562e41c5de97fa66e489e6d27)
#07 pc 00000000002c3628 /system/lib64/platformsdk/libark_jsruntime.so(panda::ecmascript::JSPandaFileManager::LoadJSPandaFile(panda::ecmascript::JSThread*, std::__h::basic_string<char, std::__h::char_traits<char>, panda::ecmascript::CAddressAllocator<char>> const&, std::__h::basic_string_view<char, std::__h::char_traits<char>>, bool)+484)(8c4826a562e41c5de97fa66e489e6d27)
#08 pc 00000000003a07c0 /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#09 pc 00000000003a05a8 /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#10 pc 00000000003a6064 /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#11 pc 00000000003a99fc /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#12 pc 00000000003a9804 /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#13 pc 00000000003a949c /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#14 pc 00000000002e26ec /system/lib64/platformsdk/libark_jsruntime.so(8c4826a562e41c5de97fa66e489e6d27)
#15 pc 00000000003dd7a0 /system/lib64/platformsdk/libark_jsruntime.so(panda::JSNApi::Execute(panda::ecmascript::EcmaVM*, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, std::__h::basic_string<char, std::__h::char_traits<char>, std::__h::allocator<char>> const&, bool)+932)(8c4826a562e41c5de97fa66e489e6d27)
#16 pc 00000000022794b8 /system/lib64/platformsdk/libace_compatible.z.so(7fb6238c773a1743be6ecc4f4caca515)
#17 pc 00000000021a4cf0 /system/lib64/platformsdk/libace_compatible.z.so(7fb6238c773a1743be6ecc4f4caca515)
#18 pc 00000000021a53d8 /system/lib64/platformsdk/libace_compatible.z.so(7fb6238c773a1743be6ecc4f4caca515)
#19 pc 0000000000683928 /system/lib64/platformsdk/libace_compatible.z.so(7fb6238c773a1743be6ecc4f4caca515)
#20 pc 00000000006b443c /system/lib64/platformsdk/libace_compatible.z.so(7fb6238c773a1743be6ecc4f4caca515)
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
应用内 FFmpeg 开源三方库的编译
956浏览 • 1回复 待解决
HSP间接依赖三方库编译报错
72浏览 • 1回复 待解决
Retrofit这个开源三方库对应的HarmonyOS三方库地址是什么?
67浏览 • 1回复 待解决
【三方库移植】怎么在OpneHarmony标准系统上移植三方库
5838浏览 • 1回复 待解决
Hvigor自定义编译任务如何引用三方库
881浏览 • 1回复 待解决
HarmonyOS har包依赖三方库,三方库中的so,无法找到
101浏览 • 1回复 待解决
三方库c/cpp库在HarmonyOS上如何使用cmake编译
101浏览 • 1回复 待解决
实现弹幕功能的三方库
699浏览 • 1回复 待解决
如何获取可用的三方库
1530浏览 • 1回复 待解决
HarmonyOS 希望支持三方库WebViewJavascriptBridge
74浏览 • 1回复 待解决
有图片加载的三方库么?
790浏览 • 1回复 待解决
HarmonyOS RN三方库的适配情况
180浏览 • 1回复 待解决
HarmonyOS rn三方库集成官网
110浏览 • 1回复 待解决
HarmonyOS RN三方库列表对应CAPI库列表
144浏览 • 1回复 待解决
openharmony编译第三方库找不到sdk_info.json
7217浏览 • 5回复 待解决
httpclient三方库代理请求关闭问题
840浏览 • 1回复 待解决
开发第三方SDK如何编译?
13119浏览 • 2回复 待解决
HarmonyOS有哪些合适三方网络库、加解密库
103浏览 • 1回复 待解决
是否提供类似图片手势三方库PinchImageView的库?
1534浏览 • 1回复 待解决
求大佬告知如何使用三方cpp库
1640浏览 • 1回复 待解决
在Native侧如何集成三方SO库
1811浏览 • 1回复 待解决
HarmonyOS升级版本后,Native编译第三方库会报错
79浏览 • 1回复 待解决
HarmonyOS native三方库如何使用命令行进行编译
86浏览 • 1回复 待解决
uniapp 编译HarmonyOS,三方SDK已经支持HarmonyOS了吗?
99浏览 • 1回复 待解决
HarmonyOS 三方库和本地module引用问题
134浏览 • 1回复 待解决
可以参考这篇文档解决:https://gitee.com/openharmony-sig/tpc_c_cplusplus/blob/master/lycium/doc/ohos_use_sdk/OHOS_SDK-Usage.md