The easy way to setup Mac OS X to do libGDX game dev is to utilize homebrew
Homebrew requires xcode.
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you need to install git
and clone the project, do that first:
brew install git
mkdir ~/code && cd ~/code
git clone [email protected]:bploeckelman/LudumDare33.git
cd LudumDare33
Install Build requirements:
brew install caskroom/cask/brew-cask
brew cask install java
brew install android-sdk
echo yes | android update sdk -a --filter "platform-tools,build-tools-20.0.0,android-20" --no-ui --force
echo "sdk.dir=/usr/local/opt/android-sdk" > local.properties
If you don't have a java IDE installed, you can easily download one
(IntelliJ in this example) with brew cask
:
brew cask install intellij-idea-ce
Eclipse and Netbeans are also available through brew cask
.
Other Tasks
You might need to configure your ANDROID_HOME
in your IDE to be
/usr/local/opt/android-sdk
.
Install java
and git
from your distro package manager.
Install Build requirements (if you don't have a global android-sdk
installed):
cd LudumDare33
./travis/install-prerequisites.sh
echo "sdk.dir=travis/android-sdk-linux" > local.properties
./gradlew desktop:run
The game should build and run the desktop version.