Love appImage template (for Linux)

Discuss any ports of LÖVE to different platforms.
User avatar
adnzzzzZ
Party member
Posts: 305
Joined: Sun Dec 26, 2010 11:04 pm
Location: Porto Alegre, Brazil

Re: Love appImage template (for Linux)

Post by adnzzzzZ » Wed Feb 21, 2018 7:05 am

Thanks bartbes. I managed to get it working by building my own tarball and then the appimage. For some reason the docker part had all sorts of pushd/popd related bugs with paths so I couldn't do that.

What I'd like to know is where should I add libraries? For Steam I need to add libsteam_api.so somewhere but I'm not sure where. It doesn't seem like I can do it after the final executable is built, so it has to be somewhere in the appimage build script? But I'm not sure where.

User avatar
bartbes
Sex machine
Posts: 4943
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love appImage template (for Linux)

Post by bartbes » Wed Feb 21, 2018 4:44 pm

adnzzzzZ wrote:
Wed Feb 21, 2018 7:05 am
For some reason the docker part had all sorts of pushd/popd related bugs with paths so I couldn't do that.
Can you make an issue for that so I can take a look? It's been running fine for months on multiple systems for me.
adnzzzzZ wrote:
Wed Feb 21, 2018 7:05 am
What I'd like to know is where should I add libraries? For Steam I need to add libsteam_api.so somewhere but I'm not sure where. It doesn't seem like I can do it after the final executable is built, so it has to be somewhere in the appimage build script? But I'm not sure where.
The easiest place is in the tarball stage. Depending on what kind of library it is the location will vary. If it's a c library to be used by love or via the ffi, you can drop it in basically anywhere that contains libraries, so usr/lib is a good bet. If it's a lua library (as in, a c library you want to require directly) at the moment you'll need to modify the launcher script to set the LUA_CPATH environment variable (or modify package.cpath in your code).

User avatar
adnzzzzZ
Party member
Posts: 305
Joined: Sun Dec 26, 2010 11:04 pm
Location: Porto Alegre, Brazil

Re: Love appImage template (for Linux)

Post by adnzzzzZ » Thu Feb 22, 2018 4:08 pm

This worked. I managed to get it working on Ubuntu 16.04+ systems so far. This is good enough for now for me. Thanks!

User avatar
drunken_munki
Party member
Posts: 134
Joined: Tue Mar 29, 2011 11:05 pm

Re: Love appImage template (for Linux)

Post by drunken_munki » Sat Feb 24, 2018 11:49 am

Sorry to be a massive pain here, but could I pick your brains?

Is it technically possible to create a Linux build of a LOVE game while in a Windows OS?

User avatar
adnzzzzZ
Party member
Posts: 305
Joined: Sun Dec 26, 2010 11:04 pm
Location: Porto Alegre, Brazil

Re: Love appImage template (for Linux)

Post by adnzzzzZ » Sat Feb 24, 2018 2:57 pm

I haven't tried it but I don't think it is, drunken_munki. I used multiple VMs for doing and testing my builds on Linux. I think technically you could try with the Windows 10 Linux Subsystem but I think that would lead to lots of bugs.

User avatar
drunken_munki
Party member
Posts: 134
Joined: Tue Mar 29, 2011 11:05 pm

Re: Love appImage template (for Linux)

Post by drunken_munki » Sun Feb 25, 2018 3:21 pm

Thanks for the reply adnzzzzZ.

I'm going to have to install Ubuntu and get used to it, it's been several years. I've been developing on a Windows 7 and can package the game I'm making for windows, but am researching how the feck to make a linux release.

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests