<div dir="ltr">B.H.<div><br></div><div>Hello, all</div><div><br></div><div>I was trying to compile the current libx264 checked out from the git. I'm on CentOS 5.5 64 bit.</div><div><br></div><div>I get the following error:</div>
<div><br></div><div><div>gcc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestre</div><div>am.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_</div>
<div>pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/thread.o libx264.a  -lm -lpthread</div><div>libx264.a(cpu.o): In function `x264_cpu_num_processors':</div><div>cpu.c:(.text+0x21): undefined reference to `CPU_COUNT'</div>
<div>collect2: ld returned 1 exit status</div><div>make: *** [x264] Error 1</div><div><br></div><div><br></div><div>After reverting the following commit make was successful:</div><div><br></div><div><div>commit 44c881766e9fcba80035e8a127bbee851cdb8584</div>
<div>Author: Rafa?l Carr? <<a href="mailto:rafael.carre@gmail.com">rafael.carre@gmail.com</a>></div><div>Date:   Thu Jul 14 18:51:43 2011 -0700</div><div><br></div><div>    Linux x264_cpu_num_processors(): use glibc macros</div>
<div>    The cpu_set_t structure is considered opaque.</div><div>    Also handle sched_getaffinity() error case if "cpusetsize is smaller than the size of the affinity mask used by the kernel."</div></div><div><br>
</div><div><br></div>-- <br><div dir="ltr"><font color="#666666">Moshiach is coming very soon, prepare yourself!</font><div dir="rtl"><font class="Apple-style-span" color="#666666"><br></font></div></div>
</div></div>