-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure to build on Linux #5
Comments
I encounter the same issue when I try to build from source, on my x86-64, ubuntu18.04 machine. I don't know how to add the static library dependency. Hope for some advice |
I have a similar issue in void linux, where I added libwebp-devel (which should be the equivalent of libwebp-dev in ubuntu), but encountered a fatal error that stddef.h could not be found when it was clearly available. |
Getting the same error.. |
Still an issue :(, I have libwebp-devel installed on Fedora 36 but still get the error. No amount of RUSTFLAGS environment variables seems to get it done for me. PS atk the stddef.h issue I solved by ensuring clang was installed (not just clang-llvm or whatever the other package is called). |
this solved the problem:
$ which imager |
sudo apt-get install -y build-essential llvm-dev libclang-dev clang openssl pkg-config libssl-dev xz-utils no errors rustc 1.65.0 (897e37553 2022-11-02) |
Having trouble building this as well: error: failed to run custom build command for `webp-dev v0.4.1`
Caused by:
process didn't exit successfully: `/tmp/cargo-installB7gZGS/release/build/webp-dev-669d82b7c8196503/build-script-build` (exit status: 101)
--- stdout
cargo:rustc-link-search=native=/tmp/cargo-installB7gZGS/release/build/webp-dev-76a9c299cd1ee3de/out/webmproject-libwebp-8bac456/src
cargo:rustc-link-search=native=/tmp/cargo-installB7gZGS/release/build/webp-dev-76a9c299cd1ee3de/out/webmproject-libwebp-8bac456/src/demux
cargo:rustc-link-lib=static=webp
cargo:rustc-link-lib=static=webpdemux
--- stderr
thread 'main' panicked at /home/mrus/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.51.1/src/ir/context.rs:891:9:
"WebPDecBuffer_union_(unnamed_at_/tmp/cargo-installB7gZGS/release/build/webp-dev-76a9c299cd1ee3de/out/webmproject-libwebp-8bac456/src/webp/decode_h_210_3)" is not a valid Ident However, since this repo has been basically unmaintained for the past four years I guess it's time to move on. In case anyone has recommendations for an alternative to |
I came across your imager project on GitHub while looking at various image compression software. I was able to download and run it on Ubuntu, and it does a fantastic job on compression. Well done on developing this awesome utility!
I am now trying to compile it for a Raspberry Pi but am running into some errors.
I followed the steps in the 'install.md' file in the project:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
apt-get install -y build-essential llvm-dev libclang-dev clang openssl pkg-config libssl-dev xz-utils
git clone https://github.com/imager-io/imager.git && cd imager
cargo install --path imager --force
If I run the compile with the --verbose option I get the following output:
This error happens on the Raspberry Pi and Ubuntu (WSL)
Some system information for the PI
Some system information for Ubuntu (WSL)
Any advice on how to fix this?
The text was updated successfully, but these errors were encountered: