View unanswered posts | View active topics It is currently Sun Apr 20, 2014 6:47 am



Reply to topic  [ 8 posts ] 
#error "No location for avutils.h found" 
Author Message

Joined: Wed May 26, 2010 1:48 pm
Posts: 4
Post #error "No location for avutils.h found"
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


Wed May 26, 2010 3:43 pm
Profile
Site Admin
User avatar

Joined: Wed Jul 09, 2003 3:07 pm
Posts: 5221
Location: Bristol, UK
Post 
As advised by mail. This and similar compilation problems with recent ffmpeg releases appears to be fixed by adding
Code:
CPPFLAGS="-D__STDC_CONSTANT_MACROS"
to the ZM configure line. I don't know if this is the 'official' way of getting around it though.

_________________
Phil


Thu May 27, 2010 1:56 pm
Profile ICQ YIM WWW

Joined: Thu Nov 19, 2009 7:23 pm
Posts: 3
Post 
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.


Mon Jun 14, 2010 4:45 pm
Profile
User avatar

Joined: Wed Jun 27, 2007 1:54 am
Posts: 111
Post 
pls where to pou CPPFLAGS="-D__STDC_CONSTANT_MACROS"?


Thu Jun 17, 2010 11:16 pm
Profile

Joined: Tue Mar 30, 2010 6:02 am
Posts: 11
Post 
zoneminder wrote:
As advised by mail. This and similar compilation problems with recent ffmpeg releases appears to be fixed by adding
Code:
CPPFLAGS="-D__STDC_CONSTANT_MACROS"
to the ZM configure line. I don't know if this is the 'official' way of getting around it though.


where is the zm configuration file to put the code please?


Sat Jun 19, 2010 9:28 am
Profile

Joined: Tue Mar 30, 2010 6:02 am
Posts: 11
Post 
i found the answer http://churchgoopensource.blogspot.com/ ... u-904.html


Sun Jun 20, 2010 3:58 am
Profile
User avatar

Joined: Tue Feb 10, 2009 1:01 pm
Posts: 77
Location: Brazil
Post 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

_________________
-----------------------
Henrique Barbosa
Consultant
Juiz de Fora, MG - Brazil


Wed Sep 22, 2010 5:08 am
Profile

Joined: Sat Feb 14, 2009 1:40 am
Posts: 10
Location: Western USA
Post For Gentoo
For Gentoo emerge with:

CPPFLAGS="-D__STDC_CONSTANT_MACROS" emerge -av www-misc/zoneminder


Sun Dec 05, 2010 3:44 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group