Compiling Yabause under Windows

From Yabause
Jump to: navigation, search
Yabause Manual
For users
For developers
edit

top » build: windows » host: windows » port: windows

Setting up the build environment

This includes the compiler and the required tools to build Yabause and its dependancies.

MinGW

  • Download latest MinGW version and install it: MinGW 5.1.4
  • Double Click on MinGW 5.1.4.
  • Push Next.
  • Choose Download & Install.
  • Push I Agree.
  • Choose Candidate.
  • Check MinGW Base Tools, G++ Compiler and MinGW Make.
  • Choose C:\dev\MinGW as installation directory.
  • Push Install, wait a moment.
  • Push Next, and Finish.

MSYS

  • Download latest MSYS version and install it: MSYS-1.0.11
  • Double Click on MSYS-1.0.11.
  • Push Next.
  • Push Yes.
  • Push Next.
  • Choose C:\dev\msys as installation directory.
  • Push Next, Next and Install.
  • You have a dos windows.
  • Question 1 : Do you wish to continue with the post install ? Type Y and push Enter.
  • Question 2 : Do you have MinGW installed ? Type Y and push Enter.
  • Question 3 : Where is your MinGW installation ? Type c:/dev/MinGW.
  • Push Enter to each message.
  • Uncheck Welcome to MSYS and README.
  • Push Finish.

MSYS Developer Toolkit

  • Download and install MSYS Developer Toolkit executable and install it : msysDTK-1.0.1
  • This will install "MSYS Developper Toolkit". Do you wish to continue ? Push Yes
  • Push Next, then Yes.
  • Choose C:\dev\msys as installation directory.
  • Push Next and Install.
  • Push Next and Finish.

Autotools

- Create a directory : c:\dev\download

- Download these 4 files in the following directory "c:\dev\download" :

M4

Extract m4 1.4.7-MSYS to c:/dev/download
Go to c:/dev/download/usr/bin and get m4.exe
Copy - Paste m4.exe to c:/dev/msys/bin

Libtool

Go to your Start Menu --> All Programs --> MinGW --> Msys and click on MSYS(rxvt) :

mkdir /usr/src
cd /usr/src
tar -xvzf /c/dev/download/libtool-2.2.6a.tar.gz
cd libtool-2.2.6
./configure --prefix=/mingw && make && make install

Autoconf

Enter the following commands :

cd /usr/src
tar xfvj /c/dev/download/autoconf-2.64.tar.bz2 
cd autoconf-2.64
./configure --prefix=/mingw && make && make install

Automake

Enter the following commands :

cd /usr/src
tar xfvj /c/dev/download/automake-1.11.tar.bz2
cd automake-1.11
./configure --prefix=/mingw && make && make install

Install Directx Libraries : dx80_mgw

  • Download dx80_mgw in c:\dev\download
  • Unpack it in c:\dev\mingw.

Install SVN

  • Download SVN-win32-1.6.4
  • Unpack it in c:/dev/download
  • Go to c:/dev/download/svn-win32-1.6.4. Select the folders bin, iconv, licenses, share and copy-paste to c:/dev/msys/local

Compile Yabause

Launch Msys and enter the following commands :

Getting the source :

cd /usr/src
svn co https://yabause.svn.sourceforge.net/svnroot/yabause/trunk

Compile Mini18n :

cd /usr/src
cd C:/dev/msys/src/trunk/mini18n
./autogen.sh && ./configure && make && make install

Compile Yabause :

cd ~
cd C:/dev/msys/src/trunk/yabause
./autogen.sh && ./configure MINI18N=/usr/local && make clean && make

You could find Yabause executable in the following directory : C:/dev/msys/src/trunk/yabause/src/windows