X264 Compilation Error on Mac OS X

I am trying to compile and install x264 H.264 / AVC encoder. I have installed gcc. But when I start, I get the error "Without working with the C compiler":

./configure --enable-shared --enable-static

What can I do?

The configuration log said:

/bin/gcc conftest.c  -Wall -I. -I$(SRCPATH) -falign-loops=16 -mdynamic-no-pic -o conftest
clang: error: unknown argument: '-falign-loops=16' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
+4
source share
2 answers

I ran into the same error and found a simple solution here: http://www.xin.at/x264/x264-guide-macosx-en.htm

, GCC configure script, LLVM + CLANG . configure :

Darwin *) SYS = "MacOSX" CFLAGS = "$ CFLAGS -falign-loops = 16"

, -falign-loops = 16:

Darwin *) SYS = "MacOSX" CFLAGS = "$ CFLAGS"

, libx264 :)

+3

configure script -falign-loops=16, clang ( gcc) , .

() GCC ( , , ), , configure script , , -falign-loops=16 GCC. , configure script, . , .

0

Source: https://habr.com/ru/post/1533656/


All Articles