[x264-devel] I can't complie x264 under Leopard with --enable-shared --enable-pic

alex gao madfxgao at gmail.com
Tue Mar 25 03:12:36 CET 2008


My system is osx 10.5.2, macbook(intel).

My configure:

./configure --enable-shared --enable-pic
Platform:   X86
System:     MACOSX
avis input: no
mp4 output: no
pthread:    yes
gtk:        no
debug:      no
gprof:      no
PIC:        yes
shared:     yes
visualize:  no

When I run make, I meet following error:

yasm -O2 -f macho -DPREFIX -DHAVE_SSE3 -D__PIC__ -Icommon/x86/ -o
common/x86/cabac-a.o common/x86/cabac-a.asm
common/x86/cabac-a.asm:86: undefined symbol `fakegot' (first use)
common/x86/cabac-a.asm:86:  (Each undefined symbol is reported only once.)
make: *** [common/x86/cabac-a.o] Error 1


Then I change my configure to: --enable-shared

./configure --enable-shared
Platform:   X86
System:     MACOSX
avis input: no
mp4 output: no
pthread:    yes
gtk:        no
debug:      no
gprof:      no
PIC:        no
shared:     yes
visualize:  no

and I meet following error:

gcc -shared -o libx264.so.58 common/mc.o common/predict.o
common/pixel.o common/macroblock.o common/frame.o common/dct.o
common/cpu.o common/cabac.o common/common.o common/mdate.o
common/set.o common/quant.o encoder/analyse.o encoder/me.o
encoder/ratecontrol.o encoder/set.o encoder/macroblock.o
encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/eval.o
common/x86/mc-c.o common/x86/predict-c.o common/x86/cabac-a.o
common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc-a.o
common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o
common/x86/quant-a.o common/x86/sad-a.o common/x86/cpu-32.o
common/x86/dct-32.o common/x86/pixel-32.o -Wl,-soname,libx264.so.58
-lm -lmx -lpthread -s
ld64: warning: option -s is obsolete and being ignored
ld: unknown option: -soname
collect2: ld returned 1 exit status
make: *** [libx264.so.58] Error 1


More information about the x264-devel mailing list