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
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.

使用的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
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
HarmonyOS
2025-01-10 09:54:06
1.2w浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
fox280

未正常引入三方库。

分享
微博
QQ
微信
回复
2025-01-10 11:28:57


相关问题
native交叉编译三方
707浏览 • 1回复 待解决
HSP间接依赖三方编译报错
1227浏览 • 1回复 待解决
HarmonyOS 编译三方大数libgmp
591浏览 • 1回复 待解决
应用内 FFmpeg 开源三方编译
1899浏览 • 1回复 待解决
HarmonyOS RN-原生引入RN三方编译异常
707浏览 • 1回复 待解决
openharmony 交叉编译openjdk报错
1410浏览 • 1回复 待解决
Hvigor自定义编译任务如何引用三方
1831浏览 • 1回复 待解决
编译报错Found exception如下
2350浏览 • 1回复 待解决
开发第三方SDK如何编译
14133浏览 • 2回复 待解决
HarmonyOS 怎么交叉编译curl、openssl
1312浏览 • 1回复 待解决
HarmonyOS 依赖第三方报错
619浏览 • 1回复 待解决
HarmonyOS ohpm添加第三方报错
747浏览 • 1回复 待解决