hi with all your help, i could not fix it.
so, is there anybody who could help me?
i've teh #error "No location for avutils.h found" while making ZM.
zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"
checking libavutil/avutil.h presence... yes
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 compiler's result
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
checking for libavutil/avutil.h... no
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 compiler's result
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
checking for libavcodec/avcodec.h... no
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 compiler's result
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
checking for libavformat/avformat.h... no
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 compiler's result
configure: WARNING: ## ------------------------------------- ##
configure: WARNING: ## Report this to support@zoneminder.com ##
configure: WARNING: ## ------------------------------------- ##
checking for libswscale/swscale.h... no
checking ffmpeg/swscale.h usability... no
checking ffmpeg/swscale.h presence... no
checking for ffmpeg/swscale.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
#error "No location for avutils.h found"
-
- Posts: 4
- Joined: Wed May 26, 2010 12:48 pm
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
As advised by mail. This and similar compilation problems with recent ffmpeg releases appears to be fixed by adding to the ZM configure line. I don't know if this is the 'official' way of getting around it though.
Code: Select all
CPPFLAGS="-D__STDC_CONSTANT_MACROS"
Phil
I only found this topic after I figured out the fix and searched for "D__STDC_CONSTANT_MACROS" on the forum. Just before I was going to post the fix to see if I wasn't duplicated work. The compilation error more commonly seen with the latest versions of ffmpeg is the following.
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 /usr/local/include/libavutil/avutil.h:81,
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/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/local/include/libavutil/common.h:154: error: ‘UINT64_C’ was not declared in this scope
make[2]: *** [zmc.o] Error 1
Adding the flag -D__STDC_CONSTANT_MACROS ... I used CXXFLAGS myself... same difference... as stated fixes the issue. Hopefully others will find this thread now and find it helpful.
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 /usr/local/include/libavutil/avutil.h:81,
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/local/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/local/include/libavutil/common.h:154: error: ‘UINT64_C’ was not declared in this scope
make[2]: *** [zmc.o] Error 1
Adding the flag -D__STDC_CONSTANT_MACROS ... I used CXXFLAGS myself... same difference... as stated fixes the issue. Hopefully others will find this thread now and find it helpful.
where is the zm configuration file to put the code please?zoneminder wrote:As advised by mail. This and similar compilation problems with recent ffmpeg releases appears to be fixed by addingto the ZM configure line. I don't know if this is the 'official' way of getting around it though.Code: Select all
CPPFLAGS="-D__STDC_CONSTANT_MACROS"
i found the answer http://churchgoopensource.blogspot.com/ ... u-904.html
- henriquejf
- Posts: 77
- Joined: Tue Feb 10, 2009 12:01 pm
- Location: Brazil
tks siteadmin, solved here
The tip from the siteadmin worked for me under
Ubuntu server 10.04.1 LTS 32bit and
FFmpeg from svn on 22nd sep ,2010
ZM from svn on 22nd sep, 2010
all i did to fix the problem after i have faced the problems with compiling zm giving erros such...
zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"
...was to adapt my configuration file before compiling zm from source;
my new config line that worked was:
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin \
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser \
ZM_DB_PASS=zmpass --enable-debug=yes \
--with-webgroup=www-data --with-webuser=www-data \
--enable-mmap CPPFLAGS="-D__STDC_CONSTANT_MACROS"
and after that...
autoconf
automake
make
... create zm db, grant, etc (*)
make install
and worked like a charm !
(*) details of install based on my contribution to the wiki under
http://www.zoneminder.com/wiki/index.ph ... ver_32-bit
Tks again mr. phil !
henrique
softlivre
jf, brazil
Ubuntu server 10.04.1 LTS 32bit and
FFmpeg from svn on 22nd sep ,2010
ZM from svn on 22nd sep, 2010
all i did to fix the problem after i have faced the problems with compiling zm giving erros such...
zm_ffmpeg.h:33:2: error: #error "No location for avutils.h found"
zm_ffmpeg.h:40:2: error: #error "No location for avcodec.h found"
zm_ffmpeg.h:47:2: error: #error "No location for avformat.h found"
zm_ffmpeg.h:55:2: error: #error "No location for swscale.h found"
...was to adapt my configuration file before compiling zm from source;
my new config line that worked was:
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin \
ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser \
ZM_DB_PASS=zmpass --enable-debug=yes \
--with-webgroup=www-data --with-webuser=www-data \
--enable-mmap CPPFLAGS="-D__STDC_CONSTANT_MACROS"
and after that...
autoconf
automake
make
... create zm db, grant, etc (*)
make install
and worked like a charm !
(*) details of install based on my contribution to the wiki under
http://www.zoneminder.com/wiki/index.ph ... ver_32-bit
Tks again mr. phil !
henrique
softlivre
jf, brazil
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil
For Gentoo
For Gentoo emerge with:
CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder
CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder