[GH-ISSUE #126] How to run it on MacOS #51

Closed
opened 2026-05-05 22:06:41 -06:00 by gitea-mirror · 11 comments
Owner

Originally created by @somenzz on GitHub (May 7, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/126

I have executed this:
brew install libadwaita
and download the release "lan-mouse-macos-intel"

I chmod u+x on lan-mouse-macos-intel, when run it in terminal, I got "zsh: bad CPU type in executable: /Users/aaron/Desktop/lan-mouse-macos-intel"

Originally created by @somenzz on GitHub (May 7, 2024). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/126 I have executed this: `brew install libadwaita` and download the release "lan-mouse-macos-intel" I chmod u+x on lan-mouse-macos-intel, when run it in terminal, I got "zsh: bad CPU type in executable: /Users/aaron/Desktop/lan-mouse-macos-intel"
gitea-mirror 2026-05-05 22:06:41 -06:00
Author
Owner

@somenzz commented on GitHub (May 7, 2024):

My CPU is inter.

<!-- gh-comment-id:2097777229 --> @somenzz commented on GitHub (May 7, 2024): My CPU is inter.
Author
Owner

@magicus commented on GitHub (May 7, 2024):

Are you sure you downloaded the correct file? Can you start a terminal and type file lan-mouse-macos-intel? What does that say? Also, what does uname -a say?

<!-- gh-comment-id:2097808712 --> @magicus commented on GitHub (May 7, 2024): Are you sure you downloaded the correct file? Can you start a terminal and type `file lan-mouse-macos-intel`? What does that say? Also, what does `uname -a` say?
Author
Owner

@feschber commented on GitHub (May 7, 2024):

seems like github recently updated their action runners to m1 images by default.
I updated them to use the intel runners again so in about 10 minutes the new prerelease should be working again.

Good catch!

<!-- gh-comment-id:2097895095 --> @feschber commented on GitHub (May 7, 2024): seems like github recently updated their action runners to m1 images by default. I updated them to use the intel runners again so in about 10 minutes the new prerelease should be working again. Good catch!
Author
Owner

@feschber commented on GitHub (May 7, 2024):

should now be the correct intel binary again in the latest prerelease

<!-- gh-comment-id:2097910169 --> @feschber commented on GitHub (May 7, 2024): should now be the correct intel binary again in the latest prerelease
Author
Owner

@somenzz commented on GitHub (May 9, 2024):

❯ file lan-mouse-macos-intel
lan-mouse-macos-intel: Mach-O 64-bit executable arm64
I will download it again, thank you.

<!-- gh-comment-id:2101821212 --> @somenzz commented on GitHub (May 9, 2024): ❯ file lan-mouse-macos-intel lan-mouse-macos-intel: Mach-O 64-bit executable arm64 I will download it again, thank you.
Author
Owner

@somenzz commented on GitHub (May 9, 2024):

But still not work:

❯ ./lan-mouse-macos-intel2 --port 54243
[2024-05-09T02:55:58Z WARN lan_mouse::config] /Users/aaron/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-05-09T02:55:58Z WARN lan_mouse::config] Continuing without config file ...
[2024-05-09T02:55:58Z INFO lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-05-09T02:55:59Z WARN lan_mouse::config] /Users/aaron/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-05-09T02:55:59Z WARN lan_mouse::config] Continuing without config file ...
[2024-05-09T02:55:59Z INFO lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-05-09T02:55:59Z INFO lan_mouse] Press Ctrl+Alt+Shift+Super to release the mouse
[2024-05-09T02:55:59Z INFO lan_mouse::server] running service
[2024-05-09T02:55:59Z INFO lan_mouse::capture] macos input capture not available: not yet implemented
[2024-05-09T02:55:59Z ERROR lan_mouse::capture] falling back to dummy input capture
[2024-05-09T02:55:59Z INFO lan_mouse::emulate] using macos input emulation
[2024-05-09T02:57:02Z INFO lan_mouse::server::frontend_task] added client 0
2024-05-09 10:57:05.766 lan-mouse-macos-intel2[18959:2001973] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
[2024-05-09T02:57:14Z INFO lan_mouse::dns] resolving 10.18.3.66 ...
[2024-05-09T02:57:14Z INFO lan_mouse::dns] 10.18.3.66: adding ip 10.18.3.66

(:18959): Gdk-CRITICAL **: 10:57:14.843: _gdk_macos_surface_update_fullscreen_state: assertion 'GDK_IS_MACOS_SURFACE (self)' failed

(:18959): Gdk-CRITICAL **: 10:57:24.538: _gdk_macos_surface_update_fullscreen_state: assertion 'GDK_IS_MACOS_SURFACE (self)' failed

(:18959): Gtk-WARNING **: 10:57:24.552: Broken accounting of active state for widget 0x7fddb278afc0(GtkBox)

(:18959): Gtk-WARNING **: 10:57:24.552: Broken accounting of active state for widget 0x7fddb278a5b0(GtkBox)

(:18959): Gtk-WARNING **: 10:57:24.552: Broken accounting of active state for widget 0x7fddb278a430(AdwComboRow)

<!-- gh-comment-id:2101847229 --> @somenzz commented on GitHub (May 9, 2024): But still not work: ❯ ./lan-mouse-macos-intel2 --port 54243 [2024-05-09T02:55:58Z WARN lan_mouse::config] /Users/aaron/.config/lan-mouse/config.toml: No such file or directory (os error 2) [2024-05-09T02:55:58Z WARN lan_mouse::config] Continuing without config file ... [2024-05-09T02:55:58Z INFO lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] [2024-05-09T02:55:59Z WARN lan_mouse::config] /Users/aaron/.config/lan-mouse/config.toml: No such file or directory (os error 2) [2024-05-09T02:55:59Z WARN lan_mouse::config] Continuing without config file ... [2024-05-09T02:55:59Z INFO lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] [2024-05-09T02:55:59Z INFO lan_mouse] Press Ctrl+Alt+Shift+Super to release the mouse [2024-05-09T02:55:59Z INFO lan_mouse::server] running service [2024-05-09T02:55:59Z INFO lan_mouse::capture] macos input capture not available: not yet implemented [2024-05-09T02:55:59Z ERROR lan_mouse::capture] falling back to dummy input capture [2024-05-09T02:55:59Z INFO lan_mouse::emulate] using macos input emulation [2024-05-09T02:57:02Z INFO lan_mouse::server::frontend_task] added client 0 2024-05-09 10:57:05.766 lan-mouse-macos-intel2[18959:2001973] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit [2024-05-09T02:57:14Z INFO lan_mouse::dns] resolving 10.18.3.66 ... [2024-05-09T02:57:14Z INFO lan_mouse::dns] 10.18.3.66: adding ip 10.18.3.66 (<unknown>:18959): Gdk-CRITICAL **: 10:57:14.843: _gdk_macos_surface_update_fullscreen_state: assertion 'GDK_IS_MACOS_SURFACE (self)' failed (<unknown>:18959): Gdk-CRITICAL **: 10:57:24.538: _gdk_macos_surface_update_fullscreen_state: assertion 'GDK_IS_MACOS_SURFACE (self)' failed (<unknown>:18959): Gtk-WARNING **: 10:57:24.552: Broken accounting of active state for widget 0x7fddb278afc0(GtkBox) (<unknown>:18959): Gtk-WARNING **: 10:57:24.552: Broken accounting of active state for widget 0x7fddb278a5b0(GtkBox) (<unknown>:18959): Gtk-WARNING **: 10:57:24.552: Broken accounting of active state for widget 0x7fddb278a430(AdwComboRow)
Author
Owner

@feschber commented on GitHub (May 9, 2024):

What dou you mean exactly? Does the window show up?

<!-- gh-comment-id:2102308631 --> @feschber commented on GitHub (May 9, 2024): What dou you mean exactly? Does the window show up?
Author
Owner

@joaomcarlos commented on GitHub (May 9, 2024):

On Macos cargo also fails (lib adwaita installed via brew):

 cargo install lan-mouse
error: process didn't exit successfully: `rustc -vV` (signal: 6, SIGABRT: process abort signal)
--- stderr
dyld[27552]: Symbol not found: __ZN4llvm10PGOOptionsC1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_S7_S7_NS_18IntrusiveRefCntPtrINS_3vfs10FileSystemEEENS0_9PGOActionENS0_11CSPGOActionEbb
  Referenced from: <5090B140-04BE-3D13-8DD7-B41507163A1B> /usr/local/Cellar/rust/1.77.1/lib/librustc_driver-bd4d02add2e4c5d3.dylib
  Expected in:     <83624E46-48B6-3467-AE49-9DBD1E457F64> /usr/local/Cellar/llvm/18.1.4/lib/libLLVM.dylib

<!-- gh-comment-id:2102542846 --> @joaomcarlos commented on GitHub (May 9, 2024): On Macos cargo also fails (lib adwaita installed via brew): ``` cargo install lan-mouse error: process didn't exit successfully: `rustc -vV` (signal: 6, SIGABRT: process abort signal) --- stderr dyld[27552]: Symbol not found: __ZN4llvm10PGOOptionsC1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_S7_S7_NS_18IntrusiveRefCntPtrINS_3vfs10FileSystemEEENS0_9PGOActionENS0_11CSPGOActionEbb Referenced from: <5090B140-04BE-3D13-8DD7-B41507163A1B> /usr/local/Cellar/rust/1.77.1/lib/librustc_driver-bd4d02add2e4c5d3.dylib Expected in: <83624E46-48B6-3467-AE49-9DBD1E457F64> /usr/local/Cellar/llvm/18.1.4/lib/libLLVM.dylib ```
Author
Owner

@feschber commented on GitHub (May 9, 2024):

On Macos cargo also fails (lib adwaita installed via brew):

 cargo install lan-mouse
error: process didn't exit successfully: `rustc -vV` (signal: 6, SIGABRT: process abort signal)
--- stderr
dyld[27552]: Symbol not found: __ZN4llvm10PGOOptionsC1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_S7_S7_NS_18IntrusiveRefCntPtrINS_3vfs10FileSystemEEENS0_9PGOActionENS0_11CSPGOActionEbb
  Referenced from: <5090B140-04BE-3D13-8DD7-B41507163A1B> /usr/local/Cellar/rust/1.77.1/lib/librustc_driver-bd4d02add2e4c5d3.dylib
  Expected in:     <83624E46-48B6-3467-AE49-9DBD1E457F64> /usr/local/Cellar/llvm/18.1.4/lib/libLLVM.dylib

This seems like an issue with your rust setup. Could you try updating / reinstalling rust and llvm?

<!-- gh-comment-id:2102568239 --> @feschber commented on GitHub (May 9, 2024): > On Macos cargo also fails (lib adwaita installed via brew): > > ``` > cargo install lan-mouse > error: process didn't exit successfully: `rustc -vV` (signal: 6, SIGABRT: process abort signal) > --- stderr > dyld[27552]: Symbol not found: __ZN4llvm10PGOOptionsC1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES7_S7_S7_NS_18IntrusiveRefCntPtrINS_3vfs10FileSystemEEENS0_9PGOActionENS0_11CSPGOActionEbb > Referenced from: <5090B140-04BE-3D13-8DD7-B41507163A1B> /usr/local/Cellar/rust/1.77.1/lib/librustc_driver-bd4d02add2e4c5d3.dylib > Expected in: <83624E46-48B6-3467-AE49-9DBD1E457F64> /usr/local/Cellar/llvm/18.1.4/lib/libLLVM.dylib > > ``` This seems like an issue with your rust setup. Could you try updating / reinstalling rust and llvm?
Author
Owner

@feschber commented on GitHub (Jun 4, 2024):

@joaomcarlos I just tested it again on a fresh VM and it works for me.
LLVM is version 14.0.3 and rust 1.78.

You appear to have llvm 18.1.4 locally installed which might be the cause but I can not say for sure.

<!-- gh-comment-id:2148196038 --> @feschber commented on GitHub (Jun 4, 2024): @joaomcarlos I just tested it again on a fresh VM and it works for me. LLVM is version 14.0.3 and rust 1.78. You appear to have llvm 18.1.4 locally installed which might be the cause but I can not say for sure.
Author
Owner

@feschber commented on GitHub (Feb 7, 2026):

I will close this, as there is now an official app bundle.

<!-- gh-comment-id:3864381629 --> @feschber commented on GitHub (Feb 7, 2026): I will close this, as there is now an official app bundle.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#51
No description provided.