Have a clean install of Mandriva 2006 free, kernel 2.6.12, gcc 4.0.1. Trying zm 1.21.4, I get two make errors.
zm_mpeg.cpp: In member function 'double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:331: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp:331: error: 'av_rescale_q' was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
Following another post in this forum I tried two other versions of ffmpeg, cooker 0.4.9-0.pre1.6mdk, and 2005le 0.4.9-0.pre1.4mdk (have zm 1.21.3 working okay on a 2005le system with this version of ffmpeg). The 2006 version is 0.4.9-0.pre1.5mdk. Did a make clean then ./configure each time. Still get same error. Do you have to use the CVS version only? Prefer to stay with rpm version, have tried http://www.elltel.net/melins/mdv_2006/ on another system but it is not working yet. Haven't tried the zm-1.21.4-0.1 RPM up for test since it seems to be for fedora core and not fully tested.
Also having a db error during creation running mysql mysql < db/zmschema.sql:
ERROR 1136 (21S01) at line 378: Column count doesn't match value count at row 1
but am waiting to resolve the ffmpeg issue before trying zmschema.sql.z mentioned in another forum post. According to google this error is related to and incorrect table setup http://www.faqts.com/knowledge_base/vie ... 454/fid/52 and elsewhere. Any new developments here?
ZM 1.21.4 on Mandriva 2006 Free
For the SQL problem I have posted a patch for it somewhere here on the forum so you'll have to search here. Also I have a newer RPM 1.21.4-0.4 that already has the patch applied. As far as ZM and ffmpeg what ever version zm is compiled with is the one you need to use as the differances between them are so great. Mine is currently built against ffmpeg-0.4.8
I'not positive but I think Ross's RPM is as well.
Regards,
Cordel
I'not positive but I think Ross's RPM is as well.
Regards,
Cordel
Last edited by cordel on Sat Nov 26, 2005 5:38 am, edited 1 time in total.
There is a little post install config if this is your first RPM (not an update)Prefer to stay with rpm version, have tried http://www.elltel.net/melins/mdv_2006/ on another system but it is not working yet.
First edit /etc/zm.conf. Something like this:
ZM_DB_SERVER=localhost
ZM_DB_NAME=zm
ZM_DB_USER=zmuser
ZM_DB_PASS=zmpass
Then run /usr/lib/zm/init/zminit (if you try to "service zm start" first you will be prompted to do this)
When prompted for a MySQL admin name use "root". Unless you have already locked you MySQL server down with a password just hit enter when prompted for a password.
Now you're ready to run "service zm start" and the database will be created.
Then point your browser at http://localhost/zm/ and your're ready to start setting up your monitors
BTW if you want to compile from source, replace the src/zm_mpeg.cpp with the one from 1.21.3
Re: ZM 1.21.4 on Mandriva 2006 Free
[quote="themutt"]Have a clean install of Mandriva 2006 free, kernel 2.6.12, gcc 4.0.1. Trying zm 1.21.4, I get two make errors.
zm_mpeg.cpp: In member function 'double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:331: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp:331: error: 'av_rescale_q' was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
I had the same problem. Solved it by folowing an earlier post.
Be sure you don't have any ffmepg version conflicts, then do a clean install of ffmpeg (I used CVS vesion) and be sure to do a "make installlib". Switch back to zm and "make clean", "make distclean" and start over with the build.
During the configure process inspect closely to be sure you are finding all dependencies and any warnings are not impacting.
That worked for me. Hope it helps.
zm_mpeg.cpp: In member function 'double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:331: error: 'struct AVCodecContext' has no member named 'time_base'
zm_mpeg.cpp:331: error: 'av_rescale_q' was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
I had the same problem. Solved it by folowing an earlier post.
Be sure you don't have any ffmepg version conflicts, then do a clean install of ffmpeg (I used CVS vesion) and be sure to do a "make installlib". Switch back to zm and "make clean", "make distclean" and start over with the build.
During the configure process inspect closely to be sure you are finding all dependencies and any warnings are not impacting.
That worked for me. Hope it helps.
On compiled version solved the make issues by using zm_mpeg.cpp from 1.21.3 as suggested by rdmelin, thanks rdmelin. Still getting same db error "ERROR 1136 (21S01) at line 378: Column count doesn't match value count at row 1" with 1.21.4 and patch from http://www.computerntelecom.com/pub/zmschema.sql.z using mysql 4.1, the Mandriva default.
Only need the db to work and it should be up and running but am stuck at the moment. Was going to try mysql 4.0 or 5.0beta for Mandriva 2006 but both have corrupted signatures so I didn't load ( tried three repositories, no luck) only 4.1 has a valid signature. So unless I can get 4.1 to work mayhave to go back to zm 1.21.3.
Only need the db to work and it should be up and running but am stuck at the moment. Was going to try mysql 4.0 or 5.0beta for Mandriva 2006 but both have corrupted signatures so I didn't load ( tried three repositories, no luck) only 4.1 has a valid signature. So unless I can get 4.1 to work mayhave to go back to zm 1.21.3.
Got 1.21.4 working. Started from scratch with a new download. Got repeat of first error which I corrected with zm_mpeg.cpp from 1.21.3. Got repeat of second error when creating mysql, which I ignored. Apparently the second error is not fatal. Entered monitor and zone data and an event was recorded.
Would be nice if zones could more easily be exported and imported. Apparently db is different from 1.21.3 to 1.21.4 so didn't try mysql export, had to copy 63 items by hand from the three zones I have set up.
Was surprised that the active zone is no longer red as it was in 1.21.3.
Would be nice if zones could more easily be exported and imported. Apparently db is different from 1.21.3 to 1.21.4 so didn't try mysql export, had to copy 63 items by hand from the three zones I have set up.
Was surprised that the active zone is no longer red as it was in 1.21.3.