-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zlib on mingw is misdetected #64
Comments
attached a patch for 'configure.ac': |
Thank you for the patch. I believe this is better. configure.ac before
configure.ac after
|
I have no tryed on a Windows system with 2021 MSYS2 and MinGW 64 bit shell, but I suspect it will never require Winsock32. |
I tried to build without ws2_32 by commenting out ws2_32 like this.
It ended up in error ...
ws2_32 is used for endian conversion ? |
probably 'htonl' is in the network stack |
hi,
I got an error on ./configure using MSYS2 mingw64 shell:
user@HOST MINGW64 /d/AMBIENTE/Documents/c/jbig2enc
$ ./configure
...
checking how to hardcode library paths into programs... immediate
checking for _head_libws2_32_a in -lws2_32... no
Error! zlib not detected.
where zlib is installed, complete of all headers and dll:
user@HOST MSYS /d/AMBIENTE/Documents/c/jbig2enc
$ pacman -Sl | grep zlib
mingw32 mingw-w64-i686-zlib 1.2.11-5 [installato]
mingw64 mingw-w64-x86_64-zlib 1.2.11-5 [installato]
msys mingw-w64-cross-zlib 1.2.11-1 [installato]
msys zlib 1.2.11-1 [installato]
msys zlib-devel 1.2.11-1 [installato]
user@HOST MSYS /d/AMBIENTE/Documents/c/jbig2enc
$ pacman -Ql mingw-w64-x86_64-zlib
mingw-w64-x86_64-zlib /mingw64/
mingw-w64-x86_64-zlib /mingw64/bin/
mingw-w64-x86_64-zlib /mingw64/bin/libminizip-1.dll
mingw-w64-x86_64-zlib /mingw64/bin/zlib1.dll
mingw-w64-x86_64-zlib /mingw64/include/
mingw-w64-x86_64-zlib /mingw64/include/minizip/
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/aes.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/aes_ni.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/aesopt.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/aestab.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/brg_endian.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/brg_types.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/fileenc.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/hmac.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/prng.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/pwd2key.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/aes/sha1.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/crypt.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/ioapi.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/ioapi_buf.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/ioapi_mem.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/iowin32.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/unzip.h
mingw-w64-x86_64-zlib /mingw64/include/minizip/zip.h
mingw-w64-x86_64-zlib /mingw64/include/zconf.h
mingw-w64-x86_64-zlib /mingw64/include/zlib.h
mingw-w64-x86_64-zlib /mingw64/lib/
mingw-w64-x86_64-zlib /mingw64/lib/cmake/
mingw-w64-x86_64-zlib /mingw64/lib/cmake/minizip-exports-release.cmake
mingw-w64-x86_64-zlib /mingw64/lib/cmake/minizip-exports.cmake
mingw-w64-x86_64-zlib /mingw64/lib/libminizip.a
mingw-w64-x86_64-zlib /mingw64/lib/libminizip.dll.a
mingw-w64-x86_64-zlib /mingw64/lib/libz.a
mingw-w64-x86_64-zlib /mingw64/lib/libz.dll.a
mingw-w64-x86_64-zlib /mingw64/lib/pkgconfig/
mingw-w64-x86_64-zlib /mingw64/lib/pkgconfig/minizip.pc
mingw-w64-x86_64-zlib /mingw64/lib/pkgconfig/zlib.pc
mingw-w64-x86_64-zlib /mingw64/share/
mingw-w64-x86_64-zlib /mingw64/share/licenses/
mingw-w64-x86_64-zlib /mingw64/share/licenses/zlib/
mingw-w64-x86_64-zlib /mingw64/share/licenses/zlib/LICENSE
mingw-w64-x86_64-zlib /mingw64/share/man/
mingw-w64-x86_64-zlib /mingw64/share/man/man3/
mingw-w64-x86_64-zlib /mingw64/share/man/man3/zlib.3.gz
As 'zlib' is present in the system and 'libws2' is not needed,
a simple dirty hack like changing lines 47/48 of 'configure.ac' to:
echo "Error! zlib not detected.")
#exit -1)
let build the binary and it work.
The text was updated successfully, but these errors were encountered: