Page 1 of 1

Ubuntu Edgy

Posted: Thu Feb 15, 2007 6:43 pm
by digitalwan
Hello All,

If anyone is interested, I will write an howto for installing ZM on Ubuntu edgy. There are some tricks that needs to be performed.

Posted: Thu Feb 15, 2007 9:44 pm
by jonathanbrickman0000
I am very interested!

Re: Ubuntu Edgy

Posted: Sat Feb 17, 2007 12:22 pm
by bonnerchen
digitalwan wrote:Hello All,

If anyone is interested, I will write an howto for installing ZM on Ubuntu edgy. There are some tricks that needs to be performed.
Do it! I've installed ZM on Edgy and the only thing I have to do is to choose the right additional packages ;-)

I use this install-script to do everithing automated:

Code: Select all

#!/bin/bash
echo Cleaning up ...
make distclean
echo Configure ...
./configure     --with-libarch=lib \
                --prefix=/usr/local \
                --with-ffmpeg=/usr \
                --with-mysql=/usr \
                --with-webdir=/var/www-zoneminder/html \
                --with-cgidir=/var/www-zoneminder/cgi-bin \
                --with-webuser=www-data \
                --with-webgroup=www-data \
                --disable-crashtrace \
                --disable-debug \
                ZM_DB_PASS=<MYPASS> \
                ZM_DB_USER=zoneminder


echo Make binaries ...
make

echo Install binaries ...
make install

echo Preparing database ...
echo ... dropping old ZM database
echo "drop database if exists zm;" | mysql mysql
echo ... crating new ZM database
mysql mysql < db/zm_create.sql
echo ... crating ZM user
echo "grant select,insert,update,delete on zm.* to 'zoneminder'@localhost identified by '<MYPASS>';" | mysql mysql
mysqladmin reload

Posted: Thu Feb 22, 2007 3:06 pm
by wilso027
For some reason this won't work for me. I keep getting the following error

Code: Select all

zm_mpeg.h:27:29: error: ffmpeg/avformat.h: No such file or directory
zm_mpeg.h:55: error: use of enum ‘PixelFormat’ without previous declaration
zm_mpeg.h:56: error: ISO C++ forbids declaration of ‘AVOutputFormat’ with no type
zm_mpeg.h:56: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:57: error: ISO C++ forbids declaration of ‘AVFormatContext’ with no type
zm_mpeg.h:57: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:58: error: ISO C++ forbids declaration of ‘AVStream’ with no type
zm_mpeg.h:58: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:59: error: ISO C++ forbids declaration of ‘AVFrame’ with no type
zm_mpeg.h:59: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:60: error: ISO C++ forbids declaration of ‘AVFrame’ with no type
zm_mpeg.h:60: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:61: error: ISO C++ forbids declaration of ‘uint8_t’ with no type
zm_mpeg.h:61: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:77: error: ‘uint8_t’ has not been declared
zm_event.cpp: In static member function ‘static void Event::StreamMpeg(int, int, const char*, int, int, int, int)’:
zm_event.cpp:652: error: no matching function for call to ‘VideoStream::EncodeFrame(JSAMPLE*, int, bool&, unsigned int&)’
zm_mpeg.h:77: note: candidates are: double VideoStream::EncodeFrame(int*, int, bool, unsigned int)
make[1]: *** [zm_event.o] Error 1
make[1]: Leaving directory `/home/mythtv/ZoneMinder-1.22.2/src'
make: *** [install-recursive] Error 1 
I have the avformat.h file in the

/usr/share/mythtv/ffmpeg directory

What do I need to do to get this to compile. I used your ./confgure choices. Thanks

Allan