wget-dev
[Top][All Lists]
Advanced

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

wget2 | Building on Windows (#567)


From: Shadab Zafar (@dufferzafar)
Subject: wget2 | Building on Windows (#567)
Date: Sun, 14 Nov 2021 07:15:17 +0000


Shadab Zafar created an issue: https://gitlab.com/gnuwget/wget2/-/issues/567



It's not clear to me how exactly to build on Windows. I have Mingw64 toolchain 
setup. This is what I tried:

```
$ git clone --depth 1 https://gitlab.com/gnuwget/wget2/
$ cd wget2

$ bash -x contrib/mingw

+ set -e
+ unset CC
+ unset CXX
+ PREFIX=x86_64-w64-mingw32
+ export 
'PATH=/usr/x86_64-w64-mingw32/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/c/ProgramData/chocolatey/bin:/c/Program
 Files (x86)/GitHub CLI:/c/Users/duffe/scoop/shims:/c/Program Files/Microsoft 
VS Code Insiders/bin:/c/Program Files/Go/bin:/c/Program 
Files/nodejs/:/d/Software/bin'
+ 
PATH='/usr/x86_64-w64-mingw32/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/c/ProgramData/chocolatey/bin:/c/Program
 Files (x86)/GitHub CLI:/c/Users/duffe/scoop/shims:/c/Program Files/Microsoft 
VS Code Insiders/bin:/c/Program Files/Go/bin:/c/Program 
Files/nodejs/:/d/Software/bin'
+ export INSTALLDIR=/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32
+ INSTALLDIR=/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32
+ export 
PKG_CONFIG_PATH=/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/lib/pkgconfig:/usr/x86_64-w64-mingw32/lib/pkgconfig
+ 
PKG_CONFIG_PATH=/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/lib/pkgconfig:/usr/x86_64-w64-mingw32/lib/pkgconfig
+ export 
PKG_CONFIG_LIBDIR=/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/lib/pkgconfig
+ PKG_CONFIG_LIBDIR=/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/lib/pkgconfig
+ export PKG_CONFIG=/usr/bin/x86_64-w64-mingw32-pkg-config
+ PKG_CONFIG=/usr/bin/x86_64-w64-mingw32-pkg-config
+ export CPPFLAGS=-I/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/include
+ CPPFLAGS=-I/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/include
+ export LDFLAGS=-L/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/lib
+ LDFLAGS=-L/e/dev/dzfr/@clones/wget2/x86_64-w64-mingw32/lib
+++ find /usr/lib/gcc/x86_64-w64-mingw32 -name libgcc_s_seh-1.dll
+++ head -1
find: ‘/usr/lib/gcc/x86_64-w64-mingw32’: No such file or directory
++ dirname
dirname: missing operand
Try 'dirname --help' for more information.
+ GCCLIB=
```

I guess, I need to install some libraries. But again, not sure exactly which 
ones. 

I also tried to look at the Gitlab CI Job but it seems to have a cache, that it 
builds against, and doesn't install the dependencies: 
https://gitlab.com/gnuwget/wget2/-/jobs/1778332085

For someone who has built this on Windows, could they provide me with a list of 
packages that I need?

Btw, why don't we provide prebuilt binaries? Since we're building in CI 
already, we could just upload the built artifacts, right?

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/issues/567
You're receiving this email because of your account on gitlab.com.




reply via email to

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