Build chirpstack(make debug-amd64) error

this is error msg

[nix-shell:~/chirpstack-master/chirpstack]$ make debug-amd64
cross build --target x86_64-unknown-linux-musl
[+] Building 3.7s (6/6) FINISHED                                                                                                                                                                                  
 => [internal] load .dockerignore                                                                                                                                                                            0.0s
 => => transferring context: 148B                                                                                                                                                                            0.0s
 => [internal] load build definition from Dockerfile.x86_64-unknown-linux-musl                                                                                                                               0.0s
 => => transferring dockerfile: 224B                                                                                                                                                                         0.0s
 => [internal] load metadata for ghcr.io/cross-rs/x86_64-unknown-linux-musl:latest                                                                                                                           3.5s
 => [1/2] FROM ghcr.io/cross-rs/x86_64-unknown-linux-musl:latest@sha256:77db671d8356a64ae72a3e1415e63f547f26d374fbe3c4762c1cd36c7eac7b99                                                                     0.0s
 => CACHED [2/2] RUN apt-get update &&     apt-get --assume-yes install     protobuf-compiler     libprotobuf-dev                                                                                            0.0s
 => exporting to image                                                                                                                                                                                       0.0s
 => => exporting layers                                                                                                                                                                                      0.0s
 => => writing image sha256:48662e12cc0f3759dfd07b419ae4aabf544f4b405b4fb20513fa1a48dd2a60bb                                                                                                                 0.0s
 => => naming to docker.io/library/cross-custom-chirpstack-master:x86_64-unknown-linux-musl-1fb72                                                                                                            0.0s
   Compiling chirpstack v4.7.0-test.3 (/project/chirpstack)
error: #[derive(RustEmbed)] folder '/project/chirpstack/../ui/build' does not exist. cwd: '/project'
  --> chirpstack/src/api/mod.rs:95:1
   |
95 | / #[folder = "../ui/build"]
96 | | struct Asset;
   | |_____________^

error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope
   --> chirpstack/src/api/mod.rs:287:24
    |
96  | struct Asset;
    | ------------ function or associated item `get` not found for this struct
...
287 |     let asset = Asset::get(path).ok_or_else(warp::reject::not_found)?;
    |                        ^^^ function or associated item not found in `Asset`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `get`, perhaps you need to implement one of them:
            candidate #1: `SliceIndex`
            candidate #2: `diesel::row::Row`
            candidate #3: `NamedRow`
            candidate #4: `toml_edit::table::TableLike`
            candidate #5: `MulticastGroupService`
            candidate #6: `GatewayService`
            candidate #7: `DeviceService`
            candidate #8: `DeviceProfileTemplateService`
            candidate #9: `DeviceProfileService`
            candidate #10: `ApplicationService`
            candidate #11: `TenantService`
            candidate #12: `UserService`
            candidate #13: `tonic::metadata::map::as_metadata_key::Sealed`
            candidate #14: `prometheus_client::metrics::counter::Atomic`
            candidate #15: `prometheus_client::metrics::gauge::Atomic`
            candidate #16: `RustEmbed`
            candidate #17: `StoresServerSessions`
            candidate #18: `redis::Commands`
            candidate #19: `AsyncCommands`
            candidate #20: `crc16::CrcType`
            candidate #21: `rdkafka::message::Headers`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `chirpstack` (bin "chirpstack") due to 2 previous errors
make: *** [Makefile:6: debug-amd64] Error 101

[nix-shell:~/chirpstack-master/chirpstack]$ 

[nix-shell:~/chirpstack-master/chirpstack]$ ls
Cargo.toml  Makefile  configuration  debian  diesel.toml  migrations  rpm  src

[nix-shell:~/chirpstack-master/chirpstack]$ 

hey brocaar
have any idea about this error?

i checkout git tag V4.3.2 code
then compile this version ,because my team using this version for product
but i meet this error,it is so similarity error

   Compiling lrwn v4.3.2 (/chirpstack/lrwn)
   Compiling chirpstack v4.3.2 (/chirpstack/chirpstack)
error: proc-macro derive panicked
  --> chirpstack/src/api/mod.rs:90:10
   |
90 | #[derive(RustEmbed)]
   |          ^^^^^^^^^
   |
   = help: message: #[derive(RustEmbed)] folder '/chirpstack/chirpstack/../ui/build' does not exist. cwd: '/chirpstack'

error[E0599]: no function or associated item named `get` found for struct `Asset` in the current scope
   --> chirpstack/src/api/mod.rs:275:24
    |
92  | struct Asset;
    | ------------ function or associated item `get` not found for this struct
...
275 |     let asset = Asset::get(path).ok_or_else(warp::reject::not_found)?;
    |                        ^^^ function or associated item not found in `Asset`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `get`, perhaps you need to implement one of them:
            candidate #1: `SliceIndex`
            candidate #2: `Row`
            candidate #3: `NamedRow`
            candidate #4: `kv::source::Source`
            candidate #5: `MulticastGroupService`
            candidate #6: `GatewayService`
            candidate #7: `DeviceService`
            candidate #8: `DeviceProfileTemplateService`
            candidate #9: `DeviceProfileService`
            candidate #10: `ApplicationService`
            candidate #11: `TenantService`
            candidate #12: `UserService`
            candidate #13: `tonic::metadata::map::as_metadata_key::Sealed`
            candidate #14: `prometheus_client::metrics::counter::Atomic`
            candidate #15: `prometheus_client::metrics::gauge::Atomic`
            candidate #16: `RustEmbed`
            candidate #17: `rustls::client::client_conn::StoresClientSessions`
            candidate #18: `rustls::server::server_conn::StoresServerSessions`
            candidate #19: `redis::Commands`
            candidate #20: `rustls::server::server_conn::StoresServerSessions`
            candidate #21: `crc16::CrcType`
            candidate #22: `ClientPersistence`
            candidate #23: `rdkafka::message::Headers`
            candidate #24: `toml_edit::table::TableLike`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `chirpstack` (bin "chirpstack") due to 2 previous errors
make: *** [Makefile:8: debug-amd64] Error 101
root@ccf669184c75:/chirpstack/chirpstack# 

hi brocaar( B brother) ,help me
i need develop chirpstack ,wish your reply

i kown the reason ,
i need compile ui first

the latest version is compile success,
must be compile chirpstack-ui first
then compile chirpstack

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.