Need help cross compiling Love #384
Replies: 3 comments 7 replies
-
It's not simple -- it's quite technical, and requires patience and practice. The first thing you need to do is point all the binary locations in your Makefile to where they are located in the toolchain. For me that is:
Then you need to check that there aren't any other hardcoded paths in the Makefile, and if there are and they are supposed to be pointing to the toolchain, change those too. If present, these usually occur in LIBS (software libraries/dependencies). Finally, and this is where it get really tricky, if there are any missing CFLAGS or LDFLAGS for the software to run on this system, you'll need to figure what they are. In most cases simply changing all the relevant binary/file paths to point to your toolchain will allow you to build, and if you're lucky, to run the software on the platform. After changing the paths, simply change into the source directory (where the Makefile is) and run make. Different software were built and set up for/with different toolchains, which only further complicates things. |
Beta Was this translation helpful? Give feedback.
-
Step by step instructions on how to set up the toolchain and build with it in the documentation, here: |
Beta Was this translation helpful? Give feedback.
-
It seems to use the classic autoconf/automake build system. There are some instructions for cross-compilation here. |
Beta Was this translation helpful? Give feedback.
-
Love is basically a set of custom Lua 5.1 bindings for SDL2, so in theory it should work OK. However, I honestly have no idea how to wrangle its Makefile into cross compiling it for the Miyoo CFW.
I have a Devuan 3.1 environment and I can build Love from source for x86_64 Linux with it. I also have a functional Bittboy toolchain configured. But I really don't know where to start with getting Love to cross compile, as it's not something I have experience with.
Any help here would be great, thanks!
Beta Was this translation helpful? Give feedback.
All reactions