Which Khadas SBC do you use?
I am using VIM3 board with “VIM3_Ubuntu-gnome-focal_Linux-4.9_arm64_EMMC_V1.0.9-211217” installed from official khadas docs page.
From this thread: “Is hardware video decoding supported in Linux?” Ubuntu 4.9 should have hardware support.
Please describe your issue below:
I am trying to install FFMPEG with aml to enable hardware decode from this git: “Add AML HW decoders · LongChair/FFmpeg@90735fc · GitHub” but amcodec library was not found.
Has anyone successfully build FFMPEG with this option or have faced similar issue?
Thanks.
Post a console log of your issue below:
Here are the error logs when I ran “./configure --enable-aml”:
gcc -Werror=missing-prototypes -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -c -o /tmp/ffconf.H7EFbEfJ.o /tmp/ffconf.q4FUI3Lw.m
gcc: fatal error: cannot execute 'cc1obj': execvp: No such file or directory
compilation terminated.
check_header_objcc QuartzCore/CoreImage.h
check_objcc
BEGIN /tmp/ffconf.q4FUI3Lw.m
1 #include <QuartzCore/CoreImage.h>
2 int main(void) { return 0; }
END /tmp/ffconf.q4FUI3Lw.m
gcc -Werror=missing-prototypes -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -c -o /tmp/ffconf.H7EFbEfJ.o /tmp/ffconf.q4FUI3Lw.m
gcc: fatal error: cannot execute 'cc1obj': execvp: No such file or directory
compilation terminated.
check_header_objcc QuartzCore/CoreImage.h
check_objcc
BEGIN /tmp/ffconf.q4FUI3Lw.m
1 #include <QuartzCore/CoreImage.h>
2 int main(void) { return 0; }
END /tmp/ffconf.q4FUI3Lw.m
gcc -Werror=missing-prototypes -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -c -o /tmp/ffconf.H7EFbEfJ.o /tmp/ffconf.q4FUI3Lw.m
gcc: fatal error: cannot execute 'cc1obj': execvp: No such file or directory
compilation terminated.
check_lib amcodec/codec.h codec_init -lamcodec
check_header amcodec/codec.h
check_cpp
BEGIN /tmp/ffconf.dbmtKVce.c
1 #include <amcodec/codec.h>
2 int x;
END /tmp/ffconf.dbmtKVce.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -E -o /tmp/ffconf.H7EFbEfJ.o /tmp/ffconf.dbmtKVce.c
/tmp/ffconf.dbmtKVce.c:1:10: fatal error: amcodec/codec.h: No such file or directory
1 | #include <amcodec/codec.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
ERROR : amcodec not found.