[streaming] [videolan-announce] [ANN] Multicat 1.0
Stephen Jolly
stephen.jolly at rd.bbc.co.uk
Tue Mar 16 15:24:23 CET 2010
George,
At 01:01:53 on Sat Mar 6, George Bray <georgebray at gmail.com> wrote:
> Trying to build it on OSX 10.6.2 yields:
>
> geo at geodesk
> :~/LOCAL/ANUTV-Relay/multicat-1.0> make
> cc -Wall -O3 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
> -D_ISOC99_SOURCE -D_BSD_SOURCE -g -c -o multicat.o multicat.c
> cc -Wall -O3 -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
> -D_ISOC99_SOURCE -D_BSD_SOURCE -g -c -o util.o util.c
> util.c: In function ‘wall_Date’:
> util.c:133: warning: implicit declaration of function ‘clock_gettime’
> util.c:133: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
> util.c:133: error: (Each undeclared identifier is reported only once
> util.c:133: error: for each function it appears in.)
> util.c:135: error: ‘CLOCK_REALTIME’ undeclared (first use in this function)
> util.c: In function ‘wall_Sleep’:
> util.c:161: warning: implicit declaration of function ‘clock_nanosleep’
> util.c:161: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function)
> util.c:166: error: ‘CLOCK_REALTIME’ undeclared (first use in this function)
> make: *** [util.o] Error 1
You need to make a couple of modifications to get it to build on OS X. I succeeded with the following:
* Edit util.h and change "#define HAVE_CLOCK_NANOSLEEP" to "#undef HAVE_CLOCK_NANOSLEEP"
* Edit Makefile and comment out the line "LDLIBS += -lrt" (by prepending it with a #)
HTH,
S
More information about the streaming
mailing list