Hi, I want to compile the latest revision of Wget for Windows in order to practice and interest.However,I hadn't right result. I had searched for keyword "windows","cross-compile" at mail list(https://lists.gnu.org/archive/html/bug-wget/ and https://lists.gnu.org/mailman/listinfo/).But I cann't find a way.
Environment: source code:wget-1.19.1.tar.gz,downloading from https://ftp.gnu.org/gnu/wget/ 1.Linux OS: ubuntu 17.10 Toolchain:mingw-w64 5.0.2 step: 1.1. run "./configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-ssl=openssl" 1.2. output "configure: error: in `/home/xxxx/tmp/wget1191':""configure: error: The pkg-config script could not be found or is too old. " In config.log,All error info are "xx.h:No such file or directory" 1.3. downloading openssl-1.1.0g.tar.gz on windows,And run perl configure VC-WIN64A/nmake/nmake install.Copy dest openssl folders to "home/xxxx/WinDLL/openssl/OpenSSL" 1.4. run "./configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-ssl=openssl --with-libssl-prefix=/home/xxxx/WinDLL/openssl/OpenSSL --enable-threads=windows" 1.5. output "configure: error: --with-ssl=openssl was given, but SSL is not available." 1.6. run "./configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-openssl --with-libssl-prefix=/home/vm/WinDLL/openssl/OpenSSL --enable-threads=windows" 1.7. output "configure: error: openssl development library not found for MD5" configure is always error. WinDLL folder tree construction WinDLL |-openssl |-SSL |-OpenSSL |-bin |-libcrypto-1_1-x64.dll |-libssl-1_1-x64.dll |-html |-include |-openssl |-*.h;*.c |-*.h;*.c(copy from ./openssl) |-lib |-engines-1_1 |-capi.dll |-padlock.dll |-libcrypto.lib |-libssl.lib 2.windows OS: windows 7 Toolchain:vs2013 step: 1.1. creat an empty win32 console project and add files from wget1191/src. 1.2. add define HAVE_LIBSSL adn __WIN32__ 1.3. set include path wget1191/msdos to config.h and wget1191/lib 1.4. build project,output "Please include config.h first and not found tcp.h,_GL_INLINE_HEADER_BEGIN undefined" and so on. I think I set include wget1191/msdos/config.h isn't correct for win32,and that is only the first mistake. So,above that how will I get right wget by cross-compile on linux?THX.
