Page 1 of 2

Does Löve support Linux ARM?

Posted: Thu May 31, 2018 3:33 pm
by molul
Such a long time not stepping on these forums :)

I've been asked to make an UI for a device that runs on a Linux ARM board (Rockchip). Before you ask, it was supposed to run Android, but they moved to Linux for some reasons I don't know.

They told me to use Unity, but it doesn't support ARM on Linux, so I'm searching for alternatives.

I haven't found evidence of Löve2d supporting Linux ARM, so I though I'd better ask here.

Thanks a lot in advance.

Re: Does Löve support Linux ARM?

Posted: Thu May 31, 2018 3:39 pm
by Nixola
It runs on the Pi, which is ARM; I don't know how easy/hard it would be to make it run on your specific device though

Re: Does Löve support Linux ARM?

Posted: Thu May 31, 2018 6:44 pm
by daviel
If you have a full fletched Linux distribution running there you will not have any problems compiling löve2d. As Nixola said before it is buildable and runs perfectly well on a raspberry pi.

Re: Does Löve support Linux ARM?

Posted: Fri Jun 01, 2018 10:40 am
by molul
Thanks for the answers :) I'll let you know if I manage to make it work.

Re: Does Löve support Linux ARM?

Posted: Thu Jun 07, 2018 9:11 am
by aidalgol
Is it straightforward to build against OpenGL ES on Linux? There are several hobbyist ARM boards with official Linux support that only provide the OpenGL ES 2 profile. (Pretty much anything with a Mali GPU, for example.)

Re: Does Löve support Linux ARM?

Posted: Fri Jun 08, 2018 5:38 pm
by bartbes
Yes, it should just work.

Re: Does Löve support Linux ARM?

Posted: Fri Jun 08, 2018 6:24 pm
by molul
Thanks bartbes. I hope I get it working :)

I was using an Ubuntu app for Windows 10 but I finally installed Ubuntu 16.04 for cross-building (can't build on the device).

Now I'm stuck on the ./configure step. I get this error:
checking for luajit5.1... no
checking for luajit51... no
checking for luajit... no
configure: error: Package requirements (luajit) were not met:

No package 'luajit' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables lua_CFLAGS
and lua_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Which makes sense, as the Rockchip toolchain has no luajit (and most likely other packages).

Is there anything I could do to go on? Not sure what the suggestions regarding PKG_CONFIG_PATH and llua_CFLAGS mean (sorry, I'm no Linux expert at all) :(

Re: Does Löve support Linux ARM?

Posted: Fri Jun 08, 2018 9:54 pm
by bartbes
You'll need to install the dependencies. I'm not sure what arm version is required for luajit, but you can definitely try to get it running. If that doesn't work out, try passing --help to configure to see how you can build against another lua implementation.

Re: Does Löve support Linux ARM?

Posted: Fri Jun 08, 2018 10:17 pm
by molul
Sorry, I missed a lot of details (I've been 12 hours on this already, I'm not even speaking properly ^_^U).

Dependencies are installed, and I actually built LÖVE for Ubuntu successfully to be sure I'm on the right track. The problem is that, for building for the ARM device, I'm using a toolchain that doesn't have some of the dependencies, starting with luajit.

Now, my doubt is: should I somehow install the dependencies on the toolchain? Or could I make the ./configure script look for the dependencies installed on Ubuntu instead of the toolchain's somehow?

If it was the latter, I hate to ask like this but, would anyone kindly tell me how to do it? Cross-building is a brand new world for me :(

Re: Does Löve support Linux ARM?

Posted: Fri Jun 08, 2018 10:23 pm
by bartbes
Oh, you're cross-compiling, well that's fun. You'll probably need to cross-compile all dependencies yourself, and maybe even set the environment variables to override the search paths. You can't re-use the dependencies installed on the host as you can't run those on the target.