Page 1 of 1

Compilation Issue...

Posted: Tue Feb 23, 2010 12:09 pm
by Vartan
Hello,

I'm trying to compile ZoneMinder 1.2.4 on OS X, a BSD like OS. I've succeeded in finding answer to every error during compilation but for the one I get now.

My command line is now this one :

Code: Select all

./configure --with-mysql=/usr/local/mysql --with-ffmpeg=/usr/local/bin --with-webdir=/Users/MyName/Sites/zoneminder --with-cgidir=/Users/MyName/Sites/zoneminder/cgi --with-webuser=_www --with-webgroup=_www --enable-debug=yes  --with-extralibs="-L/usr/local/mysql/lib"
and the answer is :
configure: error: zm requires Video4Linux to be installed

I didn't find any info about V4L on OS X. I'm quite sure there's a solution but don't know which one and how to.


If this can help here is the detailed compilation report :

Code: Select all

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-libarch option.
    This tells configure where to find architecture specific libraries.
    The default of 'lib' is usually ok but 64 bit machines may require lib64.
    e.g. --with-libarch=lib or --with-libarch=lib64
configure: WARNING: You can call configure with the --enable-crashtrace=<yes> or --disable-crashtrace option.
    This tells configure whether to compile ZoneMinder with crash tracing included. This allows a
    dump of the stack trace when a ZoneMinder binary crashes or is killed by an unexpected signal.
    Although this should work on most systems it does rely on un(or loosely) documented features and
    so should be regarded as experimental. If you experience problems compiling zm_signal.cpp or
    ZoneMinder binaries fail to shut down correctly then you should probably disable this feature.
    e.g. --enable-crashtrace=yes or --disable-crashtrace
configure: WARNING: You can call configure with the --enable-mmap=<yes> or --disable-mmap option.
    This tells configure whether to compile ZoneMinder with mmap support rather than IPC shared
    memory. This is an experimental feature that uses memory mapped into files which all processes
    can share. Memory mapping requires less configuration and is more flexible than shared memory
    but may slow down your system unless the mapped files are configured to reside on a fast or
    RAM based filesystem.
    e.g. --enable-mmap=yes or --disable-mmap
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... rm: conftest.dSYM: is a directory
yes
checking for inline... inline
checking for mode_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for siginfo_t... yes
checking for struct sigcontext... no
checking for struct sigcontext.eip... no
checking for ucontext_t... yes
checking whether gcc needs -traditional... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
rm: conftest.dSYM: is a directory
checking whether lstat dereferences a symlink specified with a trailing slash... no
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... no
checking for pow... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for putenv... yes
checking for select... yes
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strsignal... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for ffmpeg... yes
checking for ffmpeg... /usr/local/bin/ffmpeg
checking for pnmscale... no
checking for pnmscale... no
checking for mysql_init in -lmysqlclient... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for pthread_create in -lpthread... yes
checking for dlsym in -ldl... yes
checking for MD5 in -lgnutls-openssl... no
configure: WARNING: gnutls-openssl.a is required for authenticated streaming - use ZM_SSL_LIB option to select openssl instead
checking for pcre_compile in -lpcre... no
configure: WARNING: libpcre.a may be required for remote/network camera support
checking for av_malloc in -lavutil... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for sws_scale in -lswscale... yes
checking for BZ2_bzCompress in -lbz2... yes
checking for compress in -lz... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/socket.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking linux/videodev.h usability... no
checking linux/videodev.h presence... no
checking for linux/videodev.h... no
configure: error: zm requires Video4Linux to be installed
If someone has an idea, a clue....


Thanks for your help.

Vartan

Posted: Tue Feb 23, 2010 1:01 pm
by mastertheknife
Video4Linux is the Linux's API for capturing video.
ZoneMinder uses this API to capture video.
If there is no way to install V4L or a V4L compatible layer on your OS i'm afraid ZM can't be used without editing ZM's capture code to make it use something else.

Posted: Mon Nov 29, 2010 5:13 am
by MILxDOT
My recent attempts at getting ZM to run natively on Mac OS X are here:

http://www.zoneminder.com/forums/viewtopic.php?t=16801