mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.14k stars 1.52k forks source link

How to build geckodriver for ARMV8 #2028

Open shliar opened 2 years ago

shliar commented 2 years ago

System

Hi: I want to use geckodriver on an armv8 machine,but how to build geckodriver for armv8?There are only methods to build geckodriver for armv7hf in the document.In addition, I would like to know if I can build geckodriver using the physical machine of armv8 instead of cross compiling

whimboo commented 2 years ago

Would you be satisfied with the following command that you should be able to run on the target device to build the most recent geckodriver: cargo install geckodriver?

jamesmortensen commented 2 years ago

@whimboo Can we also create a page in the documentation for building geckodriver for arm64? I believe these steps should work:

apt install gcc-aarch64-linux-gnu libc6-arm64-cross libc6-dev-arm64-cross

source $HOME/.cargo/env

rustup target install aarch64-unknown-linux-gnu

Put this in testing/geckodriver/.cargo/config:

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
cargo build --release --target aarch64-unknown-linux-gnu

@shliar you can try these steps. Hope this helps.

jamesmortensen commented 1 year ago

@shliar did you see that Mozilla has now released an official linux/arm64 (aarch64) geckodriver binary