Problems generating windows client with icons #138

Open
opened 2025-10-02 21:50:39 +08:00 by eduardoyet · 0 comments
eduardoyet commented 2025-10-02 21:50:39 +08:00 (Migrated from github.com)

Hi!!!

I can compile the customize executable of rustdesk without icons. But when i attached my custom icons, the compilation has errors:

Compiling sciter-rs v0.5.57 (https://github.com/rustdesk-org/rust-sciter?branch=dyn#5322f3a7)
warning: unknown lint: static_mut_refs
--> libs\hbb_common\src\fingerprint.rs:251:17
|
251 | #[allow(static_mut_refs)]
| ^^^^^^^^^^^^^^^
|
= note: #[warn(unknown_lints)] on by default

warning: unknown lint: static_mut_refs
--> libs\hbb_common\src\fingerprint.rs:283:17
|
283 | #[allow(static_mut_refs)]
| ^^^^^^^^^^^^^^^

Compiling remote_printer v0.1.0 (D:\a\rdgen\rdgen\libs\remote_printer)
warning: unused import: self::vp9e_temporal_layering_mode as VP9E_TEMPORAL_LAYERING_MODE
--> D:\a\rdgen\rdgen\target\release\build\scrap-a0e58b3985c40f7b\out/vpx_ffi.rs:911:9
|
911 | pub use self::vp9e_temporal_layering_mode as VP9E_TEMPORAL_LAYERING_MODE;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

Compiling virtual_display v0.1.0 (D:\a\rdgen\rdgen\libs\virtual_display)
warning: hbb_common (lib) generated 2 warnings (2 duplicates)
Compiling rustdesk v1.4.2 (D:\a\rdgen\rdgen)
warning: scrap (lib) generated 1 warning (run cargo fix --lib -p scrap to apply 1 suggestion)
warning: hbb_common (lib) generated 2 warnings
error: couldn't read src../res/tray-icon.ico: The system cannot find the file specified. (os error 2)
--> src\tray.rs:46:16
|
46 | icon = include_bytes!("../res/tray-icon.ico");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro include_bytes (in Nightly builds, run with -Z macro-backtrace for more info)

warning: the item System is imported redundantly
--> src\platform\windows.rs:3106:9
|
17 | sysinfo::{Pid, System},
| ------ the item System is already imported here
...
3106 | use hbb_common::sysinfo::System;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: the item ToSocketAddrs is imported redundantly
--> src\common.rs:1780:9
|
4 | net::{SocketAddr, ToSocketAddrs},
| ------------- the item ToSocketAddrs is already imported here
...
1780 | use std::net::ToSocketAddrs;
| ^^^^^^^^^^^^^^^^^^^^^^^

warning: the item ToSocketAddrs is imported redundantly
--> src\common.rs:1804:9
|
4 | net::{SocketAddr, ToSocketAddrs},
| ------------- the item ToSocketAddrs is already imported here
...
1804 | use std::net::ToSocketAddrs;
| ^^^^^^^^^^^^^^^^^^^^^^^

warning: unused imports: MOUSE_BUTTON_LEFT, MOUSE_TYPE_DOWN, MOUSE_TYPE_UP, MOUSE_TYPE_WHEEL
--> src\ui_session_interface.rs:3:13
|
3 | input::{MOUSE_BUTTON_LEFT, MOUSE_TYPE_DOWN, MOUSE_TYPE_UP, MOUSE_TYPE_WHEEL},
| ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^

warning: use of deprecated function hbb_common::base64::encode: Use Engine::encode
--> src\hbbs_http\sync.rs:163:52
|
163 | hash = hbb_common::base64::encode(&res[..]);
| ^^^^^^
|
= note: #[warn(deprecated)] on by default

warning: rustdesk (lib) generated 5 warnings
error: could not compile rustdesk (lib) due to previous error; 5 warnings emitted
Error occurred when executing: cargo build --features hwcodec,vram,flutter --lib --release. Exiting.
features: ['hwcodec', 'vram', 'flutter']
False
Move-Item: D:\a_temp\81e859e4-f22c-4693-ad5b-119c13c40f31.ps1:4
Line |
4 | mv ./flutter/build/windows/x64/runner/Release ./rustdesk
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot find path 'D:\a\rdgen\rdgen\flutter\build\windows\x64\runner\Release' because it does not exist.
Error: Process completed with exit code 1.

Any idea???

Thank you very much!!!!

Hi!!! I can compile the customize executable of rustdesk without icons. But when i attached my custom icons, the compilation has errors: Compiling sciter-rs v0.5.57 (https://github.com/rustdesk-org/rust-sciter?branch=dyn#5322f3a7) warning: unknown lint: `static_mut_refs` --> libs\hbb_common\src\fingerprint.rs:251:17 | 251 | #[allow(static_mut_refs)] | ^^^^^^^^^^^^^^^ | = note: `#[warn(unknown_lints)]` on by default warning: unknown lint: `static_mut_refs` --> libs\hbb_common\src\fingerprint.rs:283:17 | 283 | #[allow(static_mut_refs)] | ^^^^^^^^^^^^^^^ Compiling remote_printer v0.1.0 (D:\a\rdgen\rdgen\libs\remote_printer) warning: unused import: `self::vp9e_temporal_layering_mode as VP9E_TEMPORAL_LAYERING_MODE` --> D:\a\rdgen\rdgen\target\release\build\scrap-a0e58b3985c40f7b\out/vpx_ffi.rs:911:9 | 911 | pub use self::vp9e_temporal_layering_mode as VP9E_TEMPORAL_LAYERING_MODE; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default Compiling virtual_display v0.1.0 (D:\a\rdgen\rdgen\libs\virtual_display) warning: `hbb_common` (lib) generated 2 warnings (2 duplicates) Compiling rustdesk v1.4.2 (D:\a\rdgen\rdgen) warning: `scrap` (lib) generated 1 warning (run `cargo fix --lib -p scrap` to apply 1 suggestion) warning: `hbb_common` (lib) generated 2 warnings error: couldn't read src\../res/tray-icon.ico: The system cannot find the file specified. (os error 2) --> src\tray.rs:46:16 | 46 | icon = include_bytes!("../res/tray-icon.ico"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) warning: the item `System` is imported redundantly --> src\platform\windows.rs:3106:9 | 17 | sysinfo::{Pid, System}, | ------ the item `System` is already imported here ... 3106 | use hbb_common::sysinfo::System; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default warning: the item `ToSocketAddrs` is imported redundantly --> src\common.rs:1780:9 | 4 | net::{SocketAddr, ToSocketAddrs}, | ------------- the item `ToSocketAddrs` is already imported here ... 1780 | use std::net::ToSocketAddrs; | ^^^^^^^^^^^^^^^^^^^^^^^ warning: the item `ToSocketAddrs` is imported redundantly --> src\common.rs:1804:9 | 4 | net::{SocketAddr, ToSocketAddrs}, | ------------- the item `ToSocketAddrs` is already imported here ... 1804 | use std::net::ToSocketAddrs; | ^^^^^^^^^^^^^^^^^^^^^^^ warning: unused imports: `MOUSE_BUTTON_LEFT`, `MOUSE_TYPE_DOWN`, `MOUSE_TYPE_UP`, `MOUSE_TYPE_WHEEL` --> src\ui_session_interface.rs:3:13 | 3 | input::{MOUSE_BUTTON_LEFT, MOUSE_TYPE_DOWN, MOUSE_TYPE_UP, MOUSE_TYPE_WHEEL}, | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ warning: use of deprecated function `hbb_common::base64::encode`: Use Engine::encode --> src\hbbs_http\sync.rs:163:52 | 163 | hash = hbb_common::base64::encode(&res[..]); | ^^^^^^ | = note: `#[warn(deprecated)]` on by default warning: `rustdesk` (lib) generated 5 warnings error: could not compile `rustdesk` (lib) due to previous error; 5 warnings emitted Error occurred when executing: `cargo build --features hwcodec,vram,flutter --lib --release`. Exiting. features: ['hwcodec', 'vram', 'flutter'] False Move-Item: D:\a\_temp\81e859e4-f22c-4693-ad5b-119c13c40f31.ps1:4 Line | 4 | mv ./flutter/build/windows/x64/runner/Release ./rustdesk | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot find path 'D:\a\rdgen\rdgen\flutter\build\windows\x64\runner\Release' because it does not exist. Error: Process completed with exit code 1. Any idea??? Thank you very much!!!!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#138