What can I do to make Love 2d transferable after compiling?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 19
- Joined: Sun Mar 13, 2016 3:23 am
What can I do to make Love 2d transferable after compiling?
Recently I had to compile Love again after an Update messed up my current Setup on my Raspberry Pi. Unfortunately it appears I cannot simply throw my compiled Love into a usb stick without it breaking(no errors or anything it just won't work). What can I do to fix this problem? Thanks friends.
Re: What can I do to make Love 2d transferable after compiling?
Nothing can be done. An executable is only valid on a system with the same architecture and relies on libraries of specific versions being available. You cannot take the love executable from an amd64 system and run it under i386 for example and generally moving executables around is very discouraged unless they are designed for that (like .exe s on windows, the format is called "Portable Executable" after all).
What you need to do is compile it on the raspi, or cross-compile it to the raspi.
What you need to do is compile it on the raspi, or cross-compile it to the raspi.
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: What can I do to make Love 2d transferable after compiling?
You can throw it on a USB if you make sure to get all the dependencies on there as well if it was compiled for the pi anyways. There is a Linux distribution thing for love that does that as well. But anyways the pi has a love package in retropi I think it's called. So you could just install that instead
-
- Prole
- Posts: 19
- Joined: Sun Mar 13, 2016 3:23 am
Re: What can I do to make Love 2d transferable after compiling?
I want to transfer it between different raspberry pis or keep it as a back up if my pi fails again.s-ol wrote:Nothing can be done. An executable is only valid on a system with the same architecture and relies on libraries of specific versions being available. You cannot take the love executable from an amd64 system and run it under i386 for example and generally moving executables around is very discouraged unless they are designed for that (like .exe s on windows, the format is called "Portable Executable" after all).
What you need to do is compile it on the raspi, or cross-compile it to the raspi.
????You can throw it on a USB if you make sure to get all the dependencies on there as well if it was compiled for the pi anyways. There is a Linux distribution thing for love that does that as well. But anyways the pi has a love package in retropi I think it's called. So you could just install that instead
Re: What can I do to make Love 2d transferable after compiling?
I'm puzzled. If it misses libraries, which is what I'd look into first, it should spit some error on a terminal.
Maybe you're not executing it from a terminal?
Maybe you're not executing it from a terminal?
-
- Prole
- Posts: 19
- Joined: Sun Mar 13, 2016 3:23 am
Re: What can I do to make Love 2d transferable after compiling?
Ok one detail I left out. When I first transfered the files it said file system does not support symbolic links. After I reformatted the usb to NTFS and tried again that error did not pop up again. (I just went back to fat32 and the error came back)
Now when running Love itself I either get a "permission denied" error or if I use sudo(keep in mind this is only for the files on the flash drive) I get "./love command not found"
I'm starting to thing maybe I need to reformat the USB to ext4?
Thanks friends
Now when running Love itself I either get a "permission denied" error or if I use sudo(keep in mind this is only for the files on the flash drive) I get "./love command not found"
I'm starting to thing maybe I need to reformat the USB to ext4?
Thanks friends
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: What can I do to make Love 2d transferable after compiling?
I will clarify my admittedly cryptic reply.
In order to build love and have it run on the pi from a USB stick you need to have it compiled on the pi. You also need to include all of the packages and libraries required for love
For example Like they do here https://bitbucket.org/funkeh/love-linux ... n/overview
But all of that is pointless because you do not even have to build it because someone else has already done it for you.
https://github.com/retropie/retropie-setup/wiki/Love
Hopefully I was much more clear than before.
In order to build love and have it run on the pi from a USB stick you need to have it compiled on the pi. You also need to include all of the packages and libraries required for love
For example Like they do here https://bitbucket.org/funkeh/love-linux ... n/overview
But all of that is pointless because you do not even have to build it because someone else has already done it for you.
https://github.com/retropie/retropie-setup/wiki/Love
Hopefully I was much more clear than before.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 11 guests