MCPE Launcher
Launch MCPE on macOS and Linux!
Setup for macOS
Make sure you've got XCode set up: xcode-select --install
(when the dialog pops up, just say you want the tools). Next, make sure you have Brew installed
The packages you'll need are as follows:
- cmake
- git (this will come pre-installed with xcode-select, but make sure it's up-to-date)
- openssl
Everything else will be built automatically and statically linked against your executable. So do not install libzip
, ossp-uuid
, glfw
or any other packages you think you need.
Next, you'll need to build the project. Run the provided scripts ./setup_bin_libs.sh
(to grab FMOD) and download_icon.sh
(to grab the icon, which is currently not used)
The commands to build using CMake are as follows (ensure you do not build from the root directory, rather, always use the build/
directory)
$ mkdir build/ && cd build/
$ cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .. # OpenSSL root is required
$ make -j$(sysctl -n hw.ncpu) # This will use all the cores on your system
Next, move back into the root directory and start the game with ./start_mcpelauncher.sh
Enjoy!
Setup for Ubuntu
- Minimal:
cmake gcc-multilib g++-multilib zlib1g-dev:i386 libx11-dev:i386 libzip-dev:i386 libpng-dev:i386 uuid-dev:i386 libcurl4-openssl-dev:i386 libssl-dev:i386 libgles2-mesa-dev:i386
- CEF (supports Xbox Live):
libgtk2.0-0:i386 libgtkglext1:i386 libasound2:i386 libnss3:i386 libxss1:i386 libgconf2-4:i386 libxtst6:i386 libudev1:i386
- First Time Setup (allows you to log in to Google Play and download the .apk):
protobuf-compiler libprotobuf-dev:i386
(requires the CEF dependencies as well)
You'll also need to install 32-bit version of the graphic drivers (nvidia drivers ask you about that at installation, so
you may need to reinstall/reconfigure them; if you use mesa you'll need to install the libgles2-mesa-dev:i386
and
libegl1-mesa-dev:i386
packages)
You may also need to do sudo dpkg --add-architecture i386
if you have never installed i386 packages before
Compile using (if you want to build with CEF first do: ./setup_cef.sh
):
$ ./download_icon.sh
$ ./setup_bin_libs.sh
$ mkdir build/ && cd build/
$ cmake ..
$ make # Add -j`nproc` if you want to use all cores on your system
Running
- Clone this repository
- Compile the launcher
- You'll need to obtain a x86 MCPE
.apk
. If you have built the application with the First Time Setup, you'll be able to log in to your Google account the first time you start the launcher and download it. If you can not do this then after you have downloaded MCPE, run:./mcpelauncher extract filename
- Run the launcher!
If the extract script fails with an error about the .apk
not being x86, it means that you have provided it a bad .apk
.
You'll need to purchase MCPE on Google Play and use the first time setup.
License and thanks
Most of the code in this repo is licensed under BSD. A modified version of libhybris is also included, which is licensed under GPL. This project also uses the GLFW library for rendering, FMOD library for sound, BSD epoll-shim to replace epoll on macOS and GLAD for GL loaders.