Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg headers
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg headers
I am having trouble compiling Zoneminder 1.26.4 from source using the cmake method. It seems that the ffmpeg headers are not being found automatically by the cmake process. My system runs:
Linux pollux.gutierrez.com 3.11.3-201.fc19.i686.PAE #1 SMP Thu Oct 3 01:11:40 UTC 2013 i686 i686 i386 GNU/Linux
The ffmpeg version is:
ffmpeg-libs-1.2.3-1.fc19.i686
ffmpeg-1.2.3-1.fc19.i686
ffmpeg-devel-1.2.3-1.fc19.i686
The ffmpeg headers are installed in /usr/include/ffmpeg
The libraries are in /usr/lib
I am attempting to upgrade a Zoneminder 1.25.0 compiled from source into 1.26.4. I have done the following steps:
./cmakecacheimport.sh /usr/local/etc/zm.conf
cat zm_conf.cmake
# Generated by cmakecacheimport.sh
set(CMAKE_INSTALL_FULL_BINDIR "/usr/local/bin" CACHE PATH "Imported by cmakecacheimport.sh" FORCE)
set(ZM_WEBDIR "/var/www/docs/zm" CACHE PATH "Imported by cmakecacheimport.sh" FORCE)
set(ZM_CGIDIR "/var/www/cgi-bin" CACHE PATH "Imported by cmakecacheimport.sh" FORCE)
set(ZM_WEB_USER "apache" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_WEB_GROUP "apache" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_HOST "localhost" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_NAME "zm" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_USER "XXXXXXX" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_PASS "XXXXXXX" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
cmake -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - not found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - not found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - not found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - not found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - not found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - not found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:
/home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg.h:65:45: error: missing binary operator before token "("
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 4, 0)
^
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:43:7: error: use of enum ‘PixelFormat’ without previous declaration
enum PixelFormat pf;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
AVOutputFormat *of;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
AVFormatContext *ofc;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
AVStream *ost;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
AVFrame *opicture;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
AVFrame *tmp_opicture;
^
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2
I am new to using cmake, Does anybody know the proper steps to get the ffmpeg headers recognized and found?
I tried doing
cmake -C zm_conf.cmake -DCMAKE_INCLUDE_PATH="/usr/include/ffmpeg" .
but that did not seem to work:
loading initial cache file zm_conf.cmake
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_INCLUDE_PATH
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
Please help!
Linux pollux.gutierrez.com 3.11.3-201.fc19.i686.PAE #1 SMP Thu Oct 3 01:11:40 UTC 2013 i686 i686 i386 GNU/Linux
The ffmpeg version is:
ffmpeg-libs-1.2.3-1.fc19.i686
ffmpeg-1.2.3-1.fc19.i686
ffmpeg-devel-1.2.3-1.fc19.i686
The ffmpeg headers are installed in /usr/include/ffmpeg
The libraries are in /usr/lib
I am attempting to upgrade a Zoneminder 1.25.0 compiled from source into 1.26.4. I have done the following steps:
./cmakecacheimport.sh /usr/local/etc/zm.conf
cat zm_conf.cmake
# Generated by cmakecacheimport.sh
set(CMAKE_INSTALL_FULL_BINDIR "/usr/local/bin" CACHE PATH "Imported by cmakecacheimport.sh" FORCE)
set(ZM_WEBDIR "/var/www/docs/zm" CACHE PATH "Imported by cmakecacheimport.sh" FORCE)
set(ZM_CGIDIR "/var/www/cgi-bin" CACHE PATH "Imported by cmakecacheimport.sh" FORCE)
set(ZM_WEB_USER "apache" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_WEB_GROUP "apache" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_HOST "localhost" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_NAME "zm" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_USER "XXXXXXX" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
set(ZM_DB_PASS "XXXXXXX" CACHE STRING "Imported by cmakecacheimport.sh" FORCE)
cmake -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- The C compiler identification is GNU 4.8.1
-- The CXX compiler identification is GNU 4.8.1
-- Check for working C compiler: /usr/lib/ccache/cc
-- Check for working C compiler: /usr/lib/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - not found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - not found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - not found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - not found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - not found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - not found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:
/home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg.h:65:45: error: missing binary operator before token "("
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(53, 4, 0)
^
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:43:7: error: use of enum ‘PixelFormat’ without previous declaration
enum PixelFormat pf;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
AVOutputFormat *of;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
AVFormatContext *ofc;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
AVStream *ost;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
AVFrame *opicture;
^
/home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
AVFrame *tmp_opicture;
^
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2
I am new to using cmake, Does anybody know the proper steps to get the ffmpeg headers recognized and found?
I tried doing
cmake -C zm_conf.cmake -DCMAKE_INCLUDE_PATH="/usr/include/ffmpeg" .
but that did not seem to work:
loading initial cache file zm_conf.cmake
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_INCLUDE_PATH
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
Please help!
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
Hi,
The CMAKE_INCLUDE_PATH is an environment variable, not a configuration option. This should work:
The 2nd export is required for the check to work. This will be fixed in the next ZM version.
The CMAKE_INCLUDE_PATH is an environment variable, not a configuration option. This should work:
Code: Select all
export CMAKE_INCLUDE_PATH="/usr/include/ffmpeg"
export CMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg"
Kfir Itzhak.
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
Thanks...
It is still not "finding" the ffmpeg stuff... I did:
[carlos@pollux ZoneMinder-1.26.4]$ rm CMakeCache.txt
[carlos@pollux ZoneMinder-1.26.4]$ export CMAKE_INCLUDE_PATH="/usr/include/ffmpeg"
[carlos@pollux ZoneMinder-1.26.4]$ export CMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg"
[carlos@pollux ZoneMinder-1.26.4]$ cmake -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - not found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - not found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - not found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - not found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - not found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - not found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
I am using a regular bash shell in Fedora. Could there be a bug in cmake? Or perhaps the header file somehow is failing to compile and thus cmake "fails" to find it?
Tonight I am going to try removing and then re-installing the ffmpeg RPM to see if that has any effect...
It is still not "finding" the ffmpeg stuff... I did:
[carlos@pollux ZoneMinder-1.26.4]$ rm CMakeCache.txt
[carlos@pollux ZoneMinder-1.26.4]$ export CMAKE_INCLUDE_PATH="/usr/include/ffmpeg"
[carlos@pollux ZoneMinder-1.26.4]$ export CMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg"
[carlos@pollux ZoneMinder-1.26.4]$ cmake -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - not found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - not found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - not found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - not found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - not found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - not found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
I am using a regular bash shell in Fedora. Could there be a bug in cmake? Or perhaps the header file somehow is failing to compile and thus cmake "fails" to find it?
Tonight I am going to try removing and then re-installing the ffmpeg RPM to see if that has any effect...
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
It should have worked. Are you sure the path is like this one?
The autotools way still works in 1.26.4, you may want to try that instead.
CMake found the ffmpeg libraries, but not the header files. CMakeFiles/CMakeError.log should contain some information why it failed.
Code: Select all
/usr/include/ffmpeg/libavcodec/avcodec.h
CMake found the ffmpeg libraries, but not the header files. CMakeFiles/CMakeError.log should contain some information why it failed.
Kfir Itzhak.
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
My bad, the 2nd option (CMAKE_REQUIRED_INCLUDES) is not an environment variable. Try using it as a cmake option instead (-DCMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg")
Kfir Itzhak.
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
I apologize that I haven't yet been able to try all the above... I suspect it will now be tomorrow morning that I'll get some time to continue working with 1.26.4
Thanks!
-Carlos
Thanks!
-Carlos
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
(Partial) Success!
cmake -DCMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg" -C zm_conf.cmake .
got all the ffmpeg modules found!
Compilation however, still fails with:
[carlos@pollux ZoneMinder-1.26.4]$ make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:
/home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg.h:29:30: fatal error: libavutil/avutil.h: No such file or directory
#include <libavutil/avutil.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2
Any idea on why it would finally find the include files, but fail to actually include it upon real compilation?
It's late... I'll continue in the day tomorrow... thanks!
cmake -DCMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg" -C zm_conf.cmake .
got all the ffmpeg modules found!
Compilation however, still fails with:
[carlos@pollux ZoneMinder-1.26.4]$ make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:
/home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg.h:29:30: fatal error: libavutil/avutil.h: No such file or directory
#include <libavutil/avutil.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2
Any idea on why it would finally find the include files, but fail to actually include it upon real compilation?
It's late... I'll continue in the day tomorrow... thanks!
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
This is because CMAKE_REQUIRED_INCLUDES only affects the check, but you still need to use CMAKE_INCLUDE_PATH (try it as env and also as option) to add it to gcc's include path. This should work.
This stuff is already fixed, using CMAKE_INCLUDE_PATH automatically sets CMAKE_REQUIRED_INCLUDES. Sadly it wasn't ready in time for 1.26.4 so you will have to set both variables right now.
This stuff is already fixed, using CMAKE_INCLUDE_PATH automatically sets CMAKE_REQUIRED_INCLUDES. Sadly it wasn't ready in time for 1.26.4 so you will have to set both variables right now.
Kfir Itzhak.
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
I tried the following invocation but it did not compile:
cmake -DCMAKE_INCLUDE_PATH="/usr/include/ffmpeg" -DCMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg" -C zm_conf.cmake .
For the record, this are all the steps I did:
[carlos@pollux ZoneMinder-1.26.4]$ rm CMakeCache.txt
[carlos@pollux ZoneMinder-1.26.4]$ export CMAKE_INCLUDE_PATH="/usr/include/ffmpeg"
[carlos@pollux ZoneMinder-1.26.4]$ cmake -DCMAKE_INCLUDE_PATH="/usr/include/ffmpeg" -DCMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg" -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
[carlos@pollux ZoneMinder-1.26.4]$ make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:
/home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg.h:29:30: fatal error: libavutil/avutil.h: No such file or directory
#include <libavutil/avutil.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2
[carlos@pollux ZoneMinder-1.26.4]$ locate avutil.h
/usr/include/ffmpeg/avutil.h
/usr/include/ffmpeg/libavutil/avutil.h
[carlos@pollux ZoneMinder-1.26.4]$ ll /usr/include/ffmpeg/avutil.h
lrwxrwxrwx 1 root root 18 Jul 1 2012 /usr/include/ffmpeg/avutil.h -> libavutil/avutil.h
[carlos@pollux ZoneMinder-1.26.4]$ ll /usr/include/ffmpeg/libavutil/avutil.h
-rw-r--r-- 1 root root 5466 Sep 30 18:28 /usr/include/ffmpeg/libavutil/avutil.h
At this point I should probably just wait for 1.26.5?? Thanks!
cmake -DCMAKE_INCLUDE_PATH="/usr/include/ffmpeg" -DCMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg" -C zm_conf.cmake .
For the record, this are all the steps I did:
[carlos@pollux ZoneMinder-1.26.4]$ rm CMakeCache.txt
[carlos@pollux ZoneMinder-1.26.4]$ export CMAKE_INCLUDE_PATH="/usr/include/ffmpeg"
[carlos@pollux ZoneMinder-1.26.4]$ cmake -DCMAKE_INCLUDE_PATH="/usr/include/ffmpeg" -DCMAKE_REQUIRED_INCLUDES="/usr/include/ffmpeg" -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
[carlos@pollux ZoneMinder-1.26.4]$ make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_mpeg.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_event.cpp:34:
/home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg.h:29:30: fatal error: libavutil/avutil.h: No such file or directory
#include <libavutil/avutil.h>
^
compilation terminated.
make[2]: *** [src/CMakeFiles/zm.dir/zm_event.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/zm.dir/all] Error 2
make: *** [all] Error 2
[carlos@pollux ZoneMinder-1.26.4]$ locate avutil.h
/usr/include/ffmpeg/avutil.h
/usr/include/ffmpeg/libavutil/avutil.h
[carlos@pollux ZoneMinder-1.26.4]$ ll /usr/include/ffmpeg/avutil.h
lrwxrwxrwx 1 root root 18 Jul 1 2012 /usr/include/ffmpeg/avutil.h -> libavutil/avutil.h
[carlos@pollux ZoneMinder-1.26.4]$ ll /usr/include/ffmpeg/libavutil/avutil.h
-rw-r--r-- 1 root root 5466 Sep 30 18:28 /usr/include/ffmpeg/libavutil/avutil.h
At this point I should probably just wait for 1.26.5?? Thanks!
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
Ah, I see you are using one of those silly versions of ffmpeg where the libraries are tucked under /usr/include/ffmpeg.
Rather than try to get the zoneminder to see the libraries under ffmpeg during build time, I just symlink the libraries into /usr/include and curse the ffmpeg developers for coming up with the idea in the first place:
Once you make these changes, then you can compile with the default: cmake .
For reference, I'm using ffmpeg from the rpmfusion repo for Fedora 19.
BTW, here are some resources to help you get a working zoneminder on f19:
RPM & SRPM: http://www.zoneminder.com/forums/viewto ... =9&t=21400
I will build a 1.26.4 rpm shortly. Feel free to do it yourself if you are up for it.
RPM specfile & auxillary files are now part of the source tree: https://github.com/ZoneMinder/ZoneMinde ... ros/fedora
Rather than try to get the zoneminder to see the libraries under ffmpeg during build time, I just symlink the libraries into /usr/include and curse the ffmpeg developers for coming up with the idea in the first place:
Code: Select all
lrwxrwxrwx. 1 root root 30 Sep 25 18:43 libavcodec -> /usr/include/ffmpeg/libavcodec
lrwxrwxrwx. 1 root root 31 Sep 25 18:44 libavdevice -> /usr/include/ffmpeg/libavdevice
lrwxrwxrwx. 1 root root 31 Sep 25 18:44 libavfilter -> /usr/include/ffmpeg/libavfilter
lrwxrwxrwx. 1 root root 31 Sep 25 18:44 libavformat -> /usr/include/ffmpeg/libavformat
lrwxrwxrwx. 1 root root 29 Sep 25 18:44 libavutil -> /usr/include/ffmpeg/libavutil
lrwxrwxrwx. 1 root root 31 Sep 25 18:44 libpostproc -> /usr/include/ffmpeg/libpostproc
lrwxrwxrwx. 1 root root 33 Sep 25 18:44 libswresample -> /usr/include/ffmpeg/libswresample
lrwxrwxrwx. 1 root root 30 Sep 25 18:44 libswscale -> /usr/include/ffmpeg/libswscale
For reference, I'm using ffmpeg from the rpmfusion repo for Fedora 19.
BTW, here are some resources to help you get a working zoneminder on f19:
RPM & SRPM: http://www.zoneminder.com/forums/viewto ... =9&t=21400
I will build a 1.26.4 rpm shortly. Feel free to do it yourself if you are up for it.
RPM specfile & auxillary files are now part of the source tree: https://github.com/ZoneMinder/ZoneMinde ... ros/fedora
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
SUCCESS!!
Thanks, knnniggett ... the symlinks solve the problem!! why did I not think of doing that before?
I did:
[~] root@pollux(pts/1)
[2:01pm]# cd /usr/include
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavutil libavutil
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavcodec libavcodec
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavfilter libavfilter
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavformat libavformat
[/usr/include] root@pollux(pts/1)
[2:02pm]# ln -s /usr/include/ffmpeg/libpostproc libpostproc
[/usr/include] root@pollux(pts/1)
[2:02pm]# ln -s /usr/include/ffmpeg/libswresample libswresample
[/usr/include] root@pollux(pts/1)
[2:02pm]# ln -s /usr/include/ffmpeg/libswscale libswscale
[/usr/include] root@pollux(pts/1)
[2:13pm]# ln -s /usr/include/ffmpeg/libavdevice libavdevice
and then for completeness, the rest of the process:
[carlos@pollux ZoneMinder-1.26.4]$ rm CMakeCache.txt
[carlos@pollux ZoneMinder-1.26.4]$ cmake -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
[carlos@pollux ZoneMinder-1.26.4]$ make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
[ 20%] Building CXX object src/CMakeFiles/zm.dir/zm_exception.cpp.o
[ 22%] Building CXX object src/CMakeFiles/zm.dir/zm_file_camera.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_file_camera.h:24:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_file_camera.cpp:35:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 24%] Building CXX object src/CMakeFiles/zm.dir/zm_ffmpeg_camera.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg_camera.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg_camera.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 26%] Building CXX object src/CMakeFiles/zm.dir/zm_image.cpp.o
/home/carlos/ZoneMinder-1.26.4/src/zm_image.cpp: In member function ‘bool Image::ReadRaw(const char*)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_image.cpp:597:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( statbuf.st_size != size )
^
[ 28%] Building CXX object src/CMakeFiles/zm.dir/zm_jpeg.cpp.o
[ 30%] Building CXX object src/CMakeFiles/zm.dir/zm_local_camera.cpp.o
[ 32%] Building CXX object src/CMakeFiles/zm.dir/zm_monitor.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_http.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp:35:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp: In member function ‘void Monitor::ReloadLinkedMonitors(const char*)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp:1740:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (dest_ptr-link_id_str) < (unsigned int)(sizeof(link_id_str)-1) )
^
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp: In member function ‘void Monitor::TimestampImage(Image*, const timeval*) const’:
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp:2803:80: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ( *s_ptr && ((d_ptr-label_text) < (unsigned int)sizeof(label_text)) )
^
[ 33%] Building CXX object src/CMakeFiles/zm.dir/zm_ffmpeg.cpp.o
[ 35%] Building CXX object src/CMakeFiles/zm.dir/zm_mpeg.cpp.o
[ 37%] Building CXX object src/CMakeFiles/zm.dir/zm_poly.cpp.o
[ 39%] Building CXX object src/CMakeFiles/zm.dir/zm_regexp.cpp.o
[ 41%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera.cpp.o
[ 43%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera_http.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_http.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_http.cpp:20:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 45%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera_rtsp.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_rtsp.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_rtsp.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 47%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp.cpp.o
[ 49%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtsp.h:27,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_ctrl.cpp:27:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 50%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_data.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_data.h:24:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_data.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 52%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_source.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.cpp:20:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 54%] Building CXX object src/CMakeFiles/zm.dir/zm_rtsp.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtsp.h:27,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtsp.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 56%] Building CXX object src/CMakeFiles/zm.dir/zm_sdp.cpp.o
[ 58%] Building CXX object src/CMakeFiles/zm.dir/zm_signal.cpp.o
[ 60%] Building CXX object src/CMakeFiles/zm.dir/zm_stream.cpp.o
[ 62%] Building CXX object src/CMakeFiles/zm.dir/zm_thread.cpp.o
[ 64%] Building CXX object src/CMakeFiles/zm.dir/zm_time.cpp.o
[ 66%] Building CXX object src/CMakeFiles/zm.dir/zm_timer.cpp.o
[ 67%] Building CXX object src/CMakeFiles/zm.dir/zm_user.cpp.o
[ 69%] Building CXX object src/CMakeFiles/zm.dir/zm_utils.cpp.o
[ 71%] Building CXX object src/CMakeFiles/zm.dir/zm_zone.cpp.o
Linking CXX static library libzm.a
[ 71%] Built target zm
Scanning dependencies of target nph-zms
[ 73%] Building CXX object src/CMakeFiles/nph-zms.dir/zms.cpp.o
Linking CXX executable nph-zms
[ 73%] Built target nph-zms
Scanning dependencies of target zma
[ 75%] Building CXX object src/CMakeFiles/zma.dir/zma.cpp.o
Linking CXX executable zma
[ 75%] Built target zma
Scanning dependencies of target zmc
[ 77%] Building CXX object src/CMakeFiles/zmc.dir/zmc.cpp.o
Linking CXX executable zmc
[ 77%] Built target zmc
Scanning dependencies of target zmf
[ 79%] Building CXX object src/CMakeFiles/zmf.dir/zmf.cpp.o
Linking CXX executable zmf
[ 79%] Built target zmf
Scanning dependencies of target zmfix
[ 81%] Building CXX object src/CMakeFiles/zmfix.dir/zmfix.cpp.o
[ 83%] Building CXX object src/CMakeFiles/zmfix.dir/zm_config.cpp.o
[ 84%] Building CXX object src/CMakeFiles/zmfix.dir/zm_regexp.cpp.o
[ 86%] Building CXX object src/CMakeFiles/zmfix.dir/zm_logger.cpp.o
[ 88%] Building CXX object src/CMakeFiles/zmfix.dir/zm_utils.cpp.o
[ 90%] Building CXX object src/CMakeFiles/zmfix.dir/zm_db.cpp.o
[ 92%] Building CXX object src/CMakeFiles/zmfix.dir/zm.cpp.o
Linking CXX executable zmfix
[ 92%] Built target zmfix
Scanning dependencies of target zms
[ 94%] Building CXX object src/CMakeFiles/zms.dir/zms.cpp.o
Linking CXX executable zms
[ 94%] Built target zms
Scanning dependencies of target zmstreamer
[ 96%] Building CXX object src/CMakeFiles/zmstreamer.dir/zmstreamer.cpp.o
Linking CXX executable zmstreamer
[ 96%] Built target zmstreamer
Scanning dependencies of target zmu
[ 98%] Building CXX object src/CMakeFiles/zmu.dir/zmu.cpp.o
Linking CXX executable zmu
[ 98%] Built target zmu
[100%] Building ZoneMinder perl modules
Writing MakefilePerl for ZoneMinder
Writing MYMETA.yml and MYMETA.json
Skip blib/lib/ZoneMinder/Trigger/Connection.pm (unchanged)
Skip blib/lib/ZoneMinder.pm (unchanged)
Skip blib/lib/ZoneMinder/Memory/Mapped.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel.pm (unchanged)
Skip blib/lib/ZoneMinder/Memory.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/LoftekSentinel.pm (unchanged)
Skip blib/lib/ZoneMinder/ConfigData.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Inet.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Connection/Example.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Spawning.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/FI9821W_Y2k.pm (unchanged)
Skip blib/lib/ZoneMinder/Control.pm (unchanged)
Skip blib/lib/ZoneMinder/General.pm (unchanged)
Skip blib/lib/ZoneMinder/ConfigAdmin.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/SkyIPCam7xx.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/Ncs370.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/FI8608W_Y2k.pm (unchanged)
Skip blib/lib/ZoneMinder/Memory/Shared.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Serial.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/FI8620_Y2k.pm (unchanged)
Skip blib/lib/ZoneMinder/Config.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/mjpgStreamer.pm (unchanged)
Skip blib/lib/ZoneMinder/Base.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/PanasonicIP.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Unix.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/AxisV2.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/File.pm (unchanged)
Skip blib/lib/ZoneMinder/Database.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/Visca.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/PelcoD.pm (unchanged)
Skip blib/lib/ZoneMinder/Logger.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Handle.pm (unchanged)
[100%] Built target zmperlmodules
Everything compiles OK with just the few warnings above... I have a working/running 1.25.0 system so I'll attempt the 'make install' and the zmupdate.pl to 1.26.4 over the weekend...
Thanks!
Thanks, knnniggett ... the symlinks solve the problem!! why did I not think of doing that before?
I did:
[~] root@pollux(pts/1)
[2:01pm]# cd /usr/include
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavutil libavutil
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavcodec libavcodec
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavfilter libavfilter
[/usr/include] root@pollux(pts/1)
[2:01pm]# ln -s /usr/include/ffmpeg/libavformat libavformat
[/usr/include] root@pollux(pts/1)
[2:02pm]# ln -s /usr/include/ffmpeg/libpostproc libpostproc
[/usr/include] root@pollux(pts/1)
[2:02pm]# ln -s /usr/include/ffmpeg/libswresample libswresample
[/usr/include] root@pollux(pts/1)
[2:02pm]# ln -s /usr/include/ffmpeg/libswscale libswscale
[/usr/include] root@pollux(pts/1)
[2:13pm]# ln -s /usr/include/ffmpeg/libavdevice libavdevice
and then for completeness, the rest of the process:
[carlos@pollux ZoneMinder-1.26.4]$ rm CMakeCache.txt
[carlos@pollux ZoneMinder-1.26.4]$ cmake -C zm_conf.cmake .
loading initial cache file zm_conf.cmake
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - not found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for ucontext.h
-- Looking for ucontext.h - found
-- Looking for sys/sendfile.h
-- Looking for sys/sendfile.h - found
-- Looking for sys/syscall.h
-- Looking for sys/syscall.h - found
-- Looking for syscall
-- Looking for syscall - found
-- Looking for sendfile
-- Looking for sendfile - found
-- Looking for backtrace
-- Looking for backtrace - found
-- Looking for backtrace_symbols
-- Looking for backtrace_symbols - found
-- Looking for posix_memalign
-- Looking for posix_memalign - found
-- Checking prototype round for HAVE_DECL_ROUND - True
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of siginfo_t
-- Check size of siginfo_t - done
-- Check size of ucontext_t
-- Check size of ucontext_t - done
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Looking for zlib.h
-- Looking for zlib.h - found
-- Found JPEG: /usr/lib/libjpeg.so
-- Looking for include files stdio.h, jpeglib.h
-- Looking for include files stdio.h, jpeglib.h - found
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for openssl/md5.h
-- Looking for openssl/md5.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pcre.h
-- Looking for pcre.h - found
-- Looking for gcrypt.h
-- Looking for gcrypt.h - found
-- Looking for gnutls/openssl.h
-- Looking for gnutls/openssl.h - not found
-- Looking for gnutls/gnutls.h
-- Looking for gnutls/gnutls.h - found
-- Looking for mysql/mysql.h
-- Looking for mysql/mysql.h - found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for libavcodec/avcodec.h
-- Looking for libavcodec/avcodec.h - found
-- Looking for libavdevice/avdevice.h
-- Looking for libavdevice/avdevice.h - found
-- Looking for libavutil/avutil.h
-- Looking for libavutil/avutil.h - found
-- Looking for libavutil/mathematics.h
-- Looking for libavutil/mathematics.h - found
-- Looking for libswscale/swscale.h
-- Looking for libswscale/swscale.h - found
-- Checking prototype MD5 for HAVE_MD5_OPENSSL - True
-- Checking prototype gnutls_fingerprint for HAVE_DECL_GNUTLS_FINGERPRINT - True
-- Found Perl: /usr/local/bin/perl (found version "5.16.3")
-- Checking for perl module Sys::Syslog
-- Checking for perl module Sys::Syslog - found at /usr/lib/perl5/vendor_perl/Sys/Syslog.pm
-- Checking for perl module DBI
-- Checking for perl module DBI - found at /usr/lib/perl5/vendor_perl/DBI.pm
-- Checking for perl module DBD::mysql
-- Checking for perl module DBD::mysql - found at /usr/lib/perl5/vendor_perl/DBD/mysql.pm
-- Checking for perl module Getopt::Long
-- Checking for perl module Getopt::Long - found at /usr/share/perl5/Getopt/Long.pm
-- Checking for perl module Time::HiRes
-- Checking for perl module Time::HiRes - found at /usr/lib/perl5/Time/HiRes.pm
-- Checking for perl module Date::Manip
-- Checking for perl module Date::Manip - found at /usr/share/perl5/vendor_perl/Date/Manip.pm
-- Checking for perl module LWP::UserAgent
-- Checking for perl module LWP::UserAgent - found at /usr/share/perl5/LWP/UserAgent.pm
-- Checking for perl module ExtUtils::MakeMaker
-- Checking for perl module ExtUtils::MakeMaker - found at /usr/share/perl5/vendor_perl/ExtUtils/MakeMaker.pm
-- Checking for perl module Sys::Mmap
-- Checking for perl module Sys::Mmap - found at /usr/lib/perl5/vendor_perl/Sys/Mmap.pm
-- Found PerlModules: TRUE
-- Using web user: apache
-- Using web group: apache
-- Using mootools core file: mootools-core-1.3.2-yc.js
-- Using mootools more file: mootools-more-1.3.2.1-yc.js
-- Running ZoneMinder configuration generator
Generating 'src/zm_config_defines.h'
Updating 'db/zm_create.sql'
-- ZoneMinder configuration generator completed successfully
-- Configuring done
-- Generating done
-- Build files have been written to: /home/carlos/ZoneMinder-1.26.4
[carlos@pollux ZoneMinder-1.26.4]$ make
Scanning dependencies of target zm
[ 1%] Building CXX object src/CMakeFiles/zm.dir/zm_box.cpp.o
[ 3%] Building CXX object src/CMakeFiles/zm.dir/zm_buffer.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_buffer.cpp:23:0:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 5%] Building CXX object src/CMakeFiles/zm.dir/zm_camera.cpp.o
[ 7%] Building CXX object src/CMakeFiles/zm.dir/zm_comms.cpp.o
[ 9%] Building CXX object src/CMakeFiles/zm.dir/zm_config.cpp.o
[ 11%] Building CXX object src/CMakeFiles/zm.dir/zm_coord.cpp.o
[ 13%] Building CXX object src/CMakeFiles/zm.dir/zm.cpp.o
[ 15%] Building CXX object src/CMakeFiles/zm.dir/zm_db.cpp.o
[ 16%] Building CXX object src/CMakeFiles/zm.dir/zm_logger.cpp.o
[ 18%] Building CXX object src/CMakeFiles/zm.dir/zm_event.cpp.o
[ 20%] Building CXX object src/CMakeFiles/zm.dir/zm_exception.cpp.o
[ 22%] Building CXX object src/CMakeFiles/zm.dir/zm_file_camera.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_file_camera.h:24:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_file_camera.cpp:35:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 24%] Building CXX object src/CMakeFiles/zm.dir/zm_ffmpeg_camera.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg_camera.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_ffmpeg_camera.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 26%] Building CXX object src/CMakeFiles/zm.dir/zm_image.cpp.o
/home/carlos/ZoneMinder-1.26.4/src/zm_image.cpp: In member function ‘bool Image::ReadRaw(const char*)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_image.cpp:597:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( statbuf.st_size != size )
^
[ 28%] Building CXX object src/CMakeFiles/zm.dir/zm_jpeg.cpp.o
[ 30%] Building CXX object src/CMakeFiles/zm.dir/zm_local_camera.cpp.o
[ 32%] Building CXX object src/CMakeFiles/zm.dir/zm_monitor.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_http.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp:35:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp: In member function ‘void Monitor::ReloadLinkedMonitors(const char*)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp:1740:83: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (dest_ptr-link_id_str) < (unsigned int)(sizeof(link_id_str)-1) )
^
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp: In member function ‘void Monitor::TimestampImage(Image*, const timeval*) const’:
/home/carlos/ZoneMinder-1.26.4/src/zm_monitor.cpp:2803:80: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while ( *s_ptr && ((d_ptr-label_text) < (unsigned int)sizeof(label_text)) )
^
[ 33%] Building CXX object src/CMakeFiles/zm.dir/zm_ffmpeg.cpp.o
[ 35%] Building CXX object src/CMakeFiles/zm.dir/zm_mpeg.cpp.o
[ 37%] Building CXX object src/CMakeFiles/zm.dir/zm_poly.cpp.o
[ 39%] Building CXX object src/CMakeFiles/zm.dir/zm_regexp.cpp.o
[ 41%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera.cpp.o
[ 43%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera_http.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_http.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_http.cpp:20:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 45%] Building CXX object src/CMakeFiles/zm.dir/zm_remote_camera_rtsp.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_rtsp.h:25:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_remote_camera_rtsp.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 47%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp.cpp.o
[ 49%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtsp.h:27,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_ctrl.cpp:27:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 50%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_data.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_data.h:24:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_data.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 52%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_source.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.cpp:20:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 54%] Building CXX object src/CMakeFiles/zm.dir/zm_rtsp.cpp.o
In file included from /home/carlos/ZoneMinder-1.26.4/src/zm_rtp_source.h:23:0,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtsp.h:27,
from /home/carlos/ZoneMinder-1.26.4/src/zm_rtsp.cpp:24:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h: In member function ‘void Buffer::tidy(bool)’:
/home/carlos/ZoneMinder-1.26.4/src/zm_buffer.h:156:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (mHead-mStorage) > mSize )
^
[ 56%] Building CXX object src/CMakeFiles/zm.dir/zm_sdp.cpp.o
[ 58%] Building CXX object src/CMakeFiles/zm.dir/zm_signal.cpp.o
[ 60%] Building CXX object src/CMakeFiles/zm.dir/zm_stream.cpp.o
[ 62%] Building CXX object src/CMakeFiles/zm.dir/zm_thread.cpp.o
[ 64%] Building CXX object src/CMakeFiles/zm.dir/zm_time.cpp.o
[ 66%] Building CXX object src/CMakeFiles/zm.dir/zm_timer.cpp.o
[ 67%] Building CXX object src/CMakeFiles/zm.dir/zm_user.cpp.o
[ 69%] Building CXX object src/CMakeFiles/zm.dir/zm_utils.cpp.o
[ 71%] Building CXX object src/CMakeFiles/zm.dir/zm_zone.cpp.o
Linking CXX static library libzm.a
[ 71%] Built target zm
Scanning dependencies of target nph-zms
[ 73%] Building CXX object src/CMakeFiles/nph-zms.dir/zms.cpp.o
Linking CXX executable nph-zms
[ 73%] Built target nph-zms
Scanning dependencies of target zma
[ 75%] Building CXX object src/CMakeFiles/zma.dir/zma.cpp.o
Linking CXX executable zma
[ 75%] Built target zma
Scanning dependencies of target zmc
[ 77%] Building CXX object src/CMakeFiles/zmc.dir/zmc.cpp.o
Linking CXX executable zmc
[ 77%] Built target zmc
Scanning dependencies of target zmf
[ 79%] Building CXX object src/CMakeFiles/zmf.dir/zmf.cpp.o
Linking CXX executable zmf
[ 79%] Built target zmf
Scanning dependencies of target zmfix
[ 81%] Building CXX object src/CMakeFiles/zmfix.dir/zmfix.cpp.o
[ 83%] Building CXX object src/CMakeFiles/zmfix.dir/zm_config.cpp.o
[ 84%] Building CXX object src/CMakeFiles/zmfix.dir/zm_regexp.cpp.o
[ 86%] Building CXX object src/CMakeFiles/zmfix.dir/zm_logger.cpp.o
[ 88%] Building CXX object src/CMakeFiles/zmfix.dir/zm_utils.cpp.o
[ 90%] Building CXX object src/CMakeFiles/zmfix.dir/zm_db.cpp.o
[ 92%] Building CXX object src/CMakeFiles/zmfix.dir/zm.cpp.o
Linking CXX executable zmfix
[ 92%] Built target zmfix
Scanning dependencies of target zms
[ 94%] Building CXX object src/CMakeFiles/zms.dir/zms.cpp.o
Linking CXX executable zms
[ 94%] Built target zms
Scanning dependencies of target zmstreamer
[ 96%] Building CXX object src/CMakeFiles/zmstreamer.dir/zmstreamer.cpp.o
Linking CXX executable zmstreamer
[ 96%] Built target zmstreamer
Scanning dependencies of target zmu
[ 98%] Building CXX object src/CMakeFiles/zmu.dir/zmu.cpp.o
Linking CXX executable zmu
[ 98%] Built target zmu
[100%] Building ZoneMinder perl modules
Writing MakefilePerl for ZoneMinder
Writing MYMETA.yml and MYMETA.json
Skip blib/lib/ZoneMinder/Trigger/Connection.pm (unchanged)
Skip blib/lib/ZoneMinder.pm (unchanged)
Skip blib/lib/ZoneMinder/Memory/Mapped.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel.pm (unchanged)
Skip blib/lib/ZoneMinder/Memory.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/LoftekSentinel.pm (unchanged)
Skip blib/lib/ZoneMinder/ConfigData.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Inet.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Connection/Example.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Spawning.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/FI9821W_Y2k.pm (unchanged)
Skip blib/lib/ZoneMinder/Control.pm (unchanged)
Skip blib/lib/ZoneMinder/General.pm (unchanged)
Skip blib/lib/ZoneMinder/ConfigAdmin.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/SkyIPCam7xx.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/Ncs370.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/FI8608W_Y2k.pm (unchanged)
Skip blib/lib/ZoneMinder/Memory/Shared.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Serial.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/FI8620_Y2k.pm (unchanged)
Skip blib/lib/ZoneMinder/Config.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/mjpgStreamer.pm (unchanged)
Skip blib/lib/ZoneMinder/Base.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/PanasonicIP.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Unix.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/AxisV2.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/File.pm (unchanged)
Skip blib/lib/ZoneMinder/Database.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/Visca.pm (unchanged)
Skip blib/lib/ZoneMinder/Control/PelcoD.pm (unchanged)
Skip blib/lib/ZoneMinder/Logger.pm (unchanged)
Skip blib/lib/ZoneMinder/Trigger/Channel/Handle.pm (unchanged)
[100%] Built target zmperlmodules
Everything compiles OK with just the few warnings above... I have a working/running 1.25.0 system so I'll attempt the 'make install' and the zmupdate.pl to 1.26.4 over the weekend...
Thanks!
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
Just a quick note to let everyone know that I just concluded an upgrade of one of my 1.25.0 systems and it pretty much went well:
I did:
make install (as root)
zmupdate.pl --version=1.25.0 --user=xxxx --pass=yyyy
The first time I ran this it failed because for some reason I don't have a /tmp/zm directory... so I did:
mkdir /tmp/zm ; chmod 777 /tmp/zm
and then re-ran:
zmupdate.pl --version=1.25.0 --user=xxxx --pass=yyyy
It was now able to store the backup of the 1.25.0 database...
I answered 'N' to upgrading to InnoDB... didn't want to deal with that now.
The process concluded; I restarted zoneminder and my cameras were there... I only have 2 "remote" cameras in this (home) setup.
The cameras had been reset to greyscale "8-bit" mode... I changed their config to 32-bit color. Now I could see the cameras in color, but I started getting shared memory errors which I attributed to the previous "greyscale" memid going stale so...
I stopped and restarted zoneminder... and no, the errors are still coming even though I can see the cameras and the system is recording. I get...
2013-10-14 02:06:14.341970 zmwatch 24248 ERR Can't get shared memory id '7a6d0006', 6: No such file or directory zmwatch.pl
2013-10-14 02:06:14.341480 zmwatch 24248 ERR Can't get shared memory id '7a6d0006', 6: No such file or directory zmwatch.pl
2013-10-14 02:06:14.340710 zmwatch 24248 ERR Can't get shared memory id '7a6d0001', 1: No such file or directory zmwatch.pl
2013-10-14 02:06:14.340100 zmwatch 24248 ERR Can't get shared memory id '7a6d0001', 1: No such file or directory zmwatch.pl
2013-10-14 02:06:13.515285 web_js 24286 ERR getStreamCmdResponse stream error: socket_sendto( /tmp/zms-563235s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-14 02:06:13.411320 web_php 24286 ERR socket_sendto( /tmp/zms-563235s.sock ) failed: No such file or directory zm/includes/functions.php 2343
and this repeats... I'll investigate further during the week before I try upgrading a bigger system with 9 cameras.
I did:
make install (as root)
zmupdate.pl --version=1.25.0 --user=xxxx --pass=yyyy
The first time I ran this it failed because for some reason I don't have a /tmp/zm directory... so I did:
mkdir /tmp/zm ; chmod 777 /tmp/zm
and then re-ran:
zmupdate.pl --version=1.25.0 --user=xxxx --pass=yyyy
It was now able to store the backup of the 1.25.0 database...
I answered 'N' to upgrading to InnoDB... didn't want to deal with that now.
The process concluded; I restarted zoneminder and my cameras were there... I only have 2 "remote" cameras in this (home) setup.
The cameras had been reset to greyscale "8-bit" mode... I changed their config to 32-bit color. Now I could see the cameras in color, but I started getting shared memory errors which I attributed to the previous "greyscale" memid going stale so...
I stopped and restarted zoneminder... and no, the errors are still coming even though I can see the cameras and the system is recording. I get...
2013-10-14 02:06:14.341970 zmwatch 24248 ERR Can't get shared memory id '7a6d0006', 6: No such file or directory zmwatch.pl
2013-10-14 02:06:14.341480 zmwatch 24248 ERR Can't get shared memory id '7a6d0006', 6: No such file or directory zmwatch.pl
2013-10-14 02:06:14.340710 zmwatch 24248 ERR Can't get shared memory id '7a6d0001', 1: No such file or directory zmwatch.pl
2013-10-14 02:06:14.340100 zmwatch 24248 ERR Can't get shared memory id '7a6d0001', 1: No such file or directory zmwatch.pl
2013-10-14 02:06:13.515285 web_js 24286 ERR getStreamCmdResponse stream error: socket_sendto( /tmp/zms-563235s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2013-10-14 02:06:13.411320 web_php 24286 ERR socket_sendto( /tmp/zms-563235s.sock ) failed: No such file or directory zm/includes/functions.php 2343
and this repeats... I'll investigate further during the week before I try upgrading a bigger system with 9 cameras.
- knight-of-ni
- Posts: 2406
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
If you are using cmake (forget if you mentioned it or not), then that is a bug that has been fixed in the master branch.
See here for the workaround: http://www.zoneminder.com/forums/viewto ... 30&t=21491
See here for the workaround: http://www.zoneminder.com/forums/viewto ... 30&t=21491
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
All of these can be found at https://zoneminder.blogspot.com/
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
Ah... ok! Yes, I used cmake... I see there is a workaround; I'm going to try recompiling tonight... Thanks!
-
- Posts: 24
- Joined: Fri Aug 14, 2009 6:30 am
- Location: Puerto Rico (Various Locations)
Re: Compile/Make Error 1.26.4 on Fedora 19 64-bit ffmpeg hea
Re-compiled using the following:
rm CMakeCache.txt
cmake -C zm_conf.cmake -DENABLE_MMAP=yes .
make
make install # as root
Now everything is working and the log is green!
rm CMakeCache.txt
cmake -C zm_conf.cmake -DENABLE_MMAP=yes .
make
make install # as root
Now everything is working and the log is green!