Compiling Yabause/macosx/qt

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

top » build: macosx » host: macosx

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

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

Compiling Yabause either using Cmake-gui, or via command line.

Cmake-gui

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.

SKIP THIS STEP IF YOU USED THE METHOD ABOVE

Command line

  • Goto the extracted Yabause folder via terminal, the path should look something like:
/Users/*your name*/yabause  
  • create a new folder by typing:
"mkdir Build" and press enter.
  • Enter the newly created folder by typing:
"cd Build" and press enter
  • Now to generate the Xcode project, type:
"cmake -G Xcode .." and press enter
  • cmake should start generating the Xcode project.

CONTINUE HERE

  • Start up Xcode. Select "File" menu, then "Open". Open your "yabause-build" or "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.