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
1天前
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
fox280

未正常引入三方库。

分享
微博
QQ
微信
回复
1天前
相关问题
native交叉编译三方
367浏览 • 1回复 待解决
HSP间接依赖三方编译报错
774浏览 • 1回复 待解决
HarmonyOS 编译三方大数libgmp
235浏览 • 1回复 待解决
应用内 FFmpeg 开源三方编译
1543浏览 • 1回复 待解决
HarmonyOS RN-原生引入RN三方编译异常
346浏览 • 1回复 待解决
编译报错Found exception如下
1794浏览 • 1回复 待解决
Hvigor自定义编译任务如何引用三方
1437浏览 • 1回复 待解决
openharmony 交叉编译openjdk报错
1065浏览 • 1回复 待解决
开发第三方SDK如何编译
13732浏览 • 2回复 待解决
HarmonyOS 怎么交叉编译curl、openssl
788浏览 • 1回复 待解决
HarmonyOS 依赖第三方报错
231浏览 • 1回复 待解决
HarmonyOS ohpm添加第三方报错
196浏览 • 1回复 待解决