jschrtke / clipr Goto Github PK
View Code? Open in Web Editor NEWA simple, cross-platform clipboard program
A simple, cross-platform clipboard program
Running
cargo install --path .
yields the following
Compiling clipr v0.1.0 (/home/js/develop/rust/clipr)
error[E0599]: no method named `set_contents` found for struct `X11BinClipboardContext` in the current scope
--> src/main.rs:22:18
|
22 | clip_ctx.set_contents(buf.to_owned()).unwrap();
| ^^^^^^^^^^^^ method not found in `X11BinClipboardContext`
|
::: /home/js/.cargo/registry/src/github.com-1ecc6299db9ec823/copypasta-0.8.1/src/common.rs:25:8
|
25 | fn set_contents(&mut self, _: String) -> Result<()>;
| ------------ the method is available for `X11BinClipboardContext` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
1 | use copypasta_ext::prelude::ClipboardProvider;
|
error[E0599]: no method named `get_contents` found for struct `X11BinClipboardContext` in the current scope
--> src/main.rs:29:46
|
29 | let content: String = match clip_ctx.get_contents() {
| ^^^^^^^^^^^^ method not found in `X11BinClipboardContext`
|
::: /home/js/.cargo/registry/src/github.com-1ecc6299db9ec823/copypasta-0.8.1/src/common.rs:23:8
|
23 | fn get_contents(&mut self) -> Result<String>;
| ------------ the method is available for `X11BinClipboardContext` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
1 | use copypasta_ext::prelude::ClipboardProvider;
|
warning: unused import: `copypasta::ClipboardProvider`
--> src/main.rs:2:5
|
2 | use copypasta::ClipboardProvider;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0599`.
warning: `clipr` (bin "clipr") generated 1 warning
error: could not compile `clipr` due to 2 previous errors; 1 warning emitted
error: failed to compile `clipr v0.1.0 (/home/js/develop/rust/clipr)`, intermediate artifacts can be found at `/home/js/develop/rust/clipr/target`
This was cause by 844294e, the dependabot update of the 'nix' crate.
Running
cargo build
yields the following error:
Compiling clipr v0.1.0 (/home/js/develop/rust/clipr)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcnwi0ep/symbols.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.112kt2w9xq0y0m6j.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.1907exgoa5amgstt.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.1dbpzvbnmyz633hy.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.1knusjo4kv4b96ef.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.1pbnrdruwiwevq57.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.2hebo1pxh3vw81tg.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.3xwanezwdgot50jg.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.40fv8umv9w2heo05.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.4c0nlf0p549hi71b.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.4p9384pxxa6vr6k8.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.58m3v54o25oh3ygq.rcgu.o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01.3jk79h0o0398al2j.rcgu.o" "-Wl,--as-needed" "-L" "/home/js/develop/rust/clipr/target/debug/deps" "-L" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/js/develop/rust/clipr/target/debug/deps/libcopypasta_ext-f2e1a07ecf038e94.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libwhich-e5442b8c3870e109.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libeither-0e50dd7ca945fb20.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libcopypasta-21b2772d1fb253d3.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libx11_clipboard-282ec4acadd34e44.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libxcb-02ad81897dd18ad4.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libsmithay_clipboard-11aa7879892b3710.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libsmithay_client_toolkit-17cc5e85ec03e0af.rlib" "/home/js/develop/rust/clipr/target/debug/deps/liblog-4bee15df4c5542d8.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libwayland_cursor-d0fb02fc110e77a4.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libxcursor-93c17978dea7c27c.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libnom-5202f7fb8b6e6583.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libminimal_lexical-5614d2dbf9bc2f8f.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libmemchr-98bdf1c8ebe6744b.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libmemmap2-24ab321d70879fbf.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libwayland_protocols-fe8c0647ee9092fb.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libwayland_client-abde8e1fe09f4843.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libscoped_tls-77e53aa40897bb00.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libwayland_commons-86242cca78621b0f.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libsmallvec-cd4760d5afcc72e1.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libonce_cell-54dd2b5b48defa7d.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libnix-00c005f2182f51b4.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libmemoffset-dadfee67f39c96d4.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libwayland_sys-66827e2f4530889a.rlib" "/home/js/develop/rust/clipr/target/debug/deps/liblazy_static-0979de6da59c6ace.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libbitflags-d6e104078c885a19.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libdlib-8705cfe411672723.rlib" "/home/js/develop/rust/clipr/target/debug/deps/liblibloading-ed9f7b209cecee0a.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libcfg_if-540f49c19097eeb6.rlib" "/home/js/develop/rust/clipr/target/debug/deps/libatty-9631864af4dbb576.rlib" "/home/js/develop/rust/clipr/target/debug/deps/liblibc-a90f30020c94e5ac.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-a11e3ca400b3ed09.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3e82a3fced649488.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-53a4330185981bcb.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-2a8b57667b4852b5.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-9370462deca12c5a.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-7da763b8d3620472.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-5bde27582a7f5af7.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-1204e05b2d47e3d7.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-43987de2766b6923.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-d6499a0705316aa5.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-c9a27c90d8fbf11e.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-8f159929cbfdfaf1.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-d2f1e8f3bb5cba95.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-9862f486269f442f.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-0434381f2f012ae2.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-68549403a59fd02e.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-4cefb2045f924a5b.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-272615fc4f10c50d.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-860619b93700e7eb.rlib" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b73e5b4656934876.rlib" "-Wl,-Bdynamic" "-lxcb" "-lxcb-render" "-lxcb-shape" "-lxcb-xfixes" "-lxkbcommon" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/js/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/js/develop/rust/clipr/target/debug/deps/clipr-4d6c5d89ecdb9b01" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-nodefaultlibs"
= note: /usr/bin/ld: cannot find -lxcb-shape: No such file or directory
/usr/bin/ld: cannot find -lxcb-xfixes: No such file or directory
collect2: error: ld returned 1 exit status
error: could not compile `clipr` due to previous error
This was caused by the missing libraries libxcb-shape0-dev
and libxcb-xfixes0-dev
.
After running
sudo apt install libxcb-shape0-dev libxcb-xfixes0-dev
the build ran fine.
The readme should be updated with a note to install these dependencies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.