提问人:asimkon 提问时间:9/13/2023 更新时间:9/15/2023 访问量:24
从源代码 Win-32bit 构建 grafana(搜索 -lmingwex 和 -lmingw32)
Build grafana from source Win-32bit (Searching for -lmingwex and -lmingw32)
问:
我已经成功地从 Windows 64 位 (GOARCH=amd64) 的源代码构建了 grafana,现在我正在尝试为 Windows 32 位 (GOARCH=386) 构建它。不幸的是,我通过Cygwin收到以下错误
searching for -lmingwex
C:/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-
w64-mingw32/bin/ld.exe: cannot find -lmingwex
C:/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-
w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/mingw64/bin/../lib/gc
c/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when
searching for -lmingw32
C:/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-
w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/mingw64/bin/../lib/gc
c/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib\libmingw32.a when
searching for -lmingw32
C:/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-
w64-mingw32/bin/ld.exe: skipping incompatible C:/mingw-w64/mingw64/bin/../lib/gc
c/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/libmingw32.a when
searching for -lmingw32
C:/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-
w64-mingw32/bin/ld.exe: cannot find -lmingw32
collect2.exe: error: ld returned 1 exit status
exit status 1
exit status 1
有什么想法可以帮助我吗?
问候
答:
评论
skipping incompatible
建议我以某种方式尝试将 64 位库与 32 位编译一起使用。