You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix OpenSSL dependency issues for ARM64 builds in GitHub Actions
- Add ARM64 architecture support with dpkg --add-architecture arm64
- Install libssl-dev:arm64 for OpenSSL development headers
- Configure PKG_CONFIG_ALLOW_CROSS=1 for cross-compilation
- Set PKG_CONFIG_PATH to ARM64 library location
- Add pkg-config package to toolchain dependencies
Resolves build failures when cross-compiling to aarch64-unknown-linux-gnu
target due to missing OpenSSL libraries and improper pkg-config setup.
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ubuntu-ports.list
191
+
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ubuntu-ports.list
192
+
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-security main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ubuntu-ports.list
193
+
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports noble-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list.d/ubuntu-ports.list
194
+
195
+
# Refresh package lists (retry up to 3 times)
196
+
sudo apt-get -o Acquire::Retries=3 update
197
+
198
+
# Install cross-compiler, OpenSSL (ARM64) and pkg-config
0 commit comments