#Web executable for arm

1 messages · Page 1 of 1 (latest)

swift sorrel
#

Hey so as the title says I want to bundle dioxus app for web but for arm64 architecture. Is there any way to do it?

high lion
#

Can't you just set the compilation target like you would for any regular rust program?

swift sorrel
#

I set it to target arm64 but it still complie it for x86_64

high lion
#

dx bundle --arch arm64?

#

Found this on docs. You will apparently need to build it on an arm64 machine, if I understand this properly.

swift sorrel
swift sorrel
#

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

high lion
#

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.

swift sorrel
#

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

high lion
#

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.

swift sorrel
#

It's default bin created by dx bundle