ALEZ-DEV / Babylonia-terminal

A launcher to play a certain anime game on linux
GNU General Public License v3.0
17 stars 1 forks source link

Error while installing on Steam Deck #1

Closed raizor154 closed 5 months ago

raizor154 commented 5 months ago

Hi, rust and base-devel are correctly installed on my Deck, but when I try to install the launcher it gives me this error log.txt

ALEZ-DEV commented 5 months ago

Hey, try installing musl-tools according to my research you need to install musl-tools to be able to compile, since your on steam-deck I'm assuming you need to run the following command to install this package :

pacman -S musl

I don't have a steam deck, so I can't confirm if this command will really fix your issue Try running the above command and try re-installing the launcher by doing :

cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin

I don't think this will resolve your issue so I will make further research

raizor154 commented 5 months ago

In fact that did not work log 2.txt

Ty for your patience

ALEZ-DEV commented 5 months ago

Did the pacman command run successfully ?

raizor154 commented 5 months ago

yes, ran it 2 times to be sure and it reinstalled it

ALEZ-DEV commented 5 months ago

Try uninstalling rust and then reinstall it via pacman :

rustup self uninstall
pacman -S rust

and then try reinstall the launcher :

cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin
raizor154 commented 5 months ago

still some errors, but different ones I think

deck@steamdeck ~)$ cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin
    Updating git repository `https://github.com/ALEZ-DEV/Babylonia-terminal`
  Installing babylonia-terminal-cli v0.1.0 (https://github.com/ALEZ-DEV/Babylonia-terminal#7c83f0db)
    Updating crates.io index
    Updating git repository `https://github.com/ALEZ-DEV/downloader`
  Downloaded autocfg v1.3.0
  Downloaded anyhow v1.0.86
  Downloaded arrayvec v0.7.4
  Downloaded rustls-pemfile v1.0.4
  Downloaded rust-embed-utils v8.4.0
  Downloaded chksum-md5 v0.0.0
  Downloaded cfg-if v1.0.0
  Downloaded chksum-core v0.0.0
  Downloaded chksum-hash-core v0.0.0
  Downloaded chksum-reader v0.0.0
  Downloaded equivalent v1.0.1
  Downloaded foreign-types v0.3.2
  Downloaded http-body v1.0.0
  Downloaded rust-embed-impl v8.4.0
  Downloaded num-conv v0.1.0
  Downloaded num_threads v0.1.7
  Downloaded option-ext v0.2.0
  Downloaded openssl-probe v0.1.5
  Downloaded openssl-macros v0.1.1
  Downloaded number_prefix v0.4.0
  Downloaded cpufeatures v0.2.12
  Downloaded tinyvec_macros v0.1.1
  Downloaded time-core v0.1.2
  Downloaded block-buffer v0.10.4
  Downloaded adler v1.0.2
  Downloaded atomic-waker v1.1.2
  Downloaded sync_wrapper v0.1.2
  Downloaded constant_time_eq v0.3.0
  Downloaded chksum-hash-md5 v0.0.0
  Downloaded arrayref v0.3.7
  Downloaded tower-layer v0.3.2
  Downloaded errno v0.3.9
  Downloaded deranged v0.3.11
  Downloaded crypto-common v0.1.6
  Downloaded digest v0.10.7
  Downloaded dirs-sys v0.4.1
  Downloaded try-lock v0.2.5
  Downloaded filetime v0.2.23
  Downloaded dotenv v0.15.0
  Downloaded futures-core v0.3.30
  Downloaded want v0.3.1
  Downloaded form_urlencoded v1.2.1
  Downloaded fnv v1.0.7
  Downloaded dirs v5.0.1
  Downloaded fastrand v2.1.0
  Downloaded generic-array v0.14.7
  Downloaded futures-sink v0.3.30
  Downloaded parking_lot_core v0.9.10
  Downloaded futures-macro v0.3.30
  Downloaded futures-executor v0.3.30
  Downloaded http-body v0.4.6
  Downloaded futures-task v0.3.30
  Downloaded tower-service v0.3.2
  Downloaded httpdate v1.0.3
  Downloaded hyper-tls v0.6.0
  Downloaded http-body-util v0.1.1
  Downloaded itoa v1.0.11
  Downloaded hyper-tls v0.5.0
  Downloaded serde_urlencoded v0.7.1
  Downloaded xattr v1.3.1
  Downloaded rand_chacha v0.3.1
  Downloaded lazy_static v1.4.0
  Downloaded lock_api v0.4.12
  Downloaded fs_extra v1.3.0
  Downloaded num_cpus v1.16.0
  Downloaded percent-encoding v2.3.1
  Downloaded addr2line v0.21.0
  Downloaded console v0.15.8
  Downloaded simple_logger v4.3.3
  Downloaded powerfmt v0.2.0
  Downloaded colored v2.1.0
  Downloaded crc32fast v1.4.2
  Downloaded cc v1.0.98
  Downloaded futures-channel v0.3.30
  Downloaded dialoguer v0.11.0
  Downloaded futures-io v0.3.30
  Downloaded thiserror v1.0.61
  Downloaded pkg-config v0.3.30
  Downloaded same-file v1.0.6
  Downloaded signal-hook-registry v1.4.2
  Downloaded httparse v1.8.0
  Downloaded ipnet v2.9.0
  Downloaded version_check v0.9.4
  Downloaded tokio-native-tls v0.3.1
  Downloaded native-tls v0.2.12
  Downloaded foreign-types-shared v0.1.1
  Downloaded mime v0.3.17
  Downloaded bitflags v2.5.0
  Downloaded thiserror-impl v1.0.61
  Downloaded tokio-macros v2.2.0
  Downloaded futures v0.3.30
  Downloaded wincompatlib v0.7.4
  Downloaded unicode-width v0.1.12
  Downloaded miniz_oxide v0.7.3
  Downloaded log v0.4.21
  Downloaded zeroize v1.8.1
  Downloaded parking_lot v0.12.3
  Downloaded once_cell v1.19.0
  Downloaded minreq v2.11.2
  Downloaded bytes v1.6.0
  Downloaded walkdir v2.5.0
  Downloaded ppv-lite86 v0.2.17
  Downloaded untrusted v0.9.0
  Downloaded getrandom v0.2.15
  Downloaded rustls-pemfile v2.1.2
  Downloaded rand_core v0.6.4
  Downloaded rustc-demangle v0.1.24
  Downloaded quote v1.0.36
  Downloaded indicatif v0.17.8
  Downloaded hyper-util v0.1.4
  Downloaded shell-words v1.1.0
  Downloaded sct v0.7.1
  Downloaded rustls-pki-types v1.7.0
  Downloaded sha2 v0.10.8
  Downloaded rustls-native-certs v0.6.3
  Downloaded flate2 v1.0.30
  Downloaded base64 v0.22.1
  Downloaded pin-utils v0.1.0
  Downloaded slab v0.4.9
  Downloaded spin v0.9.8
  Downloaded indexmap v2.2.6
  Downloaded tempfile v3.10.1
  Downloaded time-macros v0.2.18
  Downloaded backtrace v0.3.71
  Downloaded async-compression v0.4.10
  Downloaded pin-project-lite v0.2.14
  Downloaded base64 v0.21.7
  Downloaded smallvec v1.13.2
  Downloaded http v1.1.0
  Downloaded proc-macro2 v1.0.84
  Downloaded openssl-sys v0.9.102
  Downloaded memchr v2.7.2
  Downloaded tinyvec v1.6.0
  Downloaded http v0.2.12
  Downloaded mio v0.8.11
  Downloaded serde_derive v1.0.203
  Downloaded scopeguard v1.2.0
  Downloaded ryu v1.0.18
  Downloaded socket2 v0.5.7
  Downloaded tar v0.4.40
  Downloaded hashbrown v0.14.5
  Downloaded blake3 v1.5.1
  Downloaded futures-util v0.3.30
  Downloaded hyper v1.3.1
  Downloaded pin-project-internal v1.1.5
  Downloaded pin-project v1.1.5
  Downloaded unicode-ident v1.0.12
  Downloaded h2 v0.3.26
  Downloaded typenum v1.17.0
  Downloaded h2 v0.4.5
  Downloaded hyper v0.14.28
  Downloaded gimli v0.28.1
  Downloaded tracing-core v0.1.32
  Downloaded unicode-bidi v0.3.15
  Downloaded openssl v0.10.64
  Downloaded rand v0.8.5
  Downloaded idna v0.5.0
  Downloaded object v0.32.2
  Downloaded serde v1.0.203
  Downloaded url v2.5.0
  Downloaded tracing v0.1.40
  Downloaded tower v0.4.13
  Downloaded tokio-util v0.7.11
  Downloaded time v0.3.36
  Downloaded libc v0.2.155
  Downloaded unicode-normalization v0.1.23
  Downloaded portable-atomic v1.6.0
  Downloaded serde_json v1.0.117
  Downloaded reqwest v0.11.27
  Downloaded reqwest v0.12.4
  Downloaded rustls-webpki v0.101.7
  Downloaded rustls v0.21.12
  Downloaded encoding_rs v0.8.34
  Downloaded vcpkg v0.2.15
  Downloaded syn v2.0.66
  Downloaded linux-raw-sys v0.4.14
  Downloaded webpki-roots v0.25.4
  Downloaded rustix v0.38.34
  Downloaded tokio v1.37.0
  Downloaded rust-embed v8.4.0
  Downloaded ring v0.17.8
  Downloaded 181 crates (19.1 MB) in 9.03s (largest was `ring` at 4.2 MB)
   Compiling libc v0.2.155
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.84
   Compiling unicode-ident v1.0.12
   Compiling cc v1.0.98
   Compiling autocfg v1.3.0
   Compiling pin-project-lite v0.2.14
   Compiling bytes v1.6.0
   Compiling itoa v1.0.11
   Compiling memchr v2.7.2
   Compiling futures-core v0.3.30
   Compiling typenum v1.17.0
   Compiling parking_lot_core v0.9.10
   Compiling smallvec v1.13.2
   Compiling lock_api v0.4.12
   Compiling version_check v0.9.4
   Compiling once_cell v1.19.0
   Compiling scopeguard v1.2.0
   Compiling quote v1.0.36
   Compiling generic-array v0.14.7
   Compiling slab v0.4.9
   Compiling syn v2.0.66
   Compiling futures-sink v0.3.30
   Compiling mio v0.8.11
   Compiling socket2 v0.5.7
   Compiling parking_lot v0.12.3
   Compiling num_cpus v1.16.0
   Compiling signal-hook-registry v1.4.2
   Compiling fnv v1.0.7
   Compiling futures-channel v0.3.30
   Compiling futures-task v0.3.30
   Compiling vcpkg v0.2.15
   Compiling pin-utils v0.1.0
   Compiling bitflags v2.5.0
   Compiling pkg-config v0.3.30
   Compiling futures-io v0.3.30
   Compiling tracing-core v0.1.32
   Compiling equivalent v1.0.1
   Compiling hashbrown v0.14.5
   Compiling log v0.4.21
   Compiling getrandom v0.2.15
   Compiling httparse v1.8.0
   Compiling openssl-probe v0.1.5
   Compiling tracing v0.1.40
   Compiling foreign-types-shared v0.1.1
   Compiling try-lock v0.2.5
   Compiling openssl v0.10.64
   Compiling want v0.3.1
   Compiling openssl-sys v0.9.102
   Compiling foreign-types v0.3.2
   Compiling ring v0.17.8
   Compiling indexmap v2.2.6
   Compiling thiserror v1.0.61
The following warnings were emitted during compilation:

warning: build/expando.c:1:10: fatal error: openssl/opensslv.h: File o directory non esistente
warning:     1 | #include <openssl/opensslv.h>
warning:       |          ^~~~~~~~~~~~~~~~~~~~
warning: compilation terminated.

error: failed to run custom build command for `openssl-sys v0.9.102`

Caused by:
  process didn't exit successfully: `/tmp/cargo-install9Advva/release/build/openssl-sys-dc4c338ef4ac73aa/build-script-main` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_LIB_DIR
  OPENSSL_LIB_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_INCLUDE_DIR
  OPENSSL_INCLUDE_DIR unset
  cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR
  X86_64_UNKNOWN_LINUX_GNU_OPENSSL_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_DIR
  OPENSSL_DIR unset
  cargo:rerun-if-env-changed=OPENSSL_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENSSL_STATIC
  cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=SYSROOT
  cargo:rerun-if-env-changed=OPENSSL_STATIC
  cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rustc-link-lib=ssl
  cargo:rustc-link-lib=crypto
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=OPENSSL_STATIC
  cargo:rerun-if-env-changed=OPENSSL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-changed=build/expando.c
  OPT_LEVEL = Some("3")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=build/expando.c:1:10: fatal error: openssl/opensslv.h: File o directory non esistente
  cargo:warning=    1 | #include <openssl/opensslv.h>
  cargo:warning=      |          ^~~~~~~~~~~~~~~~~~~~
  cargo:warning=compilation terminated.

  --- stderr
  thread 'main' panicked at '
  Header expansion error:
  Error { kind: ToolExecError, message: "Command \"cc\" \"-O3\" \"-ffunction-sections\" \"-fdata-sections\" \"-fPIC\" \"-m64\" \"-I\" \"/usr/include\" \"-Wall\" \"-Wextra\" \"-E\" \"build/expando.c\" with args cc did not execute successfully (status code exit status: 1)." }

  Failed to find OpenSSL development headers.

  You can try fixing this setting the `OPENSSL_DIR` environment variable
  pointing to your OpenSSL installation or installing OpenSSL headers package
  specific to your distribution:

      # On Ubuntu
      sudo apt-get install libssl-dev
      # On Arch Linux
      sudo pacman -S openssl
      # On Fedora
      sudo dnf install openssl-devel
      # On Alpine Linux
      apk add openssl-dev

  See rust-openssl documentation for more information:

      https://docs.rs/openssl
  ', /home/deck/.cargo/registry/src/index.crates.io-6f17d22bba15001f/openssl-sys-0.9.102/build/main.rs:188:13
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `babylonia-terminal-cli v0.1.0 (https://github.com/ALEZ-DEV/Babylonia-terminal#7c83f0db)`, intermediate artifacts can be found at `/tmp/cargo-install9Advva`
ALEZ-DEV commented 5 months ago

That's good news, like said in the error, just install openssl:

sudo pacman -S openssl
raizor154 commented 5 months ago

nope, still errors. openssl is correctly installed

The following warnings were emitted during compilation:

warning: In file included from include/ring-core/base.h:64,
warning:                  from include/ring-core/mem.h:60,
warning:                  from crypto/curve25519/curve25519.c:22:
warning: /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/stdint.h:9:16: fatal error: stdint.h: File o directory non esistente
warning:     9 | # include_next <stdint.h>
warning:       |                ^~~~~~~~~~
warning: compilation terminated.

error: failed to run custom build command for `ring v0.17.8`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installeBz9BD/release/build/ring-4ddece1811714ec4/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
  OPT_LEVEL = Some("3")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=In file included from include/ring-core/base.h:64,
  cargo:warning=                 from include/ring-core/mem.h:60,
  cargo:warning=                 from crypto/curve25519/curve25519.c:22:
  cargo:warning=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/stdint.h:9:16: fatal error: stdint.h: File o directory non esistente
  cargo:warning=    9 | # include_next <stdint.h>
  cargo:warning=      |                ^~~~~~~~~~
  cargo:warning=compilation terminated.

  --- stderr

  error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "include" "-I" "/tmp/cargo-installeBz9BD/release/build/ring-8cf45cfbc63a5239/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissi
ng-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "/tmp/cargo-installeBz9BD/release/build/ring-8cf45cfbc63a5239/out/fad98b632b8ce3cc-curve25519.o" "-c" "cr
ypto/curve25519/curve25519.c" with args cc did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
error: failed to compile `babylonia-terminal-cli v0.1.0 (https://github.com/ALEZ-DEV/Babylonia-terminal#7c83f0db)`, intermediate artifacts can be found at /tmp/cargo-installeBz9BD

i'm so sorry to bother you so much! tysm for your patience

ALEZ-DEV commented 5 months ago

Don't worry, this are current issue in new project That's weird because ring v0.17.8 compiled when you showed me your openssl error, can you give me the entire output ?

raizor154 commented 5 months ago

sure, this is the whole output

cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin
    Updating git repository `https://github.com/ALEZ-DEV/Babylonia-terminal`
  Installing babylonia-terminal-cli v0.1.0 (https://github.com/ALEZ-DEV/Babylonia-terminal#7c83f0db)
    Updating crates.io index
    Updating git repository `https://github.com/ALEZ-DEV/downloader`
   Compiling libc v0.2.155
   Compiling cfg-if v1.0.0
   Compiling proc-macro2 v1.0.84
   Compiling unicode-ident v1.0.12
   Compiling cc v1.0.98
   Compiling autocfg v1.3.0
   Compiling pin-project-lite v0.2.14
   Compiling bytes v1.6.0
   Compiling itoa v1.0.11
   Compiling parking_lot_core v0.9.10
   Compiling memchr v2.7.2
   Compiling typenum v1.17.0
   Compiling futures-core v0.3.30
   Compiling scopeguard v1.2.0
   Compiling smallvec v1.13.2
   Compiling lock_api v0.4.12
   Compiling once_cell v1.19.0
   Compiling version_check v0.9.4
   Compiling quote v1.0.36
   Compiling generic-array v0.14.7
   Compiling syn v2.0.66
   Compiling slab v0.4.9
   Compiling futures-sink v0.3.30
   Compiling parking_lot v0.12.3
   Compiling signal-hook-registry v1.4.2
   Compiling num_cpus v1.16.0
   Compiling mio v0.8.11
   Compiling socket2 v0.5.7
   Compiling fnv v1.0.7
   Compiling futures-channel v0.3.30
   Compiling bitflags v2.5.0
   Compiling pkg-config v0.3.30
   Compiling pin-utils v0.1.0
   Compiling futures-task v0.3.30
   Compiling vcpkg v0.2.15
   Compiling futures-io v0.3.30
   Compiling tracing-core v0.1.32
   Compiling equivalent v1.0.1
   Compiling hashbrown v0.14.5
   Compiling log v0.4.21
   Compiling getrandom v0.2.15
   Compiling httparse v1.8.0
   Compiling openssl-probe v0.1.5
   Compiling tracing v0.1.40
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.64
   Compiling try-lock v0.2.5
   Compiling want v0.3.1
   Compiling foreign-types v0.3.2
   Compiling ring v0.17.8
   Compiling indexmap v2.2.6
   Compiling openssl-sys v0.9.102
   Compiling tower-service v0.3.2
   Compiling thiserror v1.0.61
   Compiling native-tls v0.2.12
The following warnings were emitted during compilation:

warning: In file included from include/ring-core/base.h:64,
warning:                  from include/ring-core/mem.h:60,
warning:                  from crypto/curve25519/curve25519.c:22:
warning: /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/stdint.h:9:16: fatal error: stdint.h: File o directory non esistente
warning:     9 | # include_next <stdint.h>
warning:       |                ^~~~~~~~~~
warning: compilation terminated.

error: failed to run custom build command for `ring v0.17.8`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installcRQ4dn/release/build/ring-4ddece1811714ec4/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
  OPT_LEVEL = Some("3")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=In file included from include/ring-core/base.h:64,
  cargo:warning=                 from include/ring-core/mem.h:60,
  cargo:warning=                 from crypto/curve25519/curve25519.c:22:
  cargo:warning=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/stdint.h:9:16: fatal error: stdint.h: File o directory non esistente
  cargo:warning=    9 | # include_next <stdint.h>
  cargo:warning=      |                ^~~~~~~~~~
  cargo:warning=compilation terminated.

  --- stderr

  error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "include" "-I" "/tmp/cargo-installcRQ4dn/release/build/ring-8cf45cfbc63a5239/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "/tmp/cargo-installcRQ4dn/release/build/ring-8cf45cfbc63a5239/out/fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args cc did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
error: failed to compile `babylonia-terminal-cli v0.1.0 (https://github.com/ALEZ-DEV/Babylonia-terminal#7c83f0db)`, intermediate artifacts can be found at `/tmp/cargo-installcRQ4dn`
ALEZ-DEV commented 5 months ago

Try removing cache by doing:

cargo clean

try reinstalling the launcher and paste the output here EDIT: My bad you're not in a project

raizor154 commented 5 months ago

don't worry i didn't even see the reply before you edited

ALEZ-DEV commented 5 months ago

Try install GCC:

sudo pacman -S gcc-git

and try reinstall the launcher

raizor154 commented 5 months ago

it says package not found :/

ALEZ-DEV commented 5 months ago

So just gcc ?

sudo pacman -S gcc
raizor154 commented 5 months ago

it says it's already installed

ALEZ-DEV commented 5 months ago

Try installing clang:

sudo pacman -S clang
raizor154 commented 5 months ago

nope, same error as before

deck@steamdeck ~)$ cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin
    Updating git repository `https://github.com/ALEZ-DEV/Babylonia-terminal`
  Installing babylonia-terminal-cli v0.1.0 (https://github.com/ALEZ-DEV/Babylonia-terminal#7c83f0db)
    Updating crates.io index
    Updating git repository `https://github.com/ALEZ-DEV/downloader`
   Compiling libc v0.2.155
   Compiling proc-macro2 v1.0.84
   Compiling cfg-if v1.0.0
   Compiling unicode-ident v1.0.12
   Compiling cc v1.0.98
   Compiling autocfg v1.3.0
   Compiling pin-project-lite v0.2.14
   Compiling bytes v1.6.0
   Compiling itoa v1.0.11
   Compiling typenum v1.17.0
   Compiling parking_lot_core v0.9.10
   Compiling memchr v2.7.2
   Compiling futures-core v0.3.30
   Compiling once_cell v1.19.0
   Compiling lock_api v0.4.12
   Compiling smallvec v1.13.2
   Compiling scopeguard v1.2.0
   Compiling version_check v0.9.4
   Compiling slab v0.4.9
   Compiling quote v1.0.36
   Compiling generic-array v0.14.7
   Compiling futures-sink v0.3.30
   Compiling syn v2.0.66
   Compiling parking_lot v0.12.3
   Compiling num_cpus v1.16.0
   Compiling mio v0.8.11
   Compiling signal-hook-registry v1.4.2
   Compiling socket2 v0.5.7
   Compiling fnv v1.0.7
   Compiling futures-channel v0.3.30
   Compiling pkg-config v0.3.30
   Compiling vcpkg v0.2.15
   Compiling bitflags v2.5.0
   Compiling futures-io v0.3.30
   Compiling futures-task v0.3.30
   Compiling pin-utils v0.1.0
   Compiling tracing-core v0.1.32
   Compiling equivalent v1.0.1
   Compiling log v0.4.21
   Compiling hashbrown v0.14.5
   Compiling getrandom v0.2.15
   Compiling httparse v1.8.0
   Compiling openssl-probe v0.1.5
   Compiling try-lock v0.2.5
   Compiling openssl v0.10.64
   Compiling foreign-types-shared v0.1.1
   Compiling tracing v0.1.40
   Compiling foreign-types v0.3.2
   Compiling want v0.3.1
   Compiling ring v0.17.8
   Compiling openssl-sys v0.9.102
   Compiling indexmap v2.2.6
   Compiling native-tls v0.2.12
   Compiling tower-service v0.3.2
   Compiling thiserror v1.0.61
The following warnings were emitted during compilation:

warning: In file included from include/ring-core/base.h:64,
warning:                  from include/ring-core/mem.h:60,
warning:                  from crypto/curve25519/curve25519.c:22:
warning: /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/stdint.h:9:16: fatal error: stdint.h: File o directory non esistente
warning:     9 | # include_next <stdint.h>
warning:       |                ^~~~~~~~~~
warning: compilation terminated.

error: failed to run custom build command for `ring v0.17.8`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installLnd3J2/release/build/ring-4ddece1811714ec4/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
  cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
  OPT_LEVEL = Some("3")
  TARGET = Some("x86_64-unknown-linux-gnu")
  HOST = Some("x86_64-unknown-linux-gnu")
  cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
  CC_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
  CC_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CC
  HOST_CC = None
  cargo:rerun-if-env-changed=CC
  CC = None
  cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
  cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
  CRATE_CC_NO_DEFAULTS = None
  DEBUG = Some("false")
  CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
  cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
  CFLAGS_x86_64-unknown-linux-gnu = None
  cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
  CFLAGS_x86_64_unknown_linux_gnu = None
  cargo:rerun-if-env-changed=HOST_CFLAGS
  HOST_CFLAGS = None
  cargo:rerun-if-env-changed=CFLAGS
  CFLAGS = None
  cargo:warning=In file included from include/ring-core/base.h:64,
  cargo:warning=                 from include/ring-core/mem.h:60,
  cargo:warning=                 from crypto/curve25519/curve25519.c:22:
  cargo:warning=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/include/stdint.h:9:16: fatal error: stdint.h: File o directory non esistente
  cargo:warning=    9 | # include_next <stdint.h>
  cargo:warning=      |                ^~~~~~~~~~
  cargo:warning=compilation terminated.

  --- stderr

  error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "include" "-I" "/tmp/cargo-installLnd3J2/release/build/ring-8cf45cfbc63a5239/out" "-Wall" "-Wextra" "-fvisibility=hidden" "-std=c1x" "-Wall" "-Wbad-function-cast" "-Wcast-align" "-Wcast-qual" "-Wconversion" "-Wmissing-field-initializers" "-Wmissing-include-dirs" "-Wnested-externs" "-Wredundant-decls" "-Wshadow" "-Wsign-compare" "-Wsign-conversion" "-Wstrict-prototypes" "-Wundef" "-Wuninitialized" "-g3" "-DNDEBUG" "-o" "/tmp/cargo-installLnd3J2/release/build/ring-8cf45cfbc63a5239/out/fad98b632b8ce3cc-curve25519.o" "-c" "crypto/curve25519/curve25519.c" with args cc did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish...
error: failed to compile `babylonia-terminal-cli v0.1.0 (https://github.com/ALEZ-DEV/Babylonia-terminal#7c83f0db)`, intermediate artifacts can be found at `/tmp/cargo-installLnd3J2`
(101)(deck@steamdeck ~)$ 
ALEZ-DEV commented 5 months ago

Try these following command :

rustup target add x86_64-unknown-linux-musl
rustup default stable-x86_64-unknown-linux-musl

and try reinstalling

raizor154 commented 5 months ago

command not found, maybe because I installed Rust via pacman?

ALEZ-DEV commented 5 months ago

that's a possibility try reinstalling rust via the normal way and run the commands above

raizor154 commented 5 months ago

first command runs fine, the second one outputs this

info: using existing install for 'stable-x86_64-unknown-linux-musl'
info: default toolchain set to 'stable-x86_64-unknown-linux-musl'

  stable-x86_64-unknown-linux-musl unchanged - (error reading rustc version)

and reinstalling gives this

cargo install --git https://github.com/ALEZ-DEV/Babylonia-terminal --bin
Error relocating /lib/libgcc_s.so.1: __cpu_indicator_init: symbol not found
Error relocating /lib/libgcc_s.so.1: __cpu_model: symbol not found
Error relocating /lib/libgcc_s.so.1: _dl_find_object: symbol not found
(127)(deck@steamdeck ~)$
ALEZ-DEV commented 5 months ago

that's very weird error you got here, I think it will be more simple to just give you a pre-compiled binary directly I will notify you when it's ready

raizor154 commented 5 months ago

thank you SOOO much, I'll have to thank you in some way

ALEZ-DEV commented 5 months ago

Okay so, there is the release : https://github.com/ALEZ-DEV/Babylonia-terminal/releases/tag/0.1.0 just download it and run it like this :

chmod +x ./babylonia-terminal-cli
./babylonia-terminal-cli

notify me if something goes wrong

raizor154 commented 5 months ago

ok, launcher runs and installs latest proton version, but now it's been stuck here for several minutes

✔ Do you want to install latest version of Proton GE or a specific version of it? · Install latest
2024-05-28T14:15:44.888Z INFO  [babylonia_terminal_cli] Proton not installed, installing it...
GE-Proton9-5.tar.gz 1/3
⠲ [00:02:04] [================================================================================================================] 415.18 MiB/415.18 MiB (0.0s)
File state: GE-Proton9-5.tar.gz 1/3 - 200
File state: GE-Proton9-5.tar.gz 1/3 - not verified
2024-05-28T14:17:57.205Z INFO  [babylonia_terminal_cli] Proton installed

do i just wait or?

ALEZ-DEV commented 5 months ago

If it's just stuck try to restart it and it will normally ask to install a DXVK

raizor154 commented 5 months ago

nothing. the babylonia-terminal folder exists

image

ALEZ-DEV commented 5 months ago

can you show me the output of this command :

cat ~/.babylonia-terminal/babylonia-terminal-config
raizor154 commented 5 months ago
(deck@steamdeck ~)$ cat ~/.babylonia-terminal/babylonia-terminal-config
{"config_dir":"/home/deck/.babylonia-terminal","is_wine_installed":true,"is_dxvk_installed":false,"is_font_installed":false,"is_dependecies_installed":false
,"game_dir":null,"is_game_installed":false,"is_game_patched":false}
ALEZ-DEV commented 5 months ago

I updated the release and added a debug version of the binary, run it and show me the output

raizor154 commented 5 months ago

still no output image

ALEZ-DEV commented 5 months ago

Do you have all the requirement installed ?

raizor154 commented 5 months ago

I have Steam installed obviously, python too, and I have protontricks, which is basically a winetricks wrapper tool

ALEZ-DEV commented 5 months ago

Can you check if python is install correctly by doing :

python3 --version
which python3

after that, show me the output

raizor154 commented 5 months ago

(deck@steamdeck ~)$ python3 --version which python3 Python 3.11.3 /usr/bin/python3

edit: I installed also base winetricks just to be sure, but nothing

ALEZ-DEV commented 5 months ago

I updated the debug binary in the release, can you redownload and try the new one ? there is some commands to run before running the debug version of the launcher :

rm -rf ~/.babylonia-terminal
chmod +x ./babylonia-terminal-cli-debug
./babylonia-terminal-cli-debug

and past the output here

raizor154 commented 5 months ago

proton and DXVK installed correctly, however now it shows an error when it tries to install fonts log6.txt

raizor154 commented 5 months ago

oh nvm, deck went in suspend mode lol, now its working. i'll keep u posted

raizor154 commented 5 months ago

ok, game installed, but another error shows up

(101)(deck@steamdeck ~)$ ./babylonia-terminal-cli-debug
2024-05-28T18:14:34.777Z DEBUG [reqwest::connect] starting new connection: https://prod-alicdn-gamestarter.kurogame.com/
2024-05-28T18:14:35.347Z TRACE [tokio_util::codec::framed_impl] attempting to decode a frame
2024-05-28T18:14:35.347Z TRACE [tokio_util::codec::framed_impl] frame decoded from buffer
2024-05-28T18:14:35.347Z TRACE [tokio_util::codec::framed_impl] attempting to decode a frame
2024-05-28T18:14:37.236Z INFO  [babylonia_terminal_cli] Patching game...
2024-05-28T18:14:37.237Z DEBUG [babylonia_terminal_sdk::game_patcher] "/home/deck/.babylonia-terminal"
2024-05-28T18:14:37.237Z DEBUG [babylonia_terminal_sdk::game_patcher] unity resources exist? : false
2024-05-28T18:14:37.237Z DEBUG [babylonia_terminal_sdk::game_patcher] "/home/deck/.babylonia-terminal/PGR/PGR.exe"
thread 'main' panicked at src/main.rs:173:22:
Failed to patch the game: Game executable not included in the binary! Please report this to the developer!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

edit: the certain game .exe is not in directory image

ALEZ-DEV commented 5 months ago

Okay, seems that the exe was not included in the binary, weird. anyway try these steps :

  1. Download the Patched.exe file
  2. Move it to the ~/babylonia-terminal/PGR folder
  3. Rename it to PGR.exe
  4. Open ~/babylonia-terminal/babylonia-terminal-config
  5. Edit the is_game_patched to true
  6. Finally, restart the launcher and the game have to launch
raizor154 commented 5 months ago

holy, I'm in! How do I launch it through Steam? is it already added?

ALEZ-DEV commented 5 months ago

Glad to hear that!

How do I launch it through Steam? is it already added?

Some people, just created a .sh file and run the executable in it, example :

/path/to/the/binary/babylonia-terminal-cli-debug

and add it as a non-steam game in steam

another thing, I'm currently working on a GUI version of the launcher, so stay tuned for update! (as Flatpak)

raizor154 commented 5 months ago

yes, that works too. tysm for your outstanding patience, i contacted you on your twitter page to thank you again

ALEZ-DEV commented 4 months ago

Hey,

If you want to make a cleaner install than the one I give you, you can try the script we made to automate the installation here

If you have any trouble with the script, please open a new issue!