configure: WARNING: libavutil/avutil.h: present but cannot be compiled
configure: WARNING: libavutil/avutil.h: check for missing prerequisite headers?
configure: WARNING: libavutil/avutil.h: see the Autoconf documentation
configure: WARNING: libavutil/avutil.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavutil/avutil.h: proceeding with the preprocessor's result
configure: WARNING: libavutil/avutil.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
checking for libavutil/avutil.h... yes
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... yes
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled
configure: WARNING: libavcodec/avcodec.h: check for missing prerequisite headers?
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation
configure: WARNING: libavcodec/avcodec.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavcodec/avcodec.h: proceeding with the preprocessor's result
configure: WARNING: libavcodec/avcodec.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
checking for libavcodec/avcodec.h... yes
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... yes
configure: WARNING: libavformat/avformat.h: present but cannot be compiled
configure: WARNING: libavformat/avformat.h: check for missing prerequisite headers?
configure: WARNING: libavformat/avformat.h: see the Autoconf documentation
configure: WARNING: libavformat/avformat.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavformat/avformat.h: proceeding with the preprocessor's result
configure: WARNING: libavformat/avformat.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
checking for libavformat/avformat.h... yes
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... yes
configure: WARNING: libswscale/swscale.h: present but cannot be compiled
configure: WARNING: libswscale/swscale.h: check for missing prerequisite headers?
configure: WARNING: libswscale/swscale.h: see the Autoconf documentation
configure: WARNING: libswscale/swscale.h: section "Present But Cannot Be Compiled"
configure: WARNING: libswscale/swscale.h: proceeding with the preprocessor's result
configure: WARNING: libswscale/swscale.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
....
make
make all-recursive
make[1]: Entering directory `/home/bferrell/oracle/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/home/bferrell/oracle/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
In file included from zm_image.h:26:0,
from zm_monitor.h:25,
from zmc.cpp:28:
zm_jpeg.h:39:85: error: declaration of C function ‘void jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)’ conflicts with
/usr/include/jpeglib.h:959:14: error: previous declaration ‘void jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)’ here
zm_jpeg.h:40:81: error: declaration of C function ‘void jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)’ conflicts with
/usr/include/jpeglib.h:956:14: error: previous declaration ‘void jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)’ here
In file included from /usr/include/libavutil/avutil.h:81:0,
from zm_ffmpeg.h:29,
from zm_mpeg.h:23,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32_c(int64_t)’:
/usr/include/libavutil/common.h:168:47: error: ‘UINT64_C’ was not declared in this scope
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/bferrell/oracle/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bferrell/oracle/ZoneMinder-1.24.2'
make: *** [all] Error 2
Any suggestions?
Build fails on OpenSUSE 11.3
I have nothing to suggest on your problem as i have the same exactly problem since i web upgraded my opensuse 11.2 to 11.3 a few days ago.
picasso:/usr/ZoneMinder-1.24.2 # make
make all-recursive
make[1]: Entering directory `/usr/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/usr/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
In file included from zm_image.h:26:0,
from zm_monitor.h:25,
from zmc.cpp:28:
zm_jpeg.h:39:85: error: declaration of C function βvoid jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)β conflicts with
/usr/include/jpeglib.h:959:14: error: previous declaration βvoid jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)β here
zm_jpeg.h:40:81: error: declaration of C function βvoid jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)β conflicts with
/usr/include/jpeglib.h:956:14: error: previous declaration βvoid jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)β here
In file included from /usr/include/libavutil/avutil.h:81:0,
from zm_ffmpeg.h:29,
from zm_mpeg.h:23,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
/usr/include/libavutil/common.h: In function βint32_t av_clipl_int32_c(int64_t)β:
/usr/include/libavutil/common.h:168:47: error: βUINT64_Cβ was not declared in this scope
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/usr/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/ZoneMinder-1.24.2'
make: *** [all] Error 2
I have the same problem also when building from the svn version.
I also tried applying a "jpeg error" patch that i found but nothing changed.
Trying to install from the binary it fails complaining about the (older) perl 5.10 that it requires.
I am using ZM since 2-3 years now and i am very satisfied with the work done so far. If someone has an idea of what to do it will be much appreciated.
BR//
Stefanos
picasso:/usr/ZoneMinder-1.24.2 # make
make all-recursive
make[1]: Entering directory `/usr/ZoneMinder-1.24.2'
Making all in src
make[2]: Entering directory `/usr/ZoneMinder-1.24.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" -c -o zmc.o zmc.cpp; \
then mv -f ".deps/zmc.Tpo" ".deps/zmc.Po"; else rm -f ".deps/zmc.Tpo"; exit 1; fi
In file included from zm_image.h:26:0,
from zm_monitor.h:25,
from zmc.cpp:28:
zm_jpeg.h:39:85: error: declaration of C function βvoid jpeg_mem_src(jpeg_decompress_struct*, const JOCTET*, int)β conflicts with
/usr/include/jpeglib.h:959:14: error: previous declaration βvoid jpeg_mem_src(jpeg_decompress_struct*, unsigned char*, long unsigned int)β here
zm_jpeg.h:40:81: error: declaration of C function βvoid jpeg_mem_dest(jpeg_compress_struct*, JOCTET*, int*)β conflicts with
/usr/include/jpeglib.h:956:14: error: previous declaration βvoid jpeg_mem_dest(jpeg_compress_struct*, unsigned char**, long unsigned int*)β here
In file included from /usr/include/libavutil/avutil.h:81:0,
from zm_ffmpeg.h:29,
from zm_mpeg.h:23,
from zm_stream.h:27,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
/usr/include/libavutil/common.h: In function βint32_t av_clipl_int32_c(int64_t)β:
/usr/include/libavutil/common.h:168:47: error: βUINT64_Cβ was not declared in this scope
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/usr/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/ZoneMinder-1.24.2'
make: *** [all] Error 2
I have the same problem also when building from the svn version.
I also tried applying a "jpeg error" patch that i found but nothing changed.
Trying to install from the binary it fails complaining about the (older) perl 5.10 that it requires.
I am using ZM since 2-3 years now and i am very satisfied with the work done so far. If someone has an idea of what to do it will be much appreciated.
BR//
Stefanos
Solved
EDIT: bferrell, you can get rid of the configure warnings by using CPPFLAGS="-D__STDC_CONSTANT_MACROS" as somebody already mentioned in this forum. (But it still won't use the files ?!) That, however, does not solve the compilation problem. I had to apply this Gentoo patch and add #include <cstdio> to src/*.cpp files. So this is how you solve it, but I read that it isn't very stable...
Hello,
With this option I could successfully install zm, You need Openssl
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl CPPFLAGS="-D__STDC_CONSTANT_MACROS"
With this option I could successfully install zm, You need Openssl
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zm ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl CPPFLAGS="-D__STDC_CONSTANT_MACROS"