Palats / mapshot

Factorio mod to export maps as zoomable html
Apache License 2.0
77 stars 12 forks source link

Can you also compile your releases to ARM architecture? #13

Closed mszabolcs-dev closed 3 years ago

mszabolcs-dev commented 3 years ago

The file says it's a: mapshot-linux13: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Go BuildID=uddLtPxdcvoAGXUXjLzN/18KPkQR-w3AkfEdyv7ZO/8woBqF8KCDZW7lw-YD2O/r5WVmHnTYn0RB8KU0AgZ, not stripped

Before creating #12 I was able to run it on my raspberry pi, but after an apt-get update I'm getting an error: bash: ./mapshot-linux13: cannot execute binary file: Exec format error which is completetly makes sense, since raspi is an ARM architecture. And you can't run an 64bit LSB executable on an ARM.

mapshot@raspberrypi:~ $ cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4
...

So my question is, will you able to provide an ARM compiled version with your releases?

Palats commented 3 years ago

I've added ARM build (32bits for linux, 64bits for Darwin). I don't have a good way to test the resulting binaries, so I'm just trusting Go cross compile here :) You can find the binaries at https://github.com/Palats/mapshot/releases/tag/0.0.13.1 .