[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] Which wrong do cross-compileing wget for windows?

From: Fluss
Subject: [Bug-wget] Which wrong do cross-compileing wget for windows?
Date: Sun, 28 Jan 2018 14:26:34 +0800

  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.

  source code:wget-1.19.1.tar.gz,downloading from https://ftp.gnu.org/gnu/wget/
     OS: ubuntu 17.10
     Toolchain:mingw-w64 5.0.2
     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 
     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 

     configure is always error.

     WinDLL folder tree construction
               |-*.h;*.c(copy from ./openssl)
     OS: windows 7
     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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]