GithubHelp home page GithubHelp logo

Client Build problem about samp-cef HOT 2 CLOSED

pycckue-bnepeg avatar pycckue-bnepeg commented on August 20, 2024
Client Build problem

from samp-cef.

Comments (2)

TemaSM avatar TemaSM commented on August 20, 2024 2

For those who also facing same problem:

  1. Install the Rust version of November 05, 2022:
    rustup toolchain install nightly-2022-11-06-i686
  2. Run the build:
    cargo +nightly-2022-11-06-i686 build --release
    Finished

Why did this work?
On November 6, Rust's contributors made commit to the master branch, that affects how the compiler handles syntax:
rust-lang/rust@7eef946
This commit went to toolchain-version nightly-2022-11-07-i686, which means that since November 6 this samp-cef stopped building with versions of Rust newer than 2022-11-06.
After installing the correct version (command above), we switched to the version of Rust the day before this commit and safely compiled what we needed without any changes to the code.

Why did this happen?
Because the sources of the detours library (which is a dependency) uses outdated syntax, so that the Rust compiler showed us an error during compile.
Related: darfink/detour-rs#39

from samp-cef.

GeneralZero avatar GeneralZero commented on August 20, 2024

Just an update to this rustup will automatically get the correct architecture you need. So you can install the nightly version like this.
rustup toolchain install nightly-2022-11-06

Specifically specifying the architecture broke another part of my code. But will build with
cargo +nightly-2022-11-06 build

from samp-cef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.