WilliamVenner / gmpublisher

⚙️ Workshop Publishing Utility for Garry's Mod, written in Rust & Svelte and powered by Tauri
GNU General Public License v3.0
848 stars 70 forks source link

Failing cargo dev buid #103

Open REALalphas opened 2 years ago

REALalphas commented 2 years ago
╭─ ~/Downloads/gmpublisher-2.9.0 ▓▒░                                                                                                                       ░▒▓ 101 ✘  took 14s  at 17:36:52 
╰─ cargo run --manifest-path src-tauri/Cargo.toml -- bundle
   Compiling steamworks-sys v0.7.0 (https://github.com/WilliamVenner/steamworks-rs?branch=personal-2#d0cb4913)
   Compiling zbus_names v2.2.0
   Compiling gio v0.9.1
   Compiling pango v0.9.1
   Compiling cairo-rs v0.9.1
   Compiling javascriptcore-rs v0.10.0
   Compiling gdk-pixbuf-sys v0.15.10
   Compiling atk v0.9.0
   Compiling gio v0.15.12
   Compiling cairo-rs v0.15.12
   Compiling pango v0.15.10
   Compiling hyper-tls v0.5.0
   Compiling atk v0.15.1
   Compiling webkit2gtk-sys v0.13.0
   Compiling gtk-source-sys v0.10.0
   Compiling tauri-codegen v1.0.0-beta-rc.1 (https://github.com/williamvenner/tauri?branch=personal#74ae13ba)
   Compiling rfd v0.3.0
   Compiling gdk-sys v0.15.1
   Compiling gmpublisher v2.9.0 (/home/alphas/Downloads/gmpublisher-2.9.0/src-tauri)
   Compiling reqwest v0.11.11
   Compiling zbus v2.3.2
   Compiling gtk-sys v0.15.3
   Compiling gdkx11-sys v0.15.1
   Compiling steamworks v0.7.0 (https://github.com/WilliamVenner/steamworks-rs?branch=personal-2#d0cb4913)
   Compiling tauri-macros v1.0.0-beta-rc.1 (https://github.com/williamvenner/tauri?branch=personal#74ae13ba)
error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_SteamGameServer_v013` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/server.rs:79:35
      |
79    |             let server_raw = sys::SteamAPI_SteamGameServer_v013();
      |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_SteamGameServer_v014`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:30155:5
      |
30155 |     pub fn SteamAPI_SteamGameServer_v014() -> *mut ISteamGameServer;
      |     ---------------------------------------------------------------- similarly named function `SteamAPI_SteamGameServer_v014` defined here

error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_ISteamGameServer_EnableHeartbeats` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/server.rs:229:18
      |
229   |             sys::SteamAPI_ISteamGameServer_EnableHeartbeats(self.server, active);
      |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_ISteamGameServer_GetGameplayStats`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:30324:5
      |
30324 |     pub fn SteamAPI_ISteamGameServer_GetGameplayStats(self_: *mut ISteamGameServer);
      |     -------------------------------------------------------------------------------- similarly named function `SteamAPI_ISteamGameServer_GetGameplayStats` defined here

error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_SteamGameServerUGC_v015` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/server.rs:273:28
      |
273   |             let ugc = sys::SteamAPI_SteamGameServerUGC_v015();
      |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_SteamGameServerUGC_v016`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:28153:5
      |
28153 |     pub fn SteamAPI_SteamGameServerUGC_v016() -> *mut ISteamUGC;
      |     ------------------------------------------------------------ similarly named function `SteamAPI_SteamGameServerUGC_v016` defined here

error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_SteamUGC_v015` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/ugc.rs:849:36
      |
849   |                     let ugc = sys::SteamAPI_SteamUGC_v015();
      |                                    ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_SteamUser_v021`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:24560:5
      |
24560 |     pub fn SteamAPI_SteamUser_v021() -> *mut ISteamUser;
      |     ---------------------------------------------------- similarly named function `SteamAPI_SteamUser_v021` defined here

error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_SteamUGC_v015` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/ugc.rs:1009:36
      |
1009  |                     let ugc = sys::SteamAPI_SteamUGC_v015();
      |                                    ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_SteamUser_v021`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:24560:5
      |
24560 |     pub fn SteamAPI_SteamUser_v021() -> *mut ISteamUser;
      |     ---------------------------------------------------- similarly named function `SteamAPI_SteamUser_v021` defined here

error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_SteamUGC_v015` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/ugc.rs:1138:36
      |
1138  |                     let ugc = sys::SteamAPI_SteamUGC_v015();
      |                                    ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_SteamUser_v021`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:24560:5
      |
24560 |     pub fn SteamAPI_SteamUser_v021() -> *mut ISteamUser;
      |     ---------------------------------------------------- similarly named function `SteamAPI_SteamUser_v021` defined here

error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_SteamRemoteStorage_v014` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/lib.rs:315:27
      |
315   |             let rs = sys::SteamAPI_SteamRemoteStorage_v014();
      |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_SteamRemoteStorage_v016`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:26099:5
      |
26099 |     pub fn SteamAPI_SteamRemoteStorage_v016() -> *mut ISteamRemoteStorage;
      |     ---------------------------------------------------------------------- similarly named function `SteamAPI_SteamRemoteStorage_v016` defined here

error[E0425]: cannot find function, tuple struct or tuple variant `SteamAPI_SteamUGC_v015` in crate `sys`
     --> /home/alphas/.cargo/git/checkouts/steamworks-rs-6399f522f9806021/d0cb491/src/lib.rs:330:28
      |
330   |             let ugc = sys::SteamAPI_SteamUGC_v015();
      |                            ^^^^^^^^^^^^^^^^^^^^^^ help: a function with a similar name exists: `SteamAPI_SteamUser_v021`
      |
     ::: /home/alphas/Downloads/gmpublisher-2.9.0/src-tauri/target/debug/build/steamworks-sys-b1bf01b7a7e9dd94/out/bindings.rs:24560:5
      |
24560 |     pub fn SteamAPI_SteamUser_v021() -> *mut ISteamUser;
      |     ---------------------------------------------------- similarly named function `SteamAPI_SteamUser_v021` defined here

For more information about this error, try `rustc --explain E0425`.
error: could not compile `steamworks` due to 8 previous errors
warning: build failed, waiting for other jobs to finish...
Alib234 commented 2 years ago

having basically the same problem trying to build gmpublisher on Arch Linux

and as far as I understand, this problem occurs because Cargo.toml has a line that retrieves some old version of steamworks-rs which is incompatible with the current steamworks sdk

so the fix is either wait for someone that knows what they're doing to fix it, or somehow retrieve that one specific steamworks sdk version gmpublisher wants

Xalalau commented 1 year ago

I compiled gmpublisher on Pop OS: https://github.com/WilliamVenner/gmpublisher/discussions/178

To fix your issue download and extract Steam SDK 151 and point your installation to it like I did.