jhead / phantom

Use your own Minecraft server with your Xbox or PS4 and play with friends!
MIT License
613 stars 76 forks source link

Compiled on Raspberry Pi 4 and the binary fails to execute. #93

Open trixtur opened 4 years ago

trixtur commented 4 years ago

I compiled this many times. Reinstalled Go and I'm still struggling to make progress. Once I compile and add exec permissions, I go to run the binary and I get:

-bash: ./phantom-linux: cannot execute binary file: Exec format error

Also additional note. I had to add SHELL=/bin/bash to the top of the Makefile to get it to work. Otherwise it threw an error about pushd.

trixtur commented 4 years ago

Just tried your arm8 binary and it gave me the same error.

trixtur commented 4 years ago
-bash: ./phantom-linux-arm8: cannot execute binary file: Exec format error
jhead commented 4 years ago

Hey @trixtur, hmmmmm.

This shows that it should be ARMv8 so I'm not sure why that one isn't working. The specs say that it should be backwards compatible though.

trixtur commented 4 years ago

My Pi 4 is running Raspbian buster. I did try to run arm7 with a similar result. Sorry for the delayed response. I ended up compiling the arm7 on my Pi 3 and running it there instead. I'd be happy to keep testing it on the Pi 4 though.

trixtur commented 4 years ago

I just pulled a fresh copy of the code and built arm8 again and I got the same error. However this time when I built arm7 it worked.

nhudacin commented 3 years ago

Hey - I can also confirm that running v0.5.3/phantom-linux-arm7 works on my RhaspberryPi4.

OS: Linux raspberrypi 5.4.83-v7l+ armv7l

Specifically (and no root needed):

wget https://github.com/jhead/phantom/releases/download/v0.5.3/phantom-linux-arm7
chmod u+x ./phantom-linux-arm7
./phantom-linux-arm8 -server $my_server_ip:19132

It worked almost immediately on my Xbox One Minecraft. I may have had to close & re-open it.

This is a great little tool @jhead nice work. I can prep a PR into the readme with this info if you'd like. Next task for me will be setting it up as a service so it's always running.

You can at least close this issue!