-
Notifications
You must be signed in to change notification settings - Fork 36.2k
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
"Windows Subsystem For Linux" for master not work #11549
Comments
Take a look at #11438 You also probably need to run |
I made each step in https://github.com/bitcoin/bitcoin/blob/master/doc/build-windows.md including "PATH=$(echo "$PATH" | sed -e 's/:/mnt.*//g')" without success. |
I reckon it's related to the I tested even doing a CD to a path like that and it failed without it being escaped:
|
Working steps for WSL are available here. Be sure to take note of the way the Ubunutu packages are being installed (Zesty packages onto Xenial). It gets the bitcoin build working but it may break other things. |
it seems @donaloconnor is correct, if so, it seems that |
That only strips the PATH environment variables. It could be and likely that it's to do with the current working dir that's used. |
ah indeed I missed the fact his bitcoin code was in this folder. |
I resolve the problem as rename directory "bitcoin-master" to "bitcoin" from master zip and move it into the root of C. |
@AngelTs welcome to linux world, where you build plane out of wooden sticks, because you don't trust anything bigger. ;) I plan in the future to make a simple docker file which setup a reproductible build environment which can work on windows every time. It is what I am using on my side, too much problem otherwise. |
@AngelTs what's the compilation error? Note that the current tutorial states building on Ubuntu 16.04 (which is what gets installed with WSL) is broken. Either see my instructions above to work around it or build on Ubuntu 14 or 17. |
Here is THE STEPPER [for Ubuntu 16.04.3 LTS]:
|
This method does not cross compile for native Windows (so no exe). Edit: sorry what I said here is 100% incorrect. Mind else where :) |
@AngelTs I think you've awry somewhere. There's no need to separately install all the dependencies. The make script in the depends directory does that. The detailed steps below repeatedly work for me on Ubuntu for Windows (aka WSL) including as recently as a few hours ago.
|
This has been fixed by #11438 so I think it can be closed. |
While running "./configure", for those, like me, who have Boost installed in a non standard location (i.e. not under /usr/local/) don't forget to use the --with-boost= and --with-boost-libdir=<BOOST ROOT DIR/stage/lib>. FYI, these two directories are output to the screen once Boost is built successfully. |
angel@DESKTOP-37ER0D7:/mnt/c/$ABC$/bitcoin/depends$ make HOST=x86_64-w64-mingw32
sha256sum: '/mnt/c/$/bitcoin/depends/patches/zeromq/9114d3957725acd34aa8b8d011585812f3369411.patch': No such file or directory
sha256sum: '/mnt/c/$/bitcoin/depends/patches/zeromq/9e6745c12e0b100cd38acecc16ce7db02905e27c.patch': No such file or directory
sha256sum: '/mnt/c/$/bitcoin/depends/patches/qt/mac-qmake.conf': No such file or directory
sha256sum: '/mnt/c/$/bitcoin/depends/patches/qt/mingw-uuidof.patch': No such file or directory
sha256sum: '/mnt/c/$/bitcoin/depends/patches/qt/pidlist_absolute.patch': No such file or directory
sha256sum: '/mnt/c/$/bitcoin/depends/patches/qt/fix-xcb-include-order.patch': No such file or directory
sha256sum: '/mnt/c/$/bitcoin/depends/patches/qt/fix_qt_pkgconfig.patch': No such file or directory
Configuring native_ccache...
/bin/sh: 1: Syntax error: "(" unexpected
funcs.mk:242: recipe for target '/mnt/c/BCbitcoin/depends/work/build/x86_64-w64-mingw32/native_ccache/3.3.4-e6d1b7b6109/./.stamp_configured' failed
make: *** [/mnt/c/BCbitcoin/depends/work/build/x86_64-w64-mingw32/native_ccache/3.3.4-e6d1b7b6109/./.stamp_configured] Error 2
The text was updated successfully, but these errors were encountered: