-
Notifications
You must be signed in to change notification settings - Fork 29
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
Build (client) with spack on CentOS7 #252
Comments
Hi @cessenat By the way, you need another fix to run sanzu on centos 7: As it distributes an old FFmpeg version, you have to use this patch: diff --git a/sanzu/src/video_decoder.rs b/sanzu/src/video_decoder.rs
index b1e1838c..c909b620 100644
--- a/sanzu/src/video_decoder.rs
+++ b/sanzu/src/video_decoder.rs
@@ -33,6 +33,10 @@ pub fn init_video_codec<'a>(
ffmpeg::av_log_set_level(ffmpeg::AV_LOG_FATAL);
}
+ unsafe {
+ ffmpeg::av_register_all();
+ }
+
let decoder: Box<dyn Decoder> = match name {
"null" => Box::new(DecoderNull {
data_rgb: None,
diff --git a/sanzu/src/video_encoder.rs b/sanzu/src/video_encoder.rs
index c4d210b0..d08a8553 100644
--- a/sanzu/src/video_encoder.rs
+++ b/sanzu/src/video_encoder.rs
@@ -611,6 +611,11 @@ pub fn init_video_encoder<'a>(
unsafe {
ffmpeg::av_log_set_level(ffmpeg::AV_LOG_FATAL);
}
+
+ unsafe {
+ ffmpeg::av_register_all();
+ }
+
let encoder: Box<dyn Encoder> = match name {
"null" => Box::new(EncoderNull::new()),
name => { which you can find in this branch: https://github.com/cea-sec/sanzu/tree/ffmpeg_old |
Thanks @serpilliere. I cannot install any OS package so I install everything with spack, including ffmpeg. Probably I do not have the proper packages from my distro, and I failed to find thge equivalent in spack ; I installed llvm@14 but that did not fix the error. I have llvm-private installed, but no clang or clang-dev - I thought it were the same thing.
|
I try to build sanzu for CentOS7 as a simple user with no sudo privilege.
I use a decent gcc compiler (8.4).
I obviously have missed a pre-requisite about "libclang":
it fails as follows:
<<
$ spack install sanzu %gcc ^[email protected]
despite I do have a "/usr/lib64/clang-private/libclangAST.so.7" !
I join the spack package.
package.py.gz
The text was updated successfully, but these errors were encountered: