-
Notifications
You must be signed in to change notification settings - Fork 109
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-Unified
or if you've cloned the repository in the past...
git pull
If 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.1release
Then run config.py
. Answer Y
to any setup questions you receive.
sudo python config.py
It 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.framework
into/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 libpng
to install - JPEG - Use
brew install libjpeg
to 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/X11
Ok, 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 cd
ed into pygame-1.9.1release
sudo python setup.py install
You can test that its installed by opening Python
python
and importing PyGame
import pygame
Once PyGame is working, install pip (if you don't already have it)
sudo easy_install pip
And use pip to install the remaining dependencies
sudo pip install pyopengl pyyaml pillow
Now, 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.