Page 1 of 2

Make error

Posted: Thu Jun 09, 2005 7:54 am
by nero2k3
Hello,

I have followed all the guide but when i do make i get this error:

Code: Select all

make  all-recursive
make[1]: Entering directory `/tmp/zm-1.21.0'
Making all in src
make[2]: Entering directory `/tmp/zm-1.21.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I/usr/include -I/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
In file included from zm_event.cpp:29:
zm_mpeg.h:27:29: ffmpeg/avformat.h: No such file or directory
In file included from zm_event.cpp:29:
zm_mpeg.h:37: use of enum `PixelFormat' without previous declaration
zm_mpeg.h:37: field `pf' has incomplete type
zm_mpeg.h:38: syntax error before `*' token
zm_mpeg.h:39: syntax error before `*' token
zm_mpeg.h:40: syntax error before `*' token
zm_mpeg.h:41: syntax error before `*' token
zm_mpeg.h:42: syntax error before `*' token
zm_mpeg.h:43: syntax error before `*' token
zm_mpeg.h:58: `uint8_t' was not declared in this scope
zm_mpeg.h:58: `buffer' was not declared in this scope
zm_mpeg.h:58: parse error before `,' token
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/tmp/zm-1.21.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/zm-1.21.0'
make: *** [all] Error 2
Can anyone help?

Thanks :)

I have noticed someting that might be causing the error

Posted: Thu Jun 09, 2005 9:44 am
by nero2k3
When i run the perl ./zmconfig.pl -noi i get this output:

Code: Select all

Loading config from 'zmconfig.txt'
Loading config from DB
DBI connect('database=zm;host=hudson.mydomain.net','cctvusr',...) failed: Acces
s denied for user: 'cctvusr@hudson.mydomain.net' (Using password: YES) at ./zmc
onfig.pl line 1619
Error: unable to load options from database: Access denied for user: 'cctvusr@hu
dson.mydomain.net' (Using password: YES)
Saving config to 'zmconfig.txt'
Saving config to DB
DBI connect('database=zm;host=hudson.mydomain.net','cctvusr',...) failed: Acces
s denied for user: 'cctvusr@hudson.mydomain.net' (Using password: YES) at ./zmc
onfig.pl line 1523
Error: unable to save options to database: Access denied for user: 'cctvusr@huds
on.mydomain.net' (Using password: YES)
The user seems to not be connecting to the SQL, but i have given it all permisions!

Any idea?

Thanks

---------

I have fixed this problem, turned out that i had to set the localhost in the config.pl!

Posted: Thu Jun 09, 2005 7:27 pm
by cordel
Your first post here is the important part of the error.
ffmpeg/avformat.h: No such file or directory
Check how you have your configure for --with-ffmpeg=
should be something like /usr or /usr/local depending on who build the package.

Regards,
Cordel

No Change

Posted: Fri Jun 10, 2005 7:57 am
by nero2k3
I have tryed all possible locations

/usr
/usr/local
/tmp

But non of them work!

File does not exist

Posted: Fri Jun 10, 2005 12:27 pm
by nero2k3
Ok i have done a locate and the file: avformat.h does not exist, does this mean i am missing a dependancy?

Thanks

Posted: Fri Jun 10, 2005 1:19 pm
by maciekc
That means that you should install ffmpeg-dev
Or turn off ffmpeg option in zmconfig

So far so good... But no image

Posted: Mon Jun 13, 2005 7:30 am
by nero2k3
Ok, i have managed to get it installed, it turned out that since i was using an RPM of ffmpeg it was not installing everything so i got the source version and that is fine!

Next Problem:
I am in the console, i go to view a monitor but all i get is a broken picture link?

Any ideas, thanks

Posted: Mon Jun 13, 2005 7:38 am
by cordel
Yeah to build from source you needed the develepment package for ffmpeg (ffmpeg-devel)
Broken image could be many things without more info hard to say.
Check your error logs.
What browser?

If your using firefox and nothing stands out in any of the logs try this:
Try a search in the forum for "browser cache" or "checkdocfrequency"
or
http://www.zoneminder.com/forums/viewto ... wser+cache
Also in options under tools tab checking random-string may help.
Regards,
Cordel

Broken Link

Posted: Mon Jun 13, 2005 7:51 am
by nero2k3
I have been using IE, but am trying Firefox now...

No errors by the look of it!

Thanks

Posted: Mon Jun 13, 2005 7:58 am
by cordel
IE requires the use of a java app called cambozola to display the mjpeg stream as IE does not support it natively.

Where do i get it?

Posted: Mon Jun 13, 2005 8:08 am
by nero2k3
Ah ok, where do i get this?

Thanks

Posted: Mon Jun 13, 2005 8:09 am
by cordel
download page here or I could post one one my server if you want something a little newer.
Also dirrectly from charliemouse.com
There are details in the readme about this.

I have it...

Posted: Mon Jun 13, 2005 8:14 am
by nero2k3
I have downloaded it, Is this something that is to be installed on the ZM Box or on my pc?

As it is asking me to build it..?

Thanks

Posted: Mon Jun 13, 2005 8:20 am
by cordel
You DO NOT need to build any thing :shock:
The cambozola.jar file needs to go to your webs root dir (same place as the php files).
and go to options and under the tools tab check the box to enable the use of the file.
Details are in the zm readme document

Ahh

Posted: Mon Jun 13, 2005 8:21 am
by nero2k3
Ah ok, will try that and brb!

Thanks