[x264-devel] Compiling on Centos 7

brian461 at comcast.net brian461 at comcast.net
Wed Oct 7 20:21:18 CEST 2015


I have no issues on centos 6 but my provider only installs Centos 7 and I get the following error when running make to build it. 

gcc -Wno-maybe-uninitialized -Wshadow -O1 -g -m64 -Wall -I. -I. -std=gnu99 -mpreferred-stack-boundary=5 -fno-tree-vectorize -c -o x264.o x264.c 
x264.c: In function ‘print_csp_names’: 
x264.c:445:15: error: variable ‘i’ has initializer but incomplete type 
for( enum PixelFormat i = AV_PIX_FMT_NONE+1; i < AV_PIX_FMT_NB; i++ ) 
^ 
x264.c:445:27: error: storage size of ‘i’ isn’t known 
for( enum PixelFormat i = AV_PIX_FMT_NONE+1; i < AV_PIX_FMT_NB; i++ ) 
^ 
x264.c:445:5: error: ‘enum PixelFormat’ declared in ‘for’ loop initial declaration 
for( enum PixelFormat i = AV_PIX_FMT_NONE+1; i < AV_PIX_FMT_NB; i++ ) 
^ 
x264.c:445:27: warning: unused variable ‘i’ [-Wunused-variable] 
for( enum PixelFormat i = AV_PIX_FMT_NONE+1; i < AV_PIX_FMT_NB; i++ ) 
^ 
make: *** [x264.o] Error 1 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20151007/4deeacf2/attachment.html>


More information about the x264-devel mailing list