[x264-devel] Problems with compiling on CentOS 5.5

Mordechay Kaganer mkaganer at gmail.com
Wed Aug 3 23:12:55 CEST 2011


B.H.

Hello, all

I was trying to compile the current libx264 checked out from the git. I'm on
CentOS 5.5 64 bit.

I get the following error:

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
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_
pts.o filters/video/select_every.o filters/video/crop.o
filters/video/depth.o input/thread.o libx264.a  -lm -lpthread
libx264.a(cpu.o): In function `x264_cpu_num_processors':
cpu.c:(.text+0x21): undefined reference to `CPU_COUNT'
collect2: ld returned 1 exit status
make: *** [x264] Error 1


After reverting the following commit make was successful:

commit 44c881766e9fcba80035e8a127bbee851cdb8584
Author: Rafa?l Carr? <rafael.carre at gmail.com>
Date:   Thu Jul 14 18:51:43 2011 -0700

    Linux x264_cpu_num_processors(): use glibc macros
    The cpu_set_t structure is considered opaque.
    Also handle sched_getaffinity() error case if "cpusetsize is smaller
than the size of the affinity mask used by the kernel."


-- 
Moshiach is coming very soon, prepare yourself!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20110804/5f67cb1c/attachment.html>


More information about the x264-devel mailing list