mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[GH-ISSUE #44] [GithubActions] add an aarch64-apple-darwin build to releases #12
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gllmAR on GitHub (Dec 9, 2023).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/44
Running chmod +x on lan-mouse-mac binary results in an error due to missing libadwaita-1.0.dylib.
brew install libadwaitadidn't resolve the issue.error log
Temporary Solution
when I compiled the source code after installing libadwaita via brew, I was able to run the locally compiled binary successfully.
This leads me to believe that the issue might be specific to the pre-compiled binary.
@feschber commented on GitHub (Dec 10, 2023):
Could you give me the output of
?
And did you try executing the downloaded
lan-mouse-macafter compiling from source?For me the provided binary works but I can only test on bigsur amd64 at the moment after having compiled everything.
The dependencies I installed are
@gllmAR commented on GitHub (Dec 11, 2023):
the output of
ls /usr/local/lib | grep libadwaitaresult nothingoutput of
ls /usr/local/libshow some lib but no libadwaitaa system wide search with
find / -name 'libadwaita*' 2>/dev/nullresult these finds ( I hidden some since there was a bunch of less meaningfull result)yes i did but it was still not working (same error message)
as a temporary workaround, I create a symbolic link from the libadwaita to it's expected place
Running the release get me the following error message indicating that I try to run it on the wrong architecture (m1) which is progress but probably another issue.
@feschber commented on GitHub (Dec 11, 2023):
It seems like on M1 / Apple Silicon the libraries are installed in
/opt/homebrew/libinstead of/usr/local/lib(as is the case with intel macs).The binary uploaded for the releases is compiled for Intel Macs so it would be expected that it does not work. You would need to run it via rosetta (2?) in this case.
I can not personally test this right now but from what I've read it would be something along the lines of
I only briefly got a chance to test on an actual M1 mac and had some rendering issues with libadwaita (only a black box was displayed instead of the actual window). For that reason I did not want to publish a binary for M1 Macs yet.
You mentioned that you got it to work when compiling from source: Did you run into the same issue or did the window get displayed correctly?
If it works on your end, I would update the GitHub-Actions runner to produce a
lan-mouse-mac-arm64for Apple Silicon.@gllmAR commented on GitHub (Dec 11, 2023):
running
arch -x86_64 lan-mouse-macseem's to indicate that executable can't bind to arm64 libs installed with brew...running software from source result in proper display with no visible artifact on m1 hardware 👍
@feschber commented on GitHub (Dec 11, 2023):
Thats good news! I will update the release to include an Apple Silicon build then.
The issue above might be because of the symlink you created (it seems to be trying to load that library which will of course not work).
In order to install the correct x86_64 libraries you might need to install & run homebrew under rosetta as well.
But I guess there is no reason to do that if the native version works ;)
@feschber commented on GitHub (Dec 12, 2023):
Small update: The m1 hosted runners don't seem to be free of charge yet, so I need to setup a cross-compilation toolchain (still figuring out how to setup pkg-config for that).
Hopefully wont take too long :)
@feschber commented on GitHub (Mar 21, 2024):
Good news: https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/
@feschber commented on GitHub (Mar 21, 2024):
closed in #45