OpenWrt Forum Archive

Topic: Trying to build under bash in windows10 strange build_log

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I am trying again after doing sudo apt-get upgrade
and sudo apt-get install automake

You should install all the packages required by building in Ubuntu (which the bash in Windows is).
https://wiki.openwrt.org/doc/howto/buil … g_packages
Likely at least:

sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev
sudo apt-get install gawk gcc-multilib flex git-core gettext libssl-dev   

I used successfully Windows 10 bash to compile Openwrt, so it can be done. I documented my experiences here
https://forum.openwrt.org/viewtopic.php?id=67204

My experience revealed that in addition to the stuff for the normal Ubuntu you need also

sudo apt-get install unzip

But it is easier in the long run if you use a "full Linux", e.g. Ubuntu in a Virtualbox instance.

EDIT:
And you using /mnt/c/Windows/System32/ as the build system root sounds really dangerous, as you risk screwing your Windows itself...

You should create a new directory in bash /
Read my example.

(Last edited by hnyman on 16 Oct 2016, 14:02)

thanks mate after i chown & chmod the dir I think it is going to work now.

The discussion might have continued from here.