#Web executable for arm
1 messages · Page 1 of 1 (latest)
Can't you just set the compilation target like you would for any regular rust program?
I set it to target arm64 but it still complie it for x86_64
dx bundle --arch arm64?
Found this on docs. You will apparently need to build it on an arm64 machine, if I understand this properly.
I tried it already and it stills compile to x86_64
okey i gonna try something like that
but the main issue with gh actions is that it doesn't give Linux arm64 i think
I'm currently compiling dioxus-cli on docker with arm image, maybe it will work
Hmm, weird. You could try manually building with cargo and the basic rust was tool chain but I'm not sure what else dx does so you'll need to figure out the steps.
Okey so i finally ended compiling dioxus-cli on docker with arm64 image. And after compiling my program the server and copying it to the server it trows this error
bash: ./server: cannot execute: required file not found
Maybe you know what to do in this situation
Is "server" a script?
I get that error on NixOS all the time when I use scripts with shebang #!/bin/bash because bash doesn't exist there on NixOS. Make sure you have whatever binary that script is trying to execute with.
Or try changing the shebang to #!/usr/bin/env bash
If it's a bin, might need to look at the ELF headers to see what interpreter is supposed to execute it and ensure you have that on the target system.
It's default bin created by dx bundle
how can i check that?