Build error in macOS Intel chip #2126

Closed
opened 2026-02-21 00:13:53 -05:00 by deekerman · 1 comment
Owner

Originally created by @chrisuhg on GitHub (Sep 14, 2023).

Bug Description

   ### build normally before here ###

   Compiling whoami v1.4.0
   Compiling bzip2 v0.4.4
   Compiling webm v1.0.2
   Compiling zstd v0.12.3+zstd.1.5.2
   Compiling zstd v0.11.2+zstd.1.5.2
   Compiling zip v0.6.5
   Compiling rustdesk v1.2.3 (/home/user/rustdesk)
   Compiling git2 v0.16.1
   Compiling shadow-rs v0.21.0
   Compiling keepawake v0.4.3 (https://github.com/rustdesk-org/keepawake-rs#ac395ef8)
warning: unused import: `crate::client::translate`
 --> src/core_main.rs:2:5
  |
2 | use crate::client::translate;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

warning: unused import: `ipc::Data`
 --> src/tray.rs:1:32
  |
1 | use crate::{client::translate, ipc::Data};
  |                                ^^^^^^^^^

warning: unused import: `tokio`
 --> src/tray.rs:2:34
  |
2 | use hbb_common::{allow_err, log, tokio};
  |                                  ^^^^^

warning: unused import: `time::Duration`
 --> src/tray.rs:5:5
  |
5 |     time::Duration,
  |     ^^^^^^^^^^^^^^

warning: unused variable: `conn`
   --> src/server/input_service.rs:711:18
    |
711 | fn active_mouse_(conn: i32) -> bool {
    |                  ^^^^ help: if this is intentional, prefix it with an underscore: `_conn`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `tray_icon`
  --> src/tray.rs:75:9
   |
75 |     let tray_icon = Arc::new(Mutex::new(tray_icon));
   |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tray_icon`

warning: fields `x` and `y` are never read
  --> src/server/input_service.rs:79:5
   |
76 | struct Input {
   |        ----- fields in this struct
...
79 |     x: i32,
   |     ^
80 |     y: i32,
   |     ^
   |
   = note: `Input` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

warning: constant `MOUSE_ACTIVE_DISTANCE` is never used
   --> src/server/input_service.rs:346:7
    |
346 | const MOUSE_ACTIVE_DISTANCE: i32 = 5;
    |       ^^^^^^^^^^^^^^^^^^^^^

warning: function `get_last_input_cursor_pos` is never used
   --> src/server/input_service.rs:705:4
    |
705 | fn get_last_input_cursor_pos() -> (i32, i32) {
    |    ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: method `is_authorized` is never used
   --> src/ui_cm_interface.rs:167:8
    |
120 | impl<T: InvokeUiCM> ConnectionManager<T> {
    | ---------------------------------------- method in this implementation
...
167 |     fn is_authorized(&self, id: i32) -> bool {
    |        ^^^^^^^^^^^^^

warning: `rustdesk` (lib) generated 10 warnings (run `cargo fix --lib -p rustdesk` to apply 6 suggestions)
    Finished dev [unoptimized + debuginfo] target(s) in 23m 58s
➜  rustdesk git:(master) 

How to Reproduce

Build 2 times got the same issue.

Expected Behavior

Build everything

Operating system(s) on local side and remote side

iMac (Retina 5K, 27-inch, 2020) | macOS bigsur 11.7.8

RustDesk Version(s) on local side and remote side

building the lastest version

Screenshots

image

Additional Context

No response

Originally created by @chrisuhg on GitHub (Sep 14, 2023). ### Bug Description ``` ### build normally before here ### Compiling whoami v1.4.0 Compiling bzip2 v0.4.4 Compiling webm v1.0.2 Compiling zstd v0.12.3+zstd.1.5.2 Compiling zstd v0.11.2+zstd.1.5.2 Compiling zip v0.6.5 Compiling rustdesk v1.2.3 (/home/user/rustdesk) Compiling git2 v0.16.1 Compiling shadow-rs v0.21.0 Compiling keepawake v0.4.3 (https://github.com/rustdesk-org/keepawake-rs#ac395ef8) warning: unused import: `crate::client::translate` --> src/core_main.rs:2:5 | 2 | use crate::client::translate; | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: unused import: `ipc::Data` --> src/tray.rs:1:32 | 1 | use crate::{client::translate, ipc::Data}; | ^^^^^^^^^ warning: unused import: `tokio` --> src/tray.rs:2:34 | 2 | use hbb_common::{allow_err, log, tokio}; | ^^^^^ warning: unused import: `time::Duration` --> src/tray.rs:5:5 | 5 | time::Duration, | ^^^^^^^^^^^^^^ warning: unused variable: `conn` --> src/server/input_service.rs:711:18 | 711 | fn active_mouse_(conn: i32) -> bool { | ^^^^ help: if this is intentional, prefix it with an underscore: `_conn` | = note: `#[warn(unused_variables)]` on by default warning: unused variable: `tray_icon` --> src/tray.rs:75:9 | 75 | let tray_icon = Arc::new(Mutex::new(tray_icon)); | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tray_icon` warning: fields `x` and `y` are never read --> src/server/input_service.rs:79:5 | 76 | struct Input { | ----- fields in this struct ... 79 | x: i32, | ^ 80 | y: i32, | ^ | = note: `Input` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default warning: constant `MOUSE_ACTIVE_DISTANCE` is never used --> src/server/input_service.rs:346:7 | 346 | const MOUSE_ACTIVE_DISTANCE: i32 = 5; | ^^^^^^^^^^^^^^^^^^^^^ warning: function `get_last_input_cursor_pos` is never used --> src/server/input_service.rs:705:4 | 705 | fn get_last_input_cursor_pos() -> (i32, i32) { | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: method `is_authorized` is never used --> src/ui_cm_interface.rs:167:8 | 120 | impl<T: InvokeUiCM> ConnectionManager<T> { | ---------------------------------------- method in this implementation ... 167 | fn is_authorized(&self, id: i32) -> bool { | ^^^^^^^^^^^^^ warning: `rustdesk` (lib) generated 10 warnings (run `cargo fix --lib -p rustdesk` to apply 6 suggestions) Finished dev [unoptimized + debuginfo] target(s) in 23m 58s ➜ rustdesk git:(master) ``` ### How to Reproduce Build 2 times got the same issue. ### Expected Behavior Build everything ### Operating system(s) on local side and remote side iMac (Retina 5K, 27-inch, 2020) | macOS bigsur 11.7.8 ### RustDesk Version(s) on local side and remote side building the lastest version ### Screenshots ![image](https://github.com/rustdesk/rustdesk/assets/34882677/8b956804-1272-4e90-a4f5-dfe3ac61a8b1) ### Additional Context _No response_
deekerman 2026-02-21 00:13:53 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Sep 14, 2023):

#763

@rustdesk commented on GitHub (Sep 14, 2023): #763
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
starred/rustdesk-rustdesk#2126
No description provided.