10-12-2015, 04:08 AM
This thread deserved a stick. Here you go.
Cross compile Cuberite for Raspberry Pi
|
10-12-2015, 04:08 AM
This thread deserved a stick. Here you go.
10-12-2015, 04:16 AM
(This post was last modified: 10-12-2015, 04:16 AM by Seadragon91.)
Thank you
Will look to update this thread, because of the name change and a few others small things
06-21-2017, 03:33 PM
(This post was last modified: 06-21-2017, 03:34 PM by Seadragon91.)
I think this is now obsolete, or?
06-21-2017, 04:21 PM
Somewhat. It just needs a little updating - the ToLua++ executable is no longer needed. It still has a great step-by-step detailed guide for installing the crosscompiling tools, which is a great help.
06-21-2017, 04:44 PM
Yes tolua++ it no longer needed, but now it's required to have lua installed.
07-02-2017, 11:03 PM
Updated the tutorial:
Thanks given by: xoft
08-19-2017, 02:08 AM
Would this work for oDroid-C2 as well? What changes would I need to make to compile this for/deploy this on my oDroid-C2?
08-19-2017, 02:41 AM
A similar method works but it requires a different set of libraries and configuration files.
09-25-2019, 02:32 AM
(This post was last modified: 09-26-2019, 04:08 AM by Seadragon91.)
Updated the tutorial:
12-29-2019, 04:13 AM
(This post was last modified: 12-29-2019, 04:21 AM by konradybcio.)
Since Raspberry Pi isn't really the most powerful piece of hardware, you might want to play around with compiler optimization flags. Adding:
"-march=armv8-a+crc -mtune=cortex-a53 -O2 -pipe -mfpu=neon-fp-armv8" for RPi3 64-bit "-O2 -pipe -mcpu=cortex-a7 -mfpu=neon-vfpv4" for RPi2/3 32-bit "-march=armv8-a+crc -mtune=cortex-a72 -O2 -pipe" for RPi4 64-bit to CFLAGS/CXXFLAGS should increase performance at least slightly. These sets of flags come from Gentoo wiki or other Gentoo-on-Pi projects. -ftree-vectorize shouldn't also hurt for any of these -pipe pretty much just speeds up the build -march/-mtune/-mcpu/-mfpu will cook the code specifically for a given platform so as to squeeze all the juice off of it -O2 is an optimization level that shouldn't break anything, more brave of you could try -O3 (I haven't noticed major problems directly connected with it) -flto enables link time optimizations, which could be an another source of performance gains, but I haven't tested whether that works yet. If building the project with these flags doesn't introduce any errors, perhaps they could be incorporated in official builds, but that'd increase the number of images built, and I'm not sure whether CI and/or devs would be comfortable with that. EDIT: btw, I'm using latest GCC9 to build, so I'm not sure whether all of these options are present in older compiler revisions (I've seen mentions of gcc4 somewhere on project's github) Thanks given by: xoft
|
« Next Oldest | Next Newest »
|