Cross compile Cuberite for Raspberry Pi - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Cross compile Cuberite for Raspberry Pi (/thread-1675.html) |
Cross compile Cuberite for Raspberry Pi - Seadragon91 - 12-11-2014 Hello! Compiling cuberite on a raspberry pi can take a long time. For this problem I looked for a way to cross compile a raspberry pi version. This tutorial should work on debian and on ubuntu based systems. You will need a linux system for the compiling process, a raspberry pi image and other things too. If you open the terminal then the location should be by default your home location. We need to do 3 steps. Let's start. Install Requirements Packages that are required. Run this command with sudo or as root: apt-get install cmake lua5.1 gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf Required for:
Setting up the gcc cross compiler
Everything completed. Copy the the directory Server to the raspberry pi and test if it's running. If you have any questions, problems ask. Good luck, Seadragon91 Sources used: http://stackoverflow.com/questions/19162072/installing-raspberry-pi-cross-compiler http://somewideopenspace.wordpress.com/2014/02/28/gcc-4-8-on-raspberry-pi-wheezy/ http://www.raspberrypi.org/downloads/ RE: Cross compile mc server for raspberry pi - bearbin - 12-11-2014 Thanks for this guide. I could never get it working myself. I'll fix it up for the Hard-float builds, now my own pi has died. RE: Cross compile mc server for raspberry pi - bearbin - 12-13-2014 Can you confirm exactly what you do with the tolua to make it work? I don't see any tolua executable in the folder you said. RE: Cross compile mc server for raspberry pi - Seadragon91 - 12-13-2014 (12-13-2014, 04:14 AM)bearbin Wrote: Can you confirm exactly what you do with the tolua to make it work? I don't see any tolua executable in the folder you said. Requirement is a compiled mc server for the computer you are running. The tolua file will be generated at around 16%. Then you should have a file named tolua in this directory: Code: path/to/mc-server/source/Release/lib/tolua++/ Code: ~/raspberrypi/tolua++ For executing the file tolua, the directory who contains it has to bee added to the environment PATH variable. Edit: Changed the directory for the tolua to tolua++, it's better RE: Cross compile mc server for raspberry pi - Seadragon91 - 12-13-2014 Added download link of mc server for raspberry pi. RE: Cross compile mc server for raspberry pi - Seadragon91 - 12-14-2014 @bearbin and did you got it working the cross compling? RE: Cross compile mc server for raspberry pi - bearbin - 12-15-2014 Yeah I'm going to work on it but I was away for the weekend this weekend. I have the skeleton code mostly done, and I have wednesday afternoon and thursday free next week so I should be able to get it done then. RE: Cross compile mc server for raspberry pi - Seadragon91 - 12-23-2014 I removed the download link. You can now download the file from here: http://builds.cuberite.org/ Thanks to @bearbin RE: Cross compile mc server for raspberry pi - bearbin - 12-24-2014 The download is also available directly from the homepage, which is probably good for newer users. RE: Cross compile mc server for raspberry pi - xoft - 02-09-2015 Thanks for the guide, I was able to set up the crosscompiling environment, too. Finally I can compile without turning the Gallery server off |