I had 1.17 running on my system and decided to upgrade to 1.19.
I'm running a fully updated (as of 2004/03/21) Fedora Core1 box:
When I try to compile 1.19 I get the following error:
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -Iyes/libavcodec -Iyes/libavformat -g -O2 -c -o zm_event.o `test -f 'zm_event.cpp' || echo './'`zm_event.cpp
In file included from zm_event.cpp:29:
zm_mpeg.h:27:22: avformat.h: No such file or directory
In file included from zm_event.cpp:29:
zm_mpeg.h:36: error: use of enum `PixelFormat' without previous declaration
zm_mpeg.h:36: error: field `pf' has incomplete type
zm_mpeg.h:37: error: syntax error before `*' token
zm_mpeg.h:38: error: syntax error before `*' token
zm_mpeg.h:39: error: syntax error before `*' token
zm_mpeg.h:40: error: syntax error before `*' token
zm_mpeg.h:41: error: syntax error before `*' token
zm_mpeg.h:42: error: syntax error before `*' token
zm_mpeg.h:57: error: `uint8_t' was not declared in this scope
zm_mpeg.h:57: error: `buffer' was not declared in this scope
zm_mpeg.h:57: error: syntax error before `,' token
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/usr/local/src/zm-1.19.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/zm-1.19.0'
make: *** [all] Error 2
Any help appreciated.
Thanks,
Martin
1.19.0 Compile problem on Fedora
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: 1.19.0 Compile problem on Fedora
What was your configure command, the yes/libavformat looks a bit odd.
Phil,
Phil,
Re: 1.19.0 Compile problem on Fedora
I used the following:
./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg --with-lame --with-webuser=apache --with-webgroup=apache
Is there anything wrong with it?
Thanks,
Martin
./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg --with-lame --with-webuser=apache --with-webgroup=apache
Is there anything wrong with it?
Thanks,
Martin
Re: 1.19.0 Compile problem on Fedora
I also tried it without the --with-ffmpeg --with-lame and go the same error.
Martin
Martin
Re: 1.19.0 Compile problem on Fedora
Here's the output from the configure, in case you want to see it:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-ffmpeg option.
This tells configure where to find the ffmpeg build directory within which are the libavcodec
and libavformat files that can be used to build true MPEG streaming into ZoneMinder. A normal
install of ffmpeg only installs the applications and not the libraries or headers necessary
to link to so this will probably be a local or temporary directory.
e.g. --with-ffmpeg=/home/ffmpeg-0.4.18
configure: WARNING: You can call configure with the --with-lame option.
This tells configure where to find the Lame library which can be used by the ffmpeg libraries
to generate IE compatible MPEG audio streams. This option is only necessary if you have built
the ffmpeg package itself with the --enable-mp3lame option and if the normal link cannot
find the library. Using mp3lame is not necessary or of any benefit to ZoneMinder per se.
e.g. --with-lame=/use/local/lib
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for pcre_compile in -lpcre... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for lame_init in -lmp3lame... no
configure: WARNING: libmp3lame.a may be required for IE compatible MPEG streaming
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zmconfig.pl
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for zmconfig.txt... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-ffmpeg option.
This tells configure where to find the ffmpeg build directory within which are the libavcodec
and libavformat files that can be used to build true MPEG streaming into ZoneMinder. A normal
install of ffmpeg only installs the applications and not the libraries or headers necessary
to link to so this will probably be a local or temporary directory.
e.g. --with-ffmpeg=/home/ffmpeg-0.4.18
configure: WARNING: You can call configure with the --with-lame option.
This tells configure where to find the Lame library which can be used by the ffmpeg libraries
to generate IE compatible MPEG audio streams. This option is only necessary if you have built
the ffmpeg package itself with the --enable-mp3lame option and if the normal link cannot
find the library. Using mp3lame is not necessary or of any benefit to ZoneMinder per se.
e.g. --with-lame=/use/local/lib
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether round is declared... yes
checking whether strsignal is declared... yes
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for mysql_init in -lmysqlclient... yes
checking for pcre_compile in -lpcre... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for lame_init in -lmp3lame... no
configure: WARNING: libmp3lame.a may be required for IE compatible MPEG streaming
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating web/Makefile
config.status: creating scripts/Makefile
config.status: creating db/Makefile
config.status: creating zmconfig.pl
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for zmconfig.txt... yes
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: 1.19.0 Compile problem on Fedora
Hi Martin,
The --with-ffmpeg and --with-lame options both should point to directories so --with-ffmpeg=<ffmpeg build dir> etc. Try it first without --with-lame which you might not even need.
Phil,
The --with-ffmpeg and --with-lame options both should point to directories so --with-ffmpeg=<ffmpeg build dir> etc. Try it first without --with-lame which you might not even need.
Phil,
Re: 1.19.0 Compile problem on Fedora
Ok
As I did not know where to point --with-ffmpeg, I removed RPMs for ffmpeg and ffmpeg-devel and downloaded the ffmpeg-0.4.8 package with I have compiled and installed in ./usr/local/ffmpeg-0.4.8.
Then I set the --with-ffmpeg=/usr/local/ffmpeg-0.4.8 and the make command ran through without the error.
Thanks for your help!
Martin
As I did not know where to point --with-ffmpeg, I removed RPMs for ffmpeg and ffmpeg-devel and downloaded the ffmpeg-0.4.8 package with I have compiled and installed in ./usr/local/ffmpeg-0.4.8.
Then I set the --with-ffmpeg=/usr/local/ffmpeg-0.4.8 and the make command ran through without the error.
Thanks for your help!
Martin