HarmonyOS交叉编译cmake,编译三方库minizip时,报错fatal error: 'gnu/stubs-32.h' file not found
38ffa2fc13ec:/opt/huawei/code/Lite/Lite_cmake/minizip_cmake/third_party/minizip-ng # make
Scanning dependencies of target minizip
[ 6%] Building C object CMakeFiles/minizip.dir/mz_crypt.c.o
clang: warning: argument unused during compilation: '--gcc-toolchain=//opt/huawei/code/Lite/Lite_cmake/minizip_cmake/native/llvm' [-Wunused-command-line-argument]
In file included from /opt/huawei/code/Lite/Lite_cmake/minizip_cmake/third_party/minizip-ng/mz_crypt.c:11:
In file included from /opt/huawei/code/Lite/Lite_cmake/minizip_cmake/third_party/minizip-ng/mz.h:157:
In file included from /usr/local/include/stdlib.h:25:
In file included from /usr/local/include/bits/libc-header-start.h:33:
In file included from /usr/local/include/features.h:452:
/usr/local/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>
^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/minizip.dir/build.make:63: CMakeFiles/minizip.dir/mz_crypt.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/minizip.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
使用的linux系统为:
38ffa2fc13ec:/usr/share/cmake/Modules/Platform # lsb_release -a
LSB Version: n/a
Distributor ID: SUSE
Description: SUSE Linux Enterprise Server 15
Release: 15
Codename: n/a
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
LLVM编译配置错误:fatal error: 'utility' file not found
2463浏览 • 1回复 待解决
native交叉编译第三方库
367浏览 • 1回复 待解决
三方库c/cpp库在HarmonyOS上如何使用cmake编译
847浏览 • 1回复 待解决
HSP间接依赖三方库编译报错
774浏览 • 1回复 待解决
HarmonyOS 由于Har包内无法存放.a静态库,导致三方库编译生成cmake难以维护
261浏览 • 1回复 待解决
求问下HarmonyOS平台的交叉编译工具链在哪呢,有编译第三方库的诉求?
393浏览 • 1回复 待解决
HarmonyOS 编译第三方大数库libgmp
235浏览 • 1回复 待解决
HarmonyOS升级版本后,Native编译第三方库会报错
830浏览 • 1回复 待解决
应用内 FFmpeg 开源三方库的编译
1543浏览 • 1回复 待解决
HarmonyOS 源码编译HarmonyOS化RN和三方库方案
343浏览 • 1回复 待解决
编译三方库报Platform/OHOS to use this system错误
1467浏览 • 1回复 待解决
HarmonyOS RN-原生引入RN三方库编译异常
346浏览 • 1回复 待解决
编译报错Found exception如下
1794浏览 • 1回复 待解决
HarmonyOS RN三方库react-native-reanimated编译错误
298浏览 • 1回复 待解决
Hvigor自定义编译任务如何引用三方库
1437浏览 • 1回复 待解决
openharmony 交叉编译openjdk报错
1065浏览 • 1回复 待解决
HarmonyOS 可否帮忙编译指定版本的三方库(FFmpeg、opencv)
14浏览 • 1回复 待解决
开发第三方SDK如何编译?
13732浏览 • 2回复 待解决
HarmonyOS 怎么交叉编译curl、openssl库?
788浏览 • 1回复 待解决
openharmony编译第三方库找不到sdk_info.json
8242浏览 • 5回复 待解决
HarmonyOS 依赖第三方库报错
231浏览 • 1回复 待解决
HarmonyOS native三方库如何使用命令行进行编译
726浏览 • 1回复 待解决
uniapp 编译HarmonyOS,三方SDK已经支持HarmonyOS了吗?
690浏览 • 1回复 待解决
HarmonyOS ohpm添加第三方库报错
196浏览 • 1回复 待解决
未正常引入三方库。