====== Compile on Mac OS X ====== This guide was tested on clean installation of [[http://www.apple.com/osx/|Mac OS X]] 10.10 Yosemite.\\ Everything is done from command line in terminal. When you don't have installed command line tools and compilers then Mac OS X will popup window and ask if you want to install them (they are free).\\ ==== 1. Prerequisites. ==== For PtokaX compile you need **tinyxml** (library used to read and write xml files) and **Lua** (programming language used for scripting).\\ They can be installed using package manager [[http://brew.sh|Homebrew]]. * **Tinyxml and Lua**\\ Install them with command: **brew install lua tinyxml** ==== 2. Downloading source and compile. ==== * **a. PtokaX source**\\ Download it with command: **wget** http://www.PtokaX.org/files/0.5.2.2-nix-src.tgz\\ Unpack downloaded archive with command: **tar -xf 0.5.2.2-nix-src.tgz**\\ Now we have in actual directory new directory PtokaX. Go to that directory with command: **cd PtokaX** * **b. PtokaX compile**\\ Compile PtokaX with command: **make macosx** ==== 3. Setup and run. ==== * **a. **[[guides:unix_basic_setup|Basic setup.]] * **b. **[[guides:unix_run|How to run as console application or daemon.]]