Minetest MTS Editor Compilation
This is very simple, as MTSEdit was written in ANSI C. The one and only dependency it has is the SDL2 library. Just issue make
in the "src" directory, and that will autodetect your operating system (Linux, BSD, MacOSX and Windows).
It also needs some data files, which can be found
here.
Under Linux, BSD and all other POSIX systems
You'll need the development version of SDL2, which can be installed by your distro's standard package management software
("apt-get install", "emerge", "pacman", "port", "homebrew" etc.). It is usually called "libsdl-dev" or similar.
- in the mtsedit/src/ directory, run
make
- run
sudo make install
(this will copy mtsedit into /usr/bin, and the data/ directory into /usr/share/mtsedit)
Under MacOSX
- in a Terminal, run
xcode-select --install
and in the pop-up window click on "Install", this will give you "gcc" and "make" under MacOSX
- download SDL2-X.dmg under the section Development Libraries
- open it with Finder, and drag'n'drop SDL2.framework to "/Library/Frameworks"
- in the mtsedit/src/ directory, run
make
- run
make package
- extract ../mtsedit-intel-macosx.zip to "/Applications"
Under Windows
- install MinGW, this will give you "gcc" and "make" under Windows
- download SDL2-devel-X-mingw.tar.gz under the section Development Libraries
- extract SDL2 into a directory under MinGW's home directory
- open mtsedit/src/Makefile in Notepad, and edit MINGWSDL to the path where you've extracted the tarball, add the last SDL2-X part too
- copy $(MINGWSDL)/i686-w64-mingw32/bin/SDL2.dll into C:\Windows
- start MSYS (part of MinGW), go to the mtsedit/src/ directory, and run
make
(if it complains about "cc", then run CC=gcc make
)
- create "C:\Program Files (x86)\MTSEdit"
- copy the newly compiled mtsedit.exe there
- copy the mtsedit/data/ directory to "C:\Program Files (x86)\MTSEdit\data"