Closed Janhouse closed 4 years ago
Looks like the cmake
build of vendored libcec
fails... libcec installed in your system should not play a role as far as I know
Just to double-confirm... is this one failing for you?
$ git clone https://github.com/ssalonen/cec-rs.git
...
$ cd cec-rs
$ cargo build
....
$ find target -wholename '*/libcec/env.h' -exec cat {} \;|grep LIB_INFO master
#define LIB_INFO ("git revision: v2.0.1+1-8a2d0be, compiled on Thu 3 Sep 05:48:04 UTC 2020 by RETRACTED@RETRACTED.localdomain on Linux 5.8.4-200.fc32.x86_64 (x86_64), features: P8_USB, DRM, P8_detect")
$ git --version
$ cargo --version
Can you please provide the output of the above?
It works when checking out cec-rs from git and running cargo build
.
I guess the grep LIB_INFO master
part should not have master
in it since it would break it:
grep: master: No such file or directory
find: ‘cat’ terminated by signal 13
But here is the LIB_INFO line:
target/debug/build/libcec-sys-b1cbd7e697ae9d37/out/vendor/src/libcec/env.h:#define LIB_INFO ("git revision: v2.0.1+1-8a2d0be, compiled on Thu Sep 3 06:24:09 AM UTC 2020 by janhouse@media on Linux 5.8.5-arch1-1 (x86_64), features: P8_USB, DRM, P8_detect, randr")
Git version: git version 2.28.0
Cargo version: cargo 1.47.0-nightly (aa6872140 2020-07-23)
Then I tried building your cec-alsa-sync
and it works. I moved my code to that codebase and it works. I don't know why. Cargo file is dead simple and uses the same versions. :exploding_head:
In any case, this can be closed. Thank you!
Yep you are right, the grep command was a bit off but you got it right.
Good to hear it's working now... Odd things :)
I'm trying to use cec-rs = '2.0.1' but libcec-sys build fails.
I'm on Archlinux and libcec from git builds fine so I'm not sure if the problem is with libcec-sys build file or something else.