- CMake
- SDL2
- SDL2 TTF
- Lua 5.2
- boost >= 1.52
$ ci/install_deps_macos.sh
$ tools/build.py
$ tools/play.py
$ ci/install_deps_ubuntu.sh
$ tools/build.py
$ tools/play.py
For Raspberry Pi, run with -r
option to change graphics resolution.
$ tools/play.py -r
Take the following steps to build mengde through Docker:
- Install Docker on your machine as described in the Docker documentation.
- Optionally, create a Linux group called docker to allow launching containers without sudo as described in the Docker documentation. (If you don't do this step, you'll have to use sudo each time you invoke Docker.)
- Create a Docker image for building the mengde.
$ docker build -t {image_tag_name} docker
- Launch a Docker container that contains one of created binary images for building.
$ docker run --rm -v `pwd`:{mount_path_on_container} -w={mount_path_on_container} {image_tag_name} tools/build.py
You need to install required packages
sudo apt-get install qemu qemu-user-static binfmt-support debootstrap
sudo apt-get install binutils-arm-linux-gnueabihf
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
You then need to prepare a root filesystem. Only ARMv7l is supported for now.
$ sudo ./cross/build-rootfs.sh
Root file system will be prepared in ./cross/rootfs/armv7l
After it's prepared, you can build with --cross
option.
$ tools/build.py --cross armv7l
TBD