Dev:Windows10

From TMW: rEvolt

It is now possible to run tmwAthena at native speed on Windows 10 using the Linux subsystem.

Updating Windows

The Linux subsystem is only available on Windows 10 build 14332 or newer.

From Windows 7, Windows 8 or Windows 8.1

You must first update to Windows 10. If you have Windows 7, 8 or 8.1, you might be eligible for a 100% free of cost upgrade to Windows 10. Instructions are available on http://www.microsoft.com/en-us/windows/windows-10-upgrade. Once you are running Windows 10, proceed to the next step.

From Windows 10

Enabling the Linux subsystem

Open Start or Cortana and search "Turn Windows features on or off" then click the first item. In the list, find and enable "Windows Subsystem for Linux". Reboot the computer. In Start or Cortana, search "cmd" and click the first item. Write bash and press Enter. Write y and press enter. Wait for the download and for the extraction to finish then set up a username and password. Close the command prompt.

Setting up the Bash environment

Updating and Installing dependencies

In Start or Cortana, search for "Bash on Ubuntu on Windows" and open the first item.

 sudo apt-get update
 sudo apt-get upgrade
 sudo apt-get install g++ python2.7 make realpath git build-essential gdb libxml2-utils libgtest-dev valgrind zlib1g-dev
 sudo apt-get autoremove

Setting up tmwAthena

 mkdir -p /mnt/c/tmwAthena
 mkdir -p ~/bin
 cd /mnt/c/tmwAthena
 git clone --recursive git://github.com/themanaworld/tmwa.git
 git clone --recursive git://github.com/themanaworld/tmwa-server-data.git
 echo "export PATH=$PATH:~/bin:~/lib" >> ~/.bashrc
 source ~/.bashrc
 curl -L https://git.io/voUjs > ~/bin/tmwa-build
 curl -L https://git.io/voUjz > ~/bin/tmwa-clean
 chmod u+x ~/bin/tmwa*
 tmwa-build
 git config --global url.git@github.com:.pushInsteadOf git://github.com
 cd tmwa-server-data
 make conf


You can now access the files in C:\tmwAthena and you can build and install TMWA whenever you want with tmwa-build. You can not directly use configure, make, make install because of a lack of symlink support in Windows, so the build is done in a folder in the subsystem.