完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
想将histreaming.app代码移植到鸿蒙侧,发现在调用liblink_core.so文件时报错,请大佬帮忙解答一下,感谢
这个是CMakeLists.txt相关内容 这个是项目.so文件存放位置 编译时报错如下 > Task :entry:preBuild FAILED: E:/project/Smartcar/entry/build/intermediates/cmake/debug/obj/ARM64-v8a/libhello.so cmd.exe /C "cd . && C:UserschenjiacAppDataLocalHuaweiSdknative2.0.1.93llvmbinclang++.exe --target=aarch64-linux-ohos --gcc-toolchain=C:/Users/chenjiac/AppData/Local/Huawei/Sdk/native/2.0.1.93/llvm --sysroot=C:/Users/chenjiac/AppData/Local/Huawei/Sdk/native/2.0.1.93/sysroot -fPIC -g -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack -Wformat -Werror=format-security -O0 -fno-limit-debug-info --rtlib=compiler-rt -fuse-ld=lld -Wl,--build-id=sha1 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -lunwind -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack -shared -Wl,-soname,libhello.so -o E:projectSmartcarentrybuildintermediatescmakedebugobjarm64-v8alibhello.so CMakeFiles/hello.dir/hello.cpp.o CMakeFiles/hello.dir/jni_utils.c.o -Wl,-rpath,E:/project/Smartcar/entry/src/main/cpp/../../../libs/arm64-v8a E:/project/Smartcar/entry/src/main/cpp/../../../libs/arm64-v8a/liblink_core.so -lm && cd ." ld.lld: error: E:/project/Smartcar/entry/src/main/cpp/../../../libs/arm64-v8a/liblink_core.so is incompatible with aarch64linux 这里说liblink_core.so不兼容,不知道是不是这个so文件不支持arm64-v8a clang++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. Cmake thread org.gradle.api.GradleException: native build cmake execute failed at com.huawei.ohos.build.utils.ProcessUtils.processWait(ProcessUtils.groovy:104) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy:90) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy) at com.huawei.ohos.build.utils.ProcessUtils$execute$1.callCurrent(Unknown Source) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy:66) at com.huawei.ohos.build.utils.ProcessUtils$execute$0.callCurrent(Unknown Source) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy:62) at com.huawei.ohos.build.utils.ProcessUtils$execute.call(Unknown Source) at com.huawei.ohos.build.dsl.CmakeThread.executeCmakeBuild(CmakeThread.groovy:106) at com.huawei.ohos.build.dsl.CmakeThread.run(CmakeThread.groovy:58) Exception in thread "Thread-2598" org.gradle.api.GradleException: native build cmake execute failed at sun.reflect.GeneratedConstructorAccessor325.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:80) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:249) at com.huawei.ohos.build.utils.ProcessUtils.processWait(ProcessUtils.groovy:104) at sun.reflect.GeneratedMethodAccessor296.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:184) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy:90) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy) at com.huawei.ohos.build.utils.ProcessUtils$execute$1.callCurrent(Unknown Source) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy:66) at com.huawei.ohos.build.utils.ProcessUtils$execute$0.callCurrent(Unknown Source) at com.huawei.ohos.build.utils.ProcessUtils.execute(ProcessUtils.groovy:62) at com.huawei.ohos.build.utils.ProcessUtils$execute.call(Unknown Source) at com.huawei.ohos.build.dsl.CmakeThread.executeCmakeBuild(CmakeThread.groovy:106) at com.huawei.ohos.build.dsl.CmakeThread.run(CmakeThread.groovy:58) > Task :entry:compileDebugNativeWithCmake FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':entry:compileDebugNativeWithCmake'. > native build cmake execute failed * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 15s 2 actionable tasks: 2 executed |
|
相关推荐
2个回答
|
|
https://developer.huawei.com/consumer/cn/forum/topic/0203469681415480202?fid=26 可以看一下这个回复呢
最佳答案
|
|
|
|
@xusiwei 请许思维老师来为开发者解答一下难题。
|
|
2 条评论
|
|
只有小组成员才能发言,加入小组>>
2221个成员聚集在这个小组
加入小组HiSpark IPC AI摄像头(Hi3518E)串口能输入输出吗?
888 浏览 1 评论
【星闪派物联网开发套件体验连载】使用Dockerfile搭建润和WS63E的开发环境
1462 浏览 1 评论
【星闪派物联网开发套件体验连载】用HiHope星闪server端BearPi星闪client端互相发代码控制对方板载灯
1401 浏览 0 评论
【星闪派物联网开发套件体验连载】用HiHope星闪server端发代码控制BearPi
936 浏览 0 评论
【星闪派物联网开发套件体验连载】智能交通灯--云端查看,远程控制视频
1366 浏览 0 评论
12303浏览 10评论
1925浏览 3评论
1383浏览 2评论
1218浏览 2评论
1169浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-25 12:30 , Processed in 0.881135 second(s), Total 119, Slave 97 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号