Package Details: weylus 0.11.4-2

Git Clone URL: https://aur.archlinux.org/weylus.git (read-only, click to copy)
Package Base: weylus
Description: Use your tablet as graphic tablet/touch screen on your computer.
Upstream URL: https://github.com/H-M-H/Weylus
Licenses: AGPL3
Conflicts: weylus-bin
Submitter: HMH_13
Maintainer: HMH_13
Last Packager: HMH_13
Votes: 9
Popularity: 0.173128
First Submitted: 2021-03-10 11:33 (UTC)
Last Updated: 2022-05-20 15:18 (UTC)

Latest Comments

1 2 Next › Last »

Zorn commented on 2024-03-15 10:00 (UTC)

@nobane In fact, the project seems to be quite old and no longer maintained (it has been down for 2 years). I have sent source correction request to H-M-H on GitHub.

nobane commented on 2024-03-03 05:14 (UTC) (edited on 2024-03-03 05:15 (UTC) by nobane)

@Zorn if you clone the aur repo you can set the rust version with rustup before you build the package. I was able to get it to build with 1.52.0 (first version I decided to try, it may work on a more recent version):

git clone https://aur.archlinux.org/weylus
cd weylus
rustup override set 1.52.0
makepkg -si

Zorn commented on 2024-02-14 15:40 (UTC)

The compilation of Weylus fails due to the following error:

Compiling adler32 v1.2.0 error[E0310]: the parameter type T may not live long enough --> /home/zorn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5 | 1155 | fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | the parameter type T must be valid for the static lifetime... | ...so that the type T will meet its required lifetime bounds... | note: ...that is required by this bound --> /usr/src/debug/rust/rustc-1.76.0-src/library/alloc/src/borrow.rs:180:30 help: consider adding an explicit lifetime bound | 1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T> | +++++++++

Compiling log v0.3.9 Compiling memoffset v0.6.4 Compiling pin-utils v0.1.0 Compiling unicode-xid v0.0.3 Compiling term v0.4.6 Compiling num-rational v0.3.2 For more information about this error, try rustc --explain E0310. error: could not compile rustc-serialize (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish...

hammer commented on 2022-05-20 15:58 (UTC)

Great, now it works!

HMH_13 commented on 2022-05-20 15:30 (UTC)

Ok, please try again. I think the problem was the linking order of some libraries which I have changed now.

hammer commented on 2022-05-17 02:48 (UTC)

When I change my rust toolchain from nightly to stable, this error disappear. I guess it will be an interesting bug :P. Thank you!

HMH_13 commented on 2022-05-16 22:01 (UTC)

That's weird, I can not reproduce this error on my system and also not within a docker container running archlinux:latest, in both cases Weylus builds just fine.

hammer commented on 2022-05-16 19:19 (UTC)

Hey, this package now fails to build. I did nothing but running yay -S weylus, and following got output:

...
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/tmp/rustcz4lmGe/symbols.o" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/deps/weylus-4e284414ea5993ff.weylus.063a12e8-cgu.15.rcgu.o" "-Wl,--as-needed" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/deps" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out" "-L" "/usr/lib" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/fltk-sys-ff0f81669037f07a/out/build" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/fltk-sys-ff0f81669037f07a/out/build/Release" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/fltk-sys-ff0f81669037f07a/out/lib" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/fltk-sys-ff0f81669037f07a/out/lib64" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/fltk-sys-ff0f81669037f07a/out/lib/Release" "-L" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/fltk-sys-ff0f81669037f07a/out/lib64/Release" "-L" "/home/huzf/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-lerror" "-llog" "-lvideo" "-Wl,-Bdynamic" "-lavcodec" "-lavdevice" "-lavfilter" "-lavformat" "-lavutil" "-lpostproc" "-lswresample" "-lswscale" "-lx264" "-Wl,-Bstatic" "-llinux" "-Wl,-Bdynamic" "-lX11" "-lXext" "-lXrandr" "-lXfixes" "-lXcomposite" "-lXi" "-lva" "-lva-drm" "-lva-glx" "-lva-x11" "-ldrm" "-Wl,-Bstatic" "/tmp/rustcz4lmGe/libfltk_sys-b37e1daadd0a7aaa.rlib" "-Wl,--start-group" "-Wl,--end-group" "/home/huzf/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-16d69221f10b0282.rlib" "-Wl,-Bdynamic" "-lgstvideo-1.0" "-lgstbase-1.0" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lX11" "-lXtst" "-lpng" "-lpthread" "-lX11" "-lXext" "-lXinerama" "-lXcursor" "-lXrender" "-lXfixes" "-lXft" "-lfontconfig" "-lgstapp-1.0" "-lgstbase-1.0" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lgstbase-1.0" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lgstreamer-1.0" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lglib-2.0" "-ldbus-1" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/huzf/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/deps/weylus-4e284414ea5993ff" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o): in function `log_callback':
          encode_video.c:(.text.log_callback+0x137): undefined reference to `log_trace'
          /usr/bin/ld: encode_video.c:(.text.log_callback+0x16d): undefined reference to `log_error'
          /usr/bin/ld: encode_video.c:(.text.log_callback+0x181): undefined reference to `log_warn'
          /usr/bin/ld: encode_video.c:(.text.log_callback+0x195): undefined reference to `log_info'
          /usr/bin/ld: encode_video.c:(.text.log_callback+0x1a9): undefined reference to `log_debug'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o): in function `set_hwframe_ctx':
          encode_video.c:(.text.set_hwframe_ctx+0x10f): undefined reference to `fill_error'
          /usr/bin/ld: encode_video.c:(.text.set_hwframe_ctx+0x12b): undefined reference to `fill_error'
          /usr/bin/ld: encode_video.c:(.text.set_hwframe_ctx+0x14b): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o): in function `open_video':
          encode_video.c:(.text.open_video+0x2d2): undefined reference to `log_info'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x33b): undefined reference to `fill_error'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x47c): undefined reference to `log_debug'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x57a): undefined reference to `log_debug'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x5dd): undefined reference to `log_debug'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x67b): undefined reference to `fill_error'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x6ab): undefined reference to `log_warn'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x6c3): undefined reference to `log_debug'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x71e): undefined reference to `fill_error'
          /usr/bin/ld: encode_video.c:(.text.open_video+0x7ab): undefined reference to `log_debug'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o): in function `encode_video_frame':
          encode_video.c:(.text.encode_video_frame+0xbb): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o): in function `alloc_frame_buffer':
          encode_video.c:(.text.alloc_frame_buffer+0x98): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o): in function `alloc_frame_buffer_hw':
          encode_video.c:(.text.alloc_frame_buffer_hw+0xb0): undefined reference to `fill_error'
          /usr/bin/ld: encode_video.c:(.text.alloc_frame_buffer_hw+0xe9): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o): in function `fill_bgra':
          encode_video.c:(.text.fill_bgra+0x17b): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/libvideo.a(encode_video.o):encode_video.c:(.text.fill_rgb+0x133): more undefined references to `fill_error' follow
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/liblinux.a(xhelper.o): in function `x11_error_handler':
          xhelper.c:(.text.x11_error_handler+0xa8): undefined reference to `log_debug'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/liblinux.a(xhelper.o): in function `get_property':
          xhelper.c:(.text.get_property+0x126): undefined reference to `fill_error'
          /usr/bin/ld: xhelper.c:(.text.get_property+0x156): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/liblinux.a(xhelper.o): in function `get_window_title':
          xhelper.c:(.text.get_window_title+0x10e): undefined reference to `fill_error'
          /usr/bin/ld: xhelper.c:(.text.get_window_title+0x148): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/liblinux.a(xhelper.o): in function `get_client_list':
          xhelper.c:(.text.get_client_list+0xee): undefined reference to `fill_error'
          /usr/bin/ld: /home/huzf/.cache/yay/weylus/src/Weylus-0.11.4/target/release/build/weylus-a89b375390a43123/out/liblinux.a(xhelper.o):xhelper.c:(.text.create_capturables+0x84): more undefined references to `fill_error' follow
          collect2: error: ld returned 1 exit status

  = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

warning: `weylus` (bin "weylus") generated 1 warning
error: could not compile `weylus` due to previous error; 1 warning emitted
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: weylus

tinywrkb commented on 2021-10-28 23:15 (UTC)

@HMH_13 thanks for replying! Facepalm, I missed the features flag.

HMH_13 commented on 2021-10-28 23:03 (UTC)

@tinywrkb that's what happens by default, but Weylus can be built using the system ffmpeg and libva libraries by passing --features="ffmpeg-system" to cargo. This avoids downloading ffmpeg during the build as this is rather bad practice for packaging things. The reason why ffmpeg is downloaded, built and statically linked by default is to make sure Weylus runs with hardware acceleration even on older systems. However, this is not a problem on Arch Linux and that's why I am using the system ffmpeg library here.

Also thanks for packaging Weylus for Flatpak!