Make error

Support and queries relating to all previous versions of ZoneMinder
onina
Posts: 18
Joined: Tue May 06, 2008 3:46 pm
Location: New Orleans

Post by onina »

Thank's. That seemed to get it installed. I guess I now just need to update the database, although it does appear to be using the original database. Has the database structure changed between ZoneMinder-1.22.3 and ZoneMinder-1.23.3? DO I actually need to update the db?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Yes it has changed, so yes you need to update it. Make sure you stop ZM before updating.
badone
Posts: 16
Joined: Thu Apr 03, 2008 1:16 am

Post by badone »

cordel wrote:Is this the lastest ffmpeg from svn?
What SVN version is it?
It would seem that they have changed the location of the header files :evil:

If this is the latest ffmpeg, you will need to cange the code in ZM to reflect the new location and let us know what version of ffmpeg you have so we can track it down and make it work in ZM.

The file you would need to change is zm_mpeg.h
http://www.zoneminder.com/wiki/index.ph ... tes#ffmpeg

I tried to post the canges here but the sanitation of the forum botchs the post so the above link will have the changes needed listed.
I can confirm this behavior with the latest SVN as per my post on the first page of this thread.

Cheers,
badone
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Which SVN version do you have???
We need to track this down to the version it happened on, so the more info we have the sooner it can be fixed, short of me downloading every verion for the last two months :lol:
onina
Posts: 18
Joined: Tue May 06, 2008 3:46 pm
Location: New Orleans

Post by onina »

I finally got it working with the latest Zoneminder and ffmpeg updates. A great big thank you to all those that helped me out.
I have one other query, does anyone know how to get zoneminder to stream in flash video format (uTube style)
onina
Posts: 18
Joined: Tue May 06, 2008 3:46 pm
Location: New Orleans

Post by onina »

FFmpeg version SVN-r13065, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-swscale --prefix=/usr
libavutil version: 49.6.0
libavcodec version: 51.56.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on May 10 2008 10:46:39, gcc: 4.1.2 20070626 (Red Hat 4.1.2-14)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

onina, I was asking badone, as you have already posted the version you are using ;)
Thx though :D
badone
Posts: 16
Joined: Thu Apr 03, 2008 1:16 am

Post by badone »

cordel wrote:onina, I was asking badone, as you have already posted the version you are using ;)
Thx though :D
Of course, remiss of me.

[root@fc6dev ffmpeg]# svn info
Path: .
URL: svn://svn.mplayerhq.hu/ffmpeg/trunk
Repository Root: svn://svn.mplayerhq.hu/ffmpeg
Repository UUID: 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
Revision: 13086
Node Kind: directory
Schedule: normal
Last Changed Author: aurel
Last Changed Rev: 13086
Last Changed Date: 2008-05-09 09:15:39 +1000 (Fri, 09 May 2008)
Properties Last Updated: 2008-05-09 09:36:32 +1000 (Fri, 09 May 2008)

Cheers,
Brad
mudputty
Posts: 16
Joined: Thu May 22, 2008 5:31 pm

Post by mudputty »

I will be trying this out starting today as well: CentOS 5.1 ZoneMinder 1.23.3

I will let you know how it all goes, and when I am done I will post the instructions on how to do it from start to finish.

I will combine efforts from here:
http://www.zoneminder.com/forums/viewto ... ght=centos
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

I have successfully compiled ffmpeg on my centos 5.0 box, however, and adding the --with-ffmpeg flag, zoneminder compiles fine, however, i keep getting mpeg streaming disabled, rebuild with ffmpeg option message in httpd/error_log..

any ideas?

ffmpeg:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-libogg --enable-libtheora --enable-libfaad --enable-libfaac --enable-libgsm --enable-xvid --enable-x264 --enable-liba52 --enable-liba52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.4.0
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jun 4 2007 11:02:12, gcc: 4.1.1 20070105 (Red Hat 4.1.1-52)
mudputty
Posts: 16
Joined: Thu May 22, 2008 5:31 pm

Post by mudputty »

I have begun the CentOS Wiki. I will be done with all the steps toward the end of this week.

http://www.zoneminder.com/wiki/index.php/CentOS
User avatar
jacomoman
Posts: 23
Joined: Thu Jan 17, 2008 9:25 pm
Location: Silicon Valley, CA

Post by jacomoman »

mudputty, the rev of ffmpeg you list on your wiki page, 11879, has problems, not at config or make time, but at make install. I posted a discussion page on the wiki.

The only rev of ffmpeg I've been able to successfully config/make/install and run is the very latest from their trunk. Of course, is no good for the current ZM 1.23.3 code, as evidenced by all other posts here. I sympathize with you guys and these open source projects that keep changing their APIs. It sucks, I wish I knew enough about ZM to help fix it.

BTW, I've reduced my ./configure script line to just this, and rev 11879 still didn't work:

./configure --enable-gpl --enable-shared

-Jac
User avatar
jacomoman
Posts: 23
Joined: Thu Jan 17, 2008 9:25 pm
Location: Silicon Valley, CA

Post by jacomoman »

Just to close the loop on this... I resolved my ffmpeg make install issue for SVN rev 11879 (the rev mudpuddy's wiki page recommends). Yipee!!! :D

There were some faulty MakeFile lines in that rev having to do with whether or not you excluded libswscale in your configure line. Even if you didn't use "--enable-swscaler" in configure, the MakeFile was attempting to install that module at "make install" time, and of course failing because it never got built. :x The lines that compiled that module had the conditional make statement on it like:

Code: Select all

$(MAKE-$(CONFIG_SWSCALER)) -C libswscale  all
But the "install" target was missing the config conditional statement:

Code: Select all

 $(MAKE) -C libswscale  install-headers
So in my local copy I changed all references to libswscale to have the same conditional config line and violah... it built/installed just fine. And even more importantly ZM v1.23.3 configured/built, and installed just fine as well. Even though I didn't mention "--with-ffmpeg" on the ZM configure line it must've found the ffmpeg binary and configured itself to compile with it because after I got monitors running I was able to set ZM_STREAM_METHOD to mpeg and ZM_OPT_MPEG to ffmpeg and watched my monitors stream using Windows MP's MPEG streaming in the browser.

Anyways, I just wanted to save anyone else the hassel of having to figure this out on their own since I struggled with it for over a week. I'm not even sure what to do with the changes I've made to ffmpeg's MakeFile since their latest svn HEAD code configures/builds/installs without a hitch, so it must already be fixed there. But just in case anyone else is wondering what I changed, here's the "svn diff" output for you:

Code: Select all

Index: Makefile
===================================================================
--- Makefile    (revision 11879)
+++ Makefile    (working copy)
@@ -176,7 +176,7 @@
        $(MAKE)              -C libavformat install-headers
        $(MAKE)              -C libavdevice install-headers
        $(MAKE-$(CONFIG_PP)) -C libpostproc install-headers
-       $(MAKE)              -C libswscale  install-headers
+       $(MAKE-$(CONFIG_SWSCALER)) -C libswscale  install-headers

 uninstall: uninstall-progs uninstall-libs uninstall-headers uninstall-man uninstall-vhook

@@ -196,7 +196,7 @@
        $(MAKE) -C libavformat uninstall-libs
        $(MAKE) -C libavdevice uninstall-libs
        $(MAKE) -C libpostproc uninstall-libs
-       $(MAKE) -C libswscale  uninstall-libs
+       $(MAKE-$(CONFIG_SWSCALER)) -C libswscale  uninstall-libs

 uninstall-headers:
        $(MAKE) -C libavutil   uninstall-headers
@@ -204,7 +204,7 @@
        $(MAKE) -C libavformat uninstall-headers
        $(MAKE) -C libavdevice uninstall-headers
        $(MAKE) -C libpostproc uninstall-headers
-       $(MAKE) -C libswscale  uninstall-headers
+       $(MAKE-$(CONFIG_SWSCALER)) -C libswscale  uninstall-headers
        -rmdir "$(INCDIR)"

 depend dep: .depend .vhookdep
@@ -233,7 +233,7 @@
        $(MAKE) -C libavformat clean
        $(MAKE) -C libavdevice clean
        $(MAKE) -C libpostproc clean
-       $(MAKE) -C libswscale  clean
+       $(MAKE-$(CONFIG_SWSCALER)) -C libswscale  clean
        rm -f *.o *~ .libs gmon.out TAGS $(ALLPROGS) $(ALLPROGS_G) \
           output_example$(EXESUF)
        rm -f doc/*.html doc/*.pod doc/*.1
@@ -248,7 +248,7 @@
        $(MAKE) -C libavformat distclean
        $(MAKE) -C libavdevice distclean
        $(MAKE) -C libpostproc distclean
-       $(MAKE) -C libswscale  distclean
+       $(MAKE-$(CONFIG_SWSCALER)) -C libswscale  distclean
        rm -f .depend .vhookdep version.h config.* *.pc

Cheers,

-Jac

PS: Once again, kudos to you folks in the ZM development team on another great release 1.23.3. It's really a great piece of software.
:D
User avatar
ttsoares
Posts: 31
Joined: Sat Dec 10, 2005 11:06 pm
Contact:

One suggestion

Post by ttsoares »

The fact is a secondary aspect of Reality.
Locked