-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arm build for Linux #489
Arm build for Linux #489
Conversation
I'd suggest we use cross to build for multiple architectures. |
Thanks, I'll give it a go, this initial PR was just a stab in the dark. |
@Insprill If you have any experience with |
.github/workflows/build.yml
Outdated
- name: Install Linux Dependencies | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libssl-dev libasound2-dev | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this is because cross
uses the native action runner to do the amd compilation but not arm? I thought I could install these in the root Cargo.toml
with:
[workspace.metadata.cross.target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install libgtk-3-dev:$CROSS_DEB_ARCH libssl-dev..."
]
But I get this error on the arm Ubuntu indicating they might not be installed...
cflags" "glib-2.0" "glib-2.0 >= 2.56"` did not exit successfully: exit status: 1
error: could not find system library 'glib-2.0' required by the 'glib-sys' crate
--- stderr
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
41276a2
to
82f9f74
Compare
@Insprill Took long enough... anyways let me know if you have any suggestions with the current implementation. One thing I removed was the |
0fcd44a
to
91055d2
Compare
4881699
to
47bf5f8
Compare
@Insprill I'm going to go ahead since I can't see any major consequence. We can add back the test if we'd like in a later PR. |
No description provided.