dogecoin / dogecoin

very currency
MIT License
14.41k stars 2.82k forks source link

Add minor WSL building updates #3411

Closed chromatic closed 3 months ago

chromatic commented 4 months ago

Adding notes here; we should get feedback from other developers if this works for them as well.

UsaRandom commented 4 months ago

You can determine WSL version by running in windows cmd prompt:

wsl -l -v
MishaBoar commented 4 months ago

I tested the instructions, without issues. Tested also on a WSL install running 20.04.6 LTS.

You can determine WSL version by running in windows cmd prompt:

wsl -l -v

Yeah, this is useful.

I asked my colleague, who is a graphic designer with limited development experience, to try the guide and he also had no issues. Only doubts he had were about the WSL version and the selection of the posix option (after a few moments, he figured it out).

FultonDoge commented 4 months ago

please feel free to delete this comment if it not helpful

i am not technical so i am probably not the target userbase and have done this wrongly windows 10 64bit, ubuntu 18.0406 downloaded from microsoft store, WSL 1 ran terminal without run as administrator managed to do it for 1.14.7-dev

image

image

for me my experience i needed to get the source code

sudo mkdir /usr/src/dogecoin cd /usr/src/dogecoin sudo git clone https:/ /githu b.com/dogecoin/dogecoin.git ( delete spaces ) sudo git checkout 1.14.7-dev

image image

needed to add sudo to ./autogen.sh image

needed to add sudo to make command

image

needed to add sudo to make install DESTDIR=/mnt/c/workspace/dogecoin

image

i added sudo to some commands without knowing if it was needed or not make HOST=x86_64-w64-mingw32 CONFIG_SITE=$PWD/depends/x86_64-w64-mingw32/share/config.site ./configure --prefix=/ entered this command from prerequisits sudo apt-get install autoconf automake make binutils ca-certificates curl \ faketime git-core libtool pkg-config python bison

patricklodder commented 4 months ago

needed to add sudo to [..]

this is because you created the source directory with sudo. Instead of working from /usr/src, you may just work from $HOME and do the git clone there. This should get rid of all the sudo during compilation

chromatic commented 3 months ago

git clone https:/ /githu b.com/dogecoin/dogecoin.git ( delete spaces ) git checkout 1.14.7-dev

I added a note about git checkouts here and recommend against the use of sudo. Thanks for the suggestion!

FierceSkit commented 3 months ago

Built on WSL1