Giter VIP home page Giter VIP logo

sixel-sys's Introduction

sixel-sys: Rust FFI bindings for libsixel

Crates.io License: MIT

The sixel-sys crate provides delcarations and linkage for the libsixel C library. This crate does not provide higher-level abstractions over the libsixel library.

sixel-sys's People

Contributors

adnoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sixel-sys's Issues

Can't compile sixel-sys on windows or macOS (works fine in linux)

On Windows: I get this error:

rror: failed to run custom build command for `sixel-sys v0.3.1`

Caused by:
  process didn't exit successfully: `V:\Documents\viuertest\sixel-sys-test\target\debug\build\sixel-sys-f5b3ec906222e763\build-script-build` (exit code: 101)
  --- stdout
  cargo:rustc-link-lib=dylib=sixel
  cargo:rustc-link-search=native=V:\Documents\viuertest\sixel-sys-test\target\debug\build\sixel-sys-060e93a697b4af5b\out\lib

  --- stderr
  thread 'main' panicked at 'Failed to execute ./configure: Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." }', C:\Users\micha\.cargo\registry\src\github.com-1ecc6299db9ec823\sixel-sys-0.3.1\build.rs:71:22

On macOS I get this:

--- stderr
thread 'main' panicked at 'Failed to execute ./configure: OS {code: 2, kind: NotFound, message: "No such file or directory" }', /users/michaelmulet/.cargo/registry/src/github.com-1ecc6299db9ec823/sixel-sys-0.3.1/build.rs:71:22
configure: WARNING: unrecognized options: --without-python
configure : WARNING: unrecognized options: --without-python

If I try to build with RUST_BACKTRACE=1, then it says the error is at

build_script_build::main
at ./build.rs:71:9

Tracing it backwards, that just tells us that configure failed.

System library compiled at compile time is not available at runtime

This crate builds a dynamic version of libsixel at compile time and links against it. Then, when you run the executable, that library is not found, and relies on you having a dynamic library of libsixel installed on the operating system.

Please change it so that if libsixel is installed, you use the system installed version, and otherwise you compile and statically link against your own compiled version of libsixel. This is how many popular sys crates work in the Rust ecosystem, for example libgit2-sys.

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.