[vlc-devel] Extras/contrib/x264 -- What is "rc"?

Mark Moriarty mfmbusiness at earthlink.net
Thu Sep 13 02:05:21 CEST 2007


Thanks for getting back to me on this.

It looks like the win32 patch file is what's breaking it, the substitutions.

I changed one section to read:
-	ar rc libx264.a $(OBJS) $(OBJASM)
-	ranlib libx264.a
+	ar rc libx264.a $(OBJS) $(OBJASM)
+	ranlib libx264.a
And another section to read:
-	-@ strip -x $@
+	-@ strip -x $@
(to not make substitutions)

The above changes seem to have cleared multiple cases of the form:
make[3]: x: Command not found
make[3]: [common/i386/dct-a.o] Error 127 (ignored)

And the final error:
rc libx264.a common/mc.o common/predict.o common/pixel.o common/macroblock.o
com
mon/frame.o common/dct.o common/cpu.o common/cabac.o ...

Which threw:
make[3]: rc: Command not found
make[3]: *** [libx264.a] Error 127
make[3]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/x264'
make[2]: *** [.x264] Error 2


It lookw like I'm now getting clean calls to nasm, and the ar rc is doing
something, it now errors out on an undefined reference:

nasm -O2 -f win32 -DPREFIX -Icommon/i386/ -o common/i386/deblock-a.o
common/i386
/deblock-a.asm
ar rc libx264.a 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/m
date.o common/csp.o common/set.o common/quant.o encoder/analyse.o
encoder/me.o e
ncoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o
encoder/
cavlc.o encoder/encoder.o encoder/eval.o common/i386/mc-c.o
common/i386/predict-
c.o common/i386/dct-a.o common/i386/cpu-a.o common/i386/pixel-a.o
common/i386/mc
-a.o common/i386/mc-a2.o common/i386/predict-a.o common/i386/pixel-sse2.o
common
/i386/quant-a.o common/i386/deblock-a.o
ranlib libx264.a
gcc -mno-cygwin -isystem /usr/include/mingw -o x264.exe x264.o matroska.o
muxers
.o libx264.a -L/home/mfm/vlc-trunk/extras/contrib/lib -mno-cygwin
-mno-cygwin -l
pthread -lvfw32 -s
libx264.a(cpu.o):cpu.c:(.text+0x192): undefined reference to
`__imp__pthread_num
_processors_np'
collect2: ld returned 1 exit status
make[3]: *** [x264.exe] Error 1
make[3]: Leaving directory `/home/mfm/vlc-trunk/extras/contrib/src/x264'
make[2]: *** [.x264] Error 2

Any clue on the undefined reference error?

Thanks!




More information about the vlc-devel mailing list