raftario / filite

A simple, light and standalone pastebin, URL shortener and file-sharing service
MIT License
190 stars 16 forks source link

Build for armhf processor? #19

Closed luftaquila closed 4 years ago

luftaquila commented 4 years ago

I tried to execute filite init, but it failed with error: cannot execute binary file: exec format error. My device is raspberry pi 3 with raspbian. Thank you for help.

raftario commented 4 years ago

The prebuilt binaries are only for x86_64. You can easily build it yourself on the Pi itself by running cargo install filite (you'll need the Rust toolchain installed, the easiest way to get it is rustup)

luftaquila commented 4 years ago

The prebuilt binaries are only for x86_64. You can easily build it yourself on the Pi itself by running cargo install filite (you'll need the Rust toolchain installed, the easiest way to get it is rustup)

Uh, my pi just stopped working while building : ( I guess it was too harsh for pi to compile it. Thank you anyway.

raftario commented 4 years ago

Hmm, that's actually a pretty fair point. If you open a PR to enable automatic builds for the Pi I'll merge it (here is a good starting point).

I can also add it myself, but it's not really one of my priorities so you'll have to wait for that.

luftaquila commented 4 years ago

@raftario Since I'm new to the GitHub Actions, I struggled to make it work with armv7 and failed :( Filite binary is created, but it says 'cannot execute binary file: Exec format error'. I think it doesn't compiled with armv7 toolchain but I don't know why. When you have some free time, please check mine. Thank you.

My tries : https://github.com/luftaquila/filite/actions

raftario commented 4 years ago

You're not uploading the right binary. The armv7 one will be in target/armv7-unknown-linux-gnueabihf/release/.

raftario commented 4 years ago

Now that I think of it, an automatic build isn't really necessary since you can also use cross from your desktop to build for the Pi.

luftaquila commented 4 years ago

Uh, I see. I'll try it. Thank you!