Docker build error #1306

Closed
opened 2026-02-20 23:23:24 -05:00 by deekerman · 3 comments
Owner

Originally created by @jjgalvez on GitHub (Jan 30, 2023).

Describe the bug you encountered:
Since the Arch AUR PGKBUILD file no longer works I wanted to build using the docker instructions. build the rustdesk-builder container as per instuctions and started the build as per instructions and I get the following error:

   Compiling rustdesk v1.2.0 (/home/user/rustdesk)
error[E0583]: file not found for module `version`
  --> src/lib.rs:25:1
   |
25 | mod version;
   | ^^^^^^^^^^^^
   |
   = help: to create the module `version`, create file "src/version.rs" or "src/version/mod.rs"

error[E0432]: unresolved import `crate::VERSION`
  --> src/server/connection.rs:11:18
   |
11 | use crate::{ipc, VERSION};
   |                  ^^^^^^^
   |                  |
   |                  no `VERSION` in the root
   |                  help: a similar name exists in the module: `version`

error[E0425]: cannot find value `VERSION` in the crate root
    --> src/client.rs:1464:29
     |
1464 |             version: crate::VERSION.to_string(),
     |                             ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
   --> src/rendezvous_mediator.rs:307:29
    |
307 |             version: crate::VERSION.to_owned(),
    |                             ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
   --> src/rendezvous_mediator.rs:357:29
    |
357 |             version: crate::VERSION.to_owned(),
    |                             ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
   --> src/rendezvous_mediator.rs:401:29
    |
401 |             version: crate::VERSION.to_owned(),
    |                             ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
   --> src/common.rs:523:21
    |
523 |         url: crate::VERSION.to_owned(),
    |                     ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
   --> src/common.rs:532:77
    |
532 |                 if get_version_number(&version) > get_version_number(crate::VERSION) {
    |                                                                             ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
  --> src/core_main.rs:65:31
   |
65 |         println!("{}", crate::VERSION);
   |                               ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
   --> src/ui_interface.rs:637:12
    |
637 |     crate::VERSION.to_owned()
    |            ^^^^^^^ not found in the crate root

error[E0425]: cannot find value `VERSION` in the crate root
  --> src/hbbs_http/sync.rs:57:80
   |
57 |                         v["ver"] = json!(hbb_common::get_version_number(crate::VERSION));
   |                                                                                ^^^^^^^ not found in the crate root

Some errors have detailed explanations: E0425, E0432, E0583.
For more information about an error, try `rustc --explain E0425`.
error: could not compile `rustdesk` due to 11 previous errors

...

What did you expect to happen instead?
rustdesk to compile
...

How did you install RustDesk?

see above

RustDesk version and environment

docker

Originally created by @jjgalvez on GitHub (Jan 30, 2023). <!-- Hey there, thank you for creating an issue! --> **Describe the bug you encountered:** Since the Arch AUR PGKBUILD file no longer works I wanted to build using the docker instructions. build the rustdesk-builder container as per instuctions and started the build as per instructions and I get the following error: ``` Compiling rustdesk v1.2.0 (/home/user/rustdesk) error[E0583]: file not found for module `version` --> src/lib.rs:25:1 | 25 | mod version; | ^^^^^^^^^^^^ | = help: to create the module `version`, create file "src/version.rs" or "src/version/mod.rs" error[E0432]: unresolved import `crate::VERSION` --> src/server/connection.rs:11:18 | 11 | use crate::{ipc, VERSION}; | ^^^^^^^ | | | no `VERSION` in the root | help: a similar name exists in the module: `version` error[E0425]: cannot find value `VERSION` in the crate root --> src/client.rs:1464:29 | 1464 | version: crate::VERSION.to_string(), | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/rendezvous_mediator.rs:307:29 | 307 | version: crate::VERSION.to_owned(), | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/rendezvous_mediator.rs:357:29 | 357 | version: crate::VERSION.to_owned(), | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/rendezvous_mediator.rs:401:29 | 401 | version: crate::VERSION.to_owned(), | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/common.rs:523:21 | 523 | url: crate::VERSION.to_owned(), | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/common.rs:532:77 | 532 | if get_version_number(&version) > get_version_number(crate::VERSION) { | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/core_main.rs:65:31 | 65 | println!("{}", crate::VERSION); | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/ui_interface.rs:637:12 | 637 | crate::VERSION.to_owned() | ^^^^^^^ not found in the crate root error[E0425]: cannot find value `VERSION` in the crate root --> src/hbbs_http/sync.rs:57:80 | 57 | v["ver"] = json!(hbb_common::get_version_number(crate::VERSION)); | ^^^^^^^ not found in the crate root Some errors have detailed explanations: E0425, E0432, E0583. For more information about an error, try `rustc --explain E0425`. error: could not compile `rustdesk` due to 11 previous errors ``` ... **What did you expect to happen instead?** rustdesk to compile ... **How did you install `RustDesk`?** <!-- GitHub release, build from source, Windows portable version, etc. --> see above --- **RustDesk version and environment** <!-- In order to reproduce your issue, please add some information about the environment in which you're running RustDesk. --> docker
deekerman 2026-02-20 23:23:24 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@simonspa commented on GitHub (Jan 30, 2023):

Add --release to the end of the build command. It's actually described in the README right below the command itself but the formulation isn't entirely clear and could get some love... :)

@simonspa commented on GitHub (Jan 30, 2023): Add `--release` to the end of the build command. It's actually described in the README right below the command itself but the formulation isn't entirely clear and could get some love... :)
Author
Owner

@jjgalvez commented on GitHub (Jan 30, 2023):

@simonspa thanks for the reply. I started from scratch, removing the repo and the previous docker

container. Running the first set of instructions just to create the docker container I am now getting this error:
STEP 5/17: RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics
Downloading cmake...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 41.5M  100 41.5M    0     0  35.9M      0  0:00:01  0:00:01 --:--:-- 66.7M
Downloading cmake... done.
Extracting cmake...
Extracting cmake... done.
Downloading ninja...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  100k  100  100k    0     0   310k      0 --:--:-- --:--:-- --:--:--  310k
Downloading ninja... done.
Extracting ninja...
Extracting ninja... done.
Downloading vcpkg tool sources
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  501k    0  501k    0     0  1091k      0 --:--:-- --:--:-- --:--:-- 1091k

File does not have expected hash:
              url: [ https://github.com/microsoft/vcpkg-tool/archive/2021-07-21.tar.gz ]
        File path: [ /vcpkg/downloads/2021-07-21.tar.gz ]
    Expected hash: [ 9d1644c1c34bfd750cad36c47d7997698b0c5c4ff0673f9f39ff5f62f6e351ca32db7991043e7f154aa8ffe8b5180591d78131edf5dc533164d75a60764a8da8 ]
      Actual hash: [ 0c6f2a84c8f1c90ed01f244f68dd64dccffb141cd63f931234d9961f06b96e9035b5fa60aea9c14f22ebcca7893e2ebdf7e1fdbd2fb767223b9fb54f5ced2e1f ]
Error: building at STEP "RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics": while running runtime: exit status 1
@jjgalvez commented on GitHub (Jan 30, 2023): @simonspa thanks for the reply. I started from scratch, removing the repo and the previous docker ``` container. Running the first set of instructions just to create the docker container I am now getting this error: STEP 5/17: RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics Downloading cmake... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 41.5M 100 41.5M 0 0 35.9M 0 0:00:01 0:00:01 --:--:-- 66.7M Downloading cmake... done. Extracting cmake... Extracting cmake... done. Downloading ninja... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 100k 100 100k 0 0 310k 0 --:--:-- --:--:-- --:--:-- 310k Downloading ninja... done. Extracting ninja... Extracting ninja... done. Downloading vcpkg tool sources % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 501k 0 501k 0 0 1091k 0 --:--:-- --:--:-- --:--:-- 1091k File does not have expected hash: url: [ https://github.com/microsoft/vcpkg-tool/archive/2021-07-21.tar.gz ] File path: [ /vcpkg/downloads/2021-07-21.tar.gz ] Expected hash: [ 9d1644c1c34bfd750cad36c47d7997698b0c5c4ff0673f9f39ff5f62f6e351ca32db7991043e7f154aa8ffe8b5180591d78131edf5dc533164d75a60764a8da8 ] Actual hash: [ 0c6f2a84c8f1c90ed01f244f68dd64dccffb141cd63f931234d9961f06b96e9035b5fa60aea9c14f22ebcca7893e2ebdf7e1fdbd2fb767223b9fb54f5ced2e1f ] Error: building at STEP "RUN /vcpkg/bootstrap-vcpkg.sh -disableMetrics": while running runtime: exit status 1 ```
Author
Owner

@rustdesk commented on GitHub (Jan 30, 2023):

#763

@rustdesk commented on GitHub (Jan 30, 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#1306
No description provided.