I am trying to compile x264 on arch linux with an AUR script, yet . . .
ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to compile x264 on arch linux with an AUR script, yet . . .
I am trying to compile x264 on arch linux with an AUR script, yet I am running into some trouble. I am trying to get lavf to be supported, but it seems that it won't include "ffms.h".
Here is the log:
Code:
[branden@localhost x264-devel]# cat config.log
x264 configure script
checking whether gcc works... yes
checking whether gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... yes
checking whether yasm supports vpperm xmm0, xmm0, xmm0, xmm0... yes
checking whether gcc supports __asm__("pabsw %xmm0, %xmm0");... yes
checking for pthread.h... yes
checking for cpu_set_t p_aff; return CPU_COUNT(&p_aff); in sched.h... yes
checking for return log2f(2); in math.h... yes
checking for sws_init_context(0,0,0); in libswscale/swscale.h... yes
checking for av_get_pix_fmt_name(0); in libavutil/pixdesc.h... yes
checking for avformat_find_stream_info(0,0); avcodec_open2(0,0,0); in libavformat/avformat.h... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -Wall -I. -std=gnu99 -L. -lavformat -lavcodec -lavutil -lswscale -lm -lpthread -o conftest
conftest.c: In function ‘main’:
conftest.c:2:1: warning: implicit declaration of function ‘avformat_find_stream_info’ [-Wimplicit-function-declaration]
conftest.c:2:1: warning: implicit declaration of function ‘avcodec_open2’ [-Wimplicit-function-declaration]
/tmp/ccAJPgXq.o: In function `main':
conftest.c:(.text+0x14): undefined reference to `avformat_find_stream_info'
conftest.c:(.text+0x2d): undefined reference to `avcodec_open2'
collect2: ld returned 1 exit status
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <libavformat/avformat.h>
int main () { avformat_find_stream_info(0,0); avcodec_open2(0,0,0); return 0; }
--------------------------------------------------
checking for FFMS_DestroyVideoSource(0); in ffms.h... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -Wall -I. -std=gnu99 -lffms2 -lm -lpthread -o conftest
conftest.c:1:18: fatal error: ffms.h: No such file or directory
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <ffms.h>
int main () { FFMS_DestroyVideoSource(0); return 0; }
--------------------------------------------------
checking for FFMS_DestroyVideoSource(0); in ffms.h... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -Wall -I. -std=gnu99 -lffms2 -lstdc++ -L. -lavformat -lavcodec -lavutil -lswscale -lm -lpthread -o conftest
conftest.c:1:18: fatal error: ffms.h: No such file or directory
compilation terminated.
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <ffms.h>
int main () { FFMS_DestroyVideoSource(0); return 0; }
--------------------------------------------------
checking for -lz... yes
checking for gpac/isomedia.h... yes
checking for gf_isom_set_pixel_aspect_ratio(0,0,0,0,0); in gpac/isomedia.h... yes
checking for gf_malloc(1); gf_free(NULL); in gpac/isomedia.h... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -Wall -I. -std=gnu99 -Werror -lgpac_static -lz -lswscale -lavutil -lm -lpthread -o conftest
conftest.c: In function ‘main’:
conftest.c:2:1: error: implicit declaration of function ‘gf_malloc’ [-Werror=implicit-function-declaration]
conftest.c:2:1: error: implicit declaration of function ‘gf_free’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <gpac/isomedia.h>
int main () { gf_malloc(1); gf_free(NULL); return 0; }
--------------------------------------------------
checking for uint32_t test_vec __attribute__ ((vector_size (16))) = {0,1,2,3}; in stdint.h... yes
checking for -fno-tree-vectorize... yes
checking for fseeko(stdin,0,0); in stdio.h... yes
checking for -Wshadow... yes
platform: X86_64
system: LINUX
cli: yes
libx264: internal
shared: no
static: no
asm: yes
interlaced: yes
avs: no
lavf: no
ffms: no
gpac: yes
gpl: yes
thread: posix
filters: resize crop select_every
debug: no
gprof: no
strip: no
PIC: no
visualize: no
bit depth: 8
chroma format: all
My goal of getting lavf support is not complete. It still is not supported. Here is the config.log if someone can tell me what I did wrong, and what I can install.
Code:
[branden@localhost x264]$ cat config.log
x264 configure script
checking whether gcc works... yes
checking whether gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... yes
checking whether yasm supports vfmaddps xmm0, xmm0, xmm0, xmm0... yes
checking whether gcc supports __asm__("pabsw %xmm0, %xmm0");... yes
checking for pthread.h... yes
checking for cpu_set_t p_aff; return CPU_COUNT(&p_aff); in sched.h... yes
checking for return log2f(2); in math.h... yes
checking for sws_init_context(0,0,0); in libswscale/swscale.h... yes
checking for av_get_pix_fmt_name(0); in libavutil/pixdesc.h... yes
checking for avformat_find_stream_info(0,0); avcodec_open2(0,0,0); in libavformat/avformat.h... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -Wall -I. -std=gnu99 -L. -lavformat -lavcodec -lavutil -lswscale -lm -lpthread -o conftest
conftest.c: In function ‘main’:
conftest.c:2:1: warning: implicit declaration of function ‘avformat_find_stream_info’ [-Wimplicit-function-declaration]
conftest.c:2:1: warning: implicit declaration of function ‘avcodec_open2’ [-Wimplicit-function-declaration]
/tmp/ccbJ80ns.o: In function `main':
conftest.c:(.text+0x14): undefined reference to `avformat_find_stream_info'
conftest.c:(.text+0x2d): undefined reference to `avcodec_open2'
collect2: ld returned 1 exit status
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <libavformat/avformat.h>
int main () { avformat_find_stream_info(0,0); avcodec_open2(0,0,0); return 0; }
--------------------------------------------------
checking for FFMS_DestroyVideoSource(0); in ffms.h... yes
checking whether FFMS_VERSION >= ((2 << 24) | (14 << 16) | (0 << 8) | 0) is true... yes
checking for -lz... yes
checking for gpac/isomedia.h... yes
checking for gf_isom_set_pixel_aspect_ratio(0,0,0,0,0); in gpac/isomedia.h... yes
checking for gf_malloc(1); gf_free(NULL); in gpac/isomedia.h... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -Wall -I. -std=gnu99 -Werror -lgpac_static -lz -lffms2 -lz -lavformat -lavcodec -lswscale -lavutil -lswscale -lavutil -lm -lpthread -o conftest
conftest.c: In function ‘main’:
conftest.c:2:1: error: implicit declaration of function ‘gf_malloc’ [-Werror=implicit-function-declaration]
conftest.c:2:1: error: implicit declaration of function ‘gf_free’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <gpac/isomedia.h>
int main () { gf_malloc(1); gf_free(NULL); return 0; }
--------------------------------------------------
checking for uint32_t test_vec __attribute__ ((vector_size (16))) = {0,1,2,3}; in stdint.h... yes
checking for -fno-tree-vectorize... yes
checking for fseeko(stdin,0,0); in stdio.h... yes
checking for -Wshadow... yes
platform: X86_64
system: LINUX
cli: yes
libx264: internal
shared: no
static: no
asm: yes
interlaced: yes
avs: no
lavf: no
ffms: yes
gpac: yes
gpl: yes
thread: posix
filters: resize crop select_every
debug: no
gprof: no
strip: no
PIC: no
visualize: no
bit depth: 8
chroma format: all
The ffmpeg package is using an older version of ffmpeg. Those errors are associated with calls to deprecated functions. You need to install x264-git, then ffmpeg-git, then x264-git again. The second x264-git build should include lavf support.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.