Does Löve support Linux ARM?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
molul
Party member
Posts: 264
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain
Contact:

Does Löve support Linux ARM?

Post 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.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Does Löve support Linux ARM?

Post 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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
daviel
Prole
Posts: 13
Joined: Tue Apr 17, 2018 5:10 pm

Re: Does Löve support Linux ARM?

Post 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.
User avatar
molul
Party member
Posts: 264
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain
Contact:

Re: Does Löve support Linux ARM?

Post by molul »

Thanks for the answers :) I'll let you know if I manage to make it work.
aidalgol
Prole
Posts: 19
Joined: Tue Feb 07, 2012 7:53 pm
Location: New Zealand
Contact:

Re: Does Löve support Linux ARM?

Post 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.)
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Does Löve support Linux ARM?

Post by bartbes »

Yes, it should just work.
User avatar
molul
Party member
Posts: 264
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain
Contact:

Re: Does Löve support Linux ARM?

Post 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) :(
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Does Löve support Linux ARM?

Post 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.
User avatar
molul
Party member
Posts: 264
Joined: Sun Feb 05, 2012 6:51 pm
Location: Valencia, Spain
Contact:

Re: Does Löve support Linux ARM?

Post 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 :(
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Does Löve support Linux ARM?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests