Compiling Yabause under Windows with Cmake

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

top » build: windows » host: windows

Contents

Setting up the build environment :

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

CMake

  • Download the latest CMake version and install it : CMake 2.8.11.2

Qt Libraries

  • Download the latest Qt Libraries version and install it : Qt 4.8.2

SDL Development Libraries

  • Download and install the latest SDL Development Libraries : SDL-devel-1.2.15-VC8.zip
  • Create a directory : C:\SDL
  • Unzip "SDL-devel-1.2.15-VC8" in C:\SDL

TortoiseSVN

  • Download and install the latest TortoiseSVN : Tortoise SVN 1.8.2

Visual C++ 2010 Express Edition

  • Download Visual C++ 2010 Express Edition and install it : Visual C++ 2010 Express Edition

Installation and Compiling :

- Create a directory : C:\Yabause

How to get the Yabause source with TortoiseSVN ?

  • Create a directory : C:\Yabause Source
  • Right Click on your folder "Yabause Source" and click on "SVN Checkout..."
  • Set the path on "URL of repository" : http://svn.code.sf.net/p/yabause/code/
  • Set the path on "Checkout Directory" : c:\Yabause Source, then click on "Ok" button.
  • Be patient to get all files.

Compiling Mini18n

  • Create a directory : C:/mini18n
  • Launch CMake (cmake-gui).
Where is the code source : C:/Yabause Source/trunk/mini18n
Where to build the binaries : C:/mini18n
  • Click on "Ok" button.
  • Choose Visual Studio 10 and push the "Finish" button.
  • Click on "Configure" button.
  • Change CMAKE_INSTALL_PREFIX's value to where you want to install mini18n. e.g. C:/Program Files(x86)/mini18n. Make a note of this for later.
  • Click on "Generate" button.
  • Close CMake.
  • Start Visual Studio as administrator(this is important). Select "File" menu, then "Open", then "Project/Solution...". Open C:/mini18n and select "mini18n.sln". Visual Studio will load project.
  • On the left panel, right click on "Solution 'mini18n' (8 projects)". Choose "Build Solution".
  • On the left panel, right click on "Install" and choose "Build".
  • Be patient.

Compiling Yabause

  • Launch CMake (cmake-gui) and set the paths :
Where is the code source : C:/Yabause Source/trunk/yabause
Where to build the binaries : C:/Yabause

  • Click on "Ok" button.
  • Choose Visual Studio 10 and push the "Finish" button.
  • You'll get a window with lot red lines. we're going to setting the paths.
MINI18N_INCLUDE_DIR --> C:/Program Files(x86)/mini18n/include(or wherever you put mini18n)
MINI18N_LIBRARY --> C:/Program Files(x86)/mini18n/lib/mini18n.lib(or wherever you put mini18n)
SDL_INCLUDE_DIR --> C:/SDL/SDL-1.2.15/include
SDL_LIBARY or SDL_LIBRARY_TEMP --> C:/SDL-1.2.15/lib/x86/SDL.lib
YAB_PORTS -> qt
YAB_PORT_OSD -> Make sure it's checked
  • Click on "Configure" button.
  • Click on "Generate" button.
  • Close CMake.
  • Start Visual Studio as administrator(only needed if you want to install Yabause to program files). Select "File" menu, then "Open", then "Project/Solution...". Open C:/Yabause and select "yabause.sln". Visual Studio will load project.
  • Optionally set active solution to "Release".
  • On the left panel, right click on "Solution 'Yabause' (7 projects)". Choose "Build Solution".
  • Be patient. Get yourself a coffee or something.
  • To get your Yabause.exe, go to : c:/Yabause/src/qt/Release. If you ran Visual Studio as administrator it'll also get installed to your program files\yabause directory.
Personal tools