0

据我所知,MXE 中没有任何软件包,所以我必须设置自己的编译。

根据文档

如果您使用 Autotools,您所要做的就是:

./configure --host=i686-w64-mingw32.static

制作

而其他方法(修改makefile)总是以此结束

/root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/ libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x5c): undefined reference to inflate' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xdf): undefined reference todeflate' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/.. /../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x13d): 未定义引用inflateEnd' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x159): undefined reference todeflateEnd' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/ libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x1c4): undefined reference to inflateEnd' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x1cf): undefined reference todeflateEnd' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/.. /../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x26b): 未定义的引用inflateInit_' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x2e0): undefined reference todeflateInit_' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../ lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x57a): 未定义引用deflate' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x658): undefined reference tozError' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/ ../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x846):未定义的引用deflate' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x8d8): undefined reference tozError' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../ lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0x940): undefined reference to deflateInit_' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xa5e): undefined reference toinflate' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/ ../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xac8):未定义的引用zError' /root/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.1.0/../../../../i686-w64-mingw32.static/lib/../lib/libcrypto.a(c_zlib.o):c_zlib.c:(.text+0xb53): undefined reference toinflateInit_' collect2:错误:ld 返回 1 退出状态 Makefile:771:目标“tests.exe”的配方失败 make:*** [tests.exe] 错误 1

目前没有用于 mxe 的 SECP256k1 包(我不希望在不久的将来有一个包)所以我希望在这里得到指导。

4

0 回答 0