Giter Site home page Giter Site logo

Fix docs.rs build error about wxrust2 HOT 8 CLOSED

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024
Fix docs.rs build error

from wxrust2.

Comments (8)

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

Created Ubuntu 20.04 VM to determine what package is required to build on docs.rs

from wxrust2.

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

Installed packages to build (WIP)

  • git
  • cargo
    • rustup snap package didn't work with 20.04
    • -Z namespaced-features was required for older cargo version

At this stage, I got same error output as docs.rs

error: failed to run custom build command for `wxrust-base v0.0.1-alpha`

Caused by:
  process didn't exit successfully: `/home/kenz/src/wxRust2/target/debug/build/wxrust-base-f22040c3ee87a585/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'failed execute wx-config command.: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /home/kenz/.cargo/git/checkouts/wxrust-vendored-config-2459bb25f7f509b9/245f52f/src/lib.rs:28:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

from wxrust2.

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

These packages seem already installed...

  • libwxbase3.0-dev
  • libwxgtk3.0-gtk3-dev
kenz@ubuntu2004:~/src/wxRust2$ wx-config

Command 'wx-config' not found, but can be installed with:

sudo apt install libwxbase3.0-dev      # version 3.0.4+dfsg-15build1, or
sudo apt install libwxgtk3.0-gtk3-dev  # version 3.0.4+dfsg-15build1

from wxrust2.

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

apt install part of dockerfile of crates-build-env

# Install the packages contained in `packages.txt`
COPY packages.txt /opt/crates-build-env/packages.txt
RUN apt-get update && \
    cat /opt/crates-build-env/packages.txt | DEBIAN_FRONTEND=noninteractive xargs apt-get install -y && \
    rm -rf /var/lib/apt/lists/*

from wxrust2.

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

Installed packages to build

  • git
  • cargo
  • libwxgtk3.0-gtk3-dev
error occurred: Failed to find tool. Is `c++` installed?
  • clang (is installed as c++ compiler on crates-build-env)

Built successfully after installed above packages.

from wxrust2.

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

These packages seem already installed...

https://github.com/rust-lang/crates-build-env/blob/master/linux/packages.txt#L902

didn't include -dev package. I'll send PR to add this.

from wxrust2.

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

I sent PR: rust-lang/crates-build-env#108

from wxrust2.

kenz-gelsoft avatar kenz-gelsoft commented on September 25, 2024

Fixed!

from wxrust2.

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.