Compiling Yabause/macosx/qt

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

top » build: macosx » host: macosx

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.12

Xcode

  • Download from the Mac App Store or from the Apple Xcode site and install.

Qt Libraries

  • Optionally download the latest Qt Libraries version and install it : Qt 4.8.5

SDL Development Libraries

  • Optionally download the latest SDL Development Libraries and install it : SDL 1.2.15

How to get the Yabause source with Xcode ?

Compiling Mini18n

  • Launch CMake (cmake-gui).
Where is the code source : Put where you saved mini18n. e.g. /Users/myaccount/Documents/mini18n
Where to build the binaries : Use the same location but append "-build" on the end. e.g. /Users/myaccount/Documents/mini18n-build
  • Click on "Configure" button. When it asks if it's OK to create directory, click "Yes".
  • Choose "Xcode" from the list and click the "Done" button. Wait until program finishes detecting settings.
  • Click on "Generate" button.
  • Close or minimize CMake.
  • Start up Xcode. Select "File" menu, then "Open". Open your "mini18n-build" folder. Xcode will load project.
  • Click on item to the left of "Build Settings". Should say something like "ALL_BUILD". Change this to "install".
  • Go into "Product" menu, then click "Build". Wait a minute.
  • Now mini18n should be installed.

Compiling Yabause

  • Launch CMake (cmake-gui) and set the paths :
Where is the code source : Put where you saved Yabause. e.g. /Users/myaccount/Documents/yabause
Where to build the binaries : Use the same location but append "-build" on the end. e.g. /Users/myaccount/Documents

/yabause-build

  • Click on "Configure" button. When it asks if it's OK to create directory, click "Yes".
  • Choose "Xcode" from the list and click the "Done" button. Wait until program finishes detecting settings.
  • You'll get a window with lot red lines. we're going to setting the paths.
YAB_PORTS -> If you've installed Qt and want to use it set this to "qt" otherwise set this to "cocoa".
YAB_PORT_OSD -> Make sure it's checked.
  • Click on "Configure" button.
  • Click on "Generate" button.
  • Close CMake.
  • Start up Xcode. Select "File" menu, then "Open". Open your "yabause-build" folder. Xcode will load project.
  • Go into "Product" menu, then click "Build".
  • Be patient. Get yourself a coffee or something.
  • To get your Yabause executable, go into your "yabause-build" folder.
  • If you want to install, click on item to the left of "Build Settings". Should say something like "ALL_BUILD". Change this to "install".
  • Go into "Product" menu, then click "Build". Wait a minute.
  • Now Yabause should be installed.
Personal tools