Installation woes (FC2)
Posted: Fri Apr 01, 2005 1:40 am
I'm really looking forward to trying out zoneminder, however I just can't get this to install. When doing a config
(./configure --with-mysql=/usr --with-webdir=/www/zm --with-cgidir=/www/cgi-bin --with-ffmpeg=/usr/local )
It configures OK, with the exception of:
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
So then I try to make and get the following:
[root@banff zm-1.21.0]# make
make all-recursive
make[1]: Entering directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0'
Making all in src
make[2]: Entering directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -g -O2 -MT zm_monitor.o -MD -MP -MF ".deps/zm_monitor.Tpo" -c -o zm_monitor.o zm_monitor.cpp; \
then mv -f ".deps/zm_monitor.Tpo" ".deps/zm_monitor.Po"; else rm -f ".deps/zm_monitor.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
g++ -g -O2 -L -L/usr/local/lib -L/usr/lib/mysql -o zmc zmc.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lmp3lame -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
zm_mpeg.o(.text+0x7): In function `VideoStream::Initialise()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:32: undefined reference to `av_register_all'
zm_mpeg.o(.text+0x31): In function `VideoStream::SetupFormat(char const*, char const*)':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:42: undefined reference to `guess_format'
zm_mpeg.o(.text+0x71):/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:46: undefined reference to `guess_format'
zm_mpeg.o(.text+0x151): In function `VideoStream::SetupCodec(int, int, int, int, int)':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:72: undefined reference to `av_new_stream'
zm_mpeg.o(.text+0x1eb): In function `VideoStream::SetParameters()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:107: undefined reference to `av_set_parameters'
zm_mpeg.o(.text+0x2f5): In function `VideoStream::OpenStream()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:175: undefined reference to `url_fopen'
zm_mpeg.o(.text+0x662): In function `VideoStream::~VideoStream [not-in-charge]()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x69b):/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x732): In function `VideoStream::~VideoStream [in-charge]()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x76b):/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x913): In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned)':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:314: undefined reference to `av_write_frame'
zm_mpeg.o(.text+0x28b): In function `VideoStream::OpenStream()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:199: undefined reference to `av_write_header'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0'
make: *** [all] Error 2
I've recompiled ffmpeg 0.4.9 with --enabled-shared and no luck. I've tried to compile the lastest CVS of ffmpeg and keep getting oggtheora.c errors, so I downloaded 0.4.8 and got this to compile. However installing this version I still can't get zm to compile. I've tried to remove ffmpeg support from the setup program, and it still doesn't compile.
Help!!!! Am I missing something????
(./configure --with-mysql=/usr --with-webdir=/www/zm --with-cgidir=/www/cgi-bin --with-ffmpeg=/usr/local )
It configures OK, with the exception of:
checking for av_new_stream in -lavformat... no
configure: WARNING: libavformat.a is required for MPEG streaming
So then I try to make and get the following:
[root@banff zm-1.21.0]# make
make all-recursive
make[1]: Entering directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0'
Making all in src
make[2]: Entering directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" -c -o zm_event.o zm_event.cpp; \
then mv -f ".deps/zm_event.Tpo" ".deps/zm_event.Po"; else rm -f ".deps/zm_event.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -g -O2 -MT zm_monitor.o -MD -MP -MF ".deps/zm_monitor.Tpo" -c -o zm_monitor.o zm_monitor.cpp; \
then mv -f ".deps/zm_monitor.Tpo" ".deps/zm_monitor.Po"; else rm -f ".deps/zm_monitor.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/local/include -g -O2 -MT zm_mpeg.o -MD -MP -MF ".deps/zm_mpeg.Tpo" -c -o zm_mpeg.o zm_mpeg.cpp; \
then mv -f ".deps/zm_mpeg.Tpo" ".deps/zm_mpeg.Po"; else rm -f ".deps/zm_mpeg.Tpo"; exit 1; fi
g++ -g -O2 -L -L/usr/local/lib -L/usr/lib/mysql -o zmc zmc.o zm.o zm_db.o zm_config.o zm_coord.o zm_box.o zm_image.o zm_event.o zm_zone.o zm_camera.o zm_local_camera.o zm_remote_camera.o zm_monitor.o zm_user.o zm_mpeg.o zm_jpeg.o zm_regexp.o zm_buffer.o zm_debug.o -L/usr/lib/mysql -lmp3lame -lavcodec -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg
zm_mpeg.o(.text+0x7): In function `VideoStream::Initialise()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:32: undefined reference to `av_register_all'
zm_mpeg.o(.text+0x31): In function `VideoStream::SetupFormat(char const*, char const*)':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:42: undefined reference to `guess_format'
zm_mpeg.o(.text+0x71):/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:46: undefined reference to `guess_format'
zm_mpeg.o(.text+0x151): In function `VideoStream::SetupCodec(int, int, int, int, int)':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:72: undefined reference to `av_new_stream'
zm_mpeg.o(.text+0x1eb): In function `VideoStream::SetParameters()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:107: undefined reference to `av_set_parameters'
zm_mpeg.o(.text+0x2f5): In function `VideoStream::OpenStream()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:175: undefined reference to `url_fopen'
zm_mpeg.o(.text+0x662): In function `VideoStream::~VideoStream [not-in-charge]()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x69b):/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x732): In function `VideoStream::~VideoStream [in-charge]()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:232: undefined reference to `av_write_trailer'
zm_mpeg.o(.text+0x76b):/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:243: undefined reference to `url_fclose'
zm_mpeg.o(.text+0x913): In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned)':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:314: undefined reference to `av_write_frame'
zm_mpeg.o(.text+0x28b): In function `VideoStream::OpenStream()':
/installs/updates/banff/FC2/6/zm-1.21.0/src/zm_mpeg.cpp:199: undefined reference to `av_write_header'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vol/installs/banff/updates/banff/FC2/6/zm-1.21.0'
make: *** [all] Error 2
I've recompiled ffmpeg 0.4.9 with --enabled-shared and no luck. I've tried to compile the lastest CVS of ffmpeg and keep getting oggtheora.c errors, so I downloaded 0.4.8 and got this to compile. However installing this version I still can't get zm to compile. I've tried to remove ffmpeg support from the setup program, and it still doesn't compile.
Help!!!! Am I missing something????