-
Notifications
You must be signed in to change notification settings - Fork 108
Running From Source on Mac OS X
These steps will detail how to run Khroki/MCEdit-Unified from source, on Mac OS X 10.10.
The first step is to clone the repository
git clone https://github.com/Khroki/MCEdit-Unified
cd MCEdit-Unifiedor if you've cloned the repository in the past...
git pullIf you don't have it already, install Homebrew. Please follow the instructions presented at the end of installation to make sure your Homebrew is set up properly.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`Now you have to install PyGame. These instructions will detail building PyGame 1.9.1 from the PyGame Downloads page.
First, download PyGame and open it. You can also download it from the link above and unarchive it however you want.
curl -OfSL# http://pygame.org/ftp/pygame-1.9.1release.zip
unzip pygame-1.9.1release.zip
rm pygame-1.9.1release.zip
cd pygame-1.9.1releaseThen run config.py. Answer Y to any setup questions you receive.
sudo python config.pyIt should show you a list of items and indicate wether it found them or not. Compare the list to the one presented here
- Framework SDL - Download the OS X Disk Image (.dmg) for version 1.2 from libsdl.org, and copy the included
SDL.frameworkinto/Library/Frameworks - Framework SDL_ttf - http://www.libsdl.org/projects/SDL_ttf/
- Framework SDL_image - http://www.libsdl.org/projects/SDL_image/
- Framework SDL_mixer - http://www.libsdl.org/projects/SDL_mixer/
- Framework smpeg - Not required
- PNG - Use
brew install libpngto install - JPEG - Use
brew install libjpegto install - SCRAP - Not required, however copy/pasting text will not work without it. At this time we cannot locate a version that builds on the latest OS X versions.
- PORTMIDI - Not required
- Framework CoreMidi -
You aren't done yet, even if all your dependencies are installed, including XQuartz, it still won't work. Use the following command to make XQuartz readable. This makes a symbolic link to XQuartz at the location where PyGame expects it.
sudo ln -s /opt/X11/include/X11 /usr/local/include/X11Ok, last step. I promise. Download scale_mmx64.c and put it in pygame-1.9.1release/src, replacing the one included in PyGame.
Now, you can try to build. Make sure you've cded into pygame-1.9.1release
sudo python setup.py installYou can test that its installed by opening Python
pythonand importing PyGame
import pygameOnce PyGame is working, install pip (if you don't already have it)
sudo easy_install pipAnd use pip to install the remaining dependencies
sudo pip install pyopengl pyyaml pillowNow, in Finder open MCEdit-Unified (that you cloned earlier), and double click mcedit.command. If you receive a permissions error, type (with trailing space) chmod +x , drag mcedit.command into the terminal window, and hit enter.
The MCEdit-Unified repository, otherwise known as MCEdit-Fork, is a fork of codewarrior0's original project, MCEdit. It is maintained by Khroki, Podshot, ezfe, TrazLander, naor2013, LaChal, Rubisk and many others.
If you wish to contribute to this project, please first read the guidelines for contributing.