Make error

Support and queries relating to all previous versions of ZoneMinder
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

Make error

Post 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 :)
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

I have noticed someting that might be causing the error

Post 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!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

No Change

Post by nero2k3 »

I have tryed all possible locations

/usr
/usr/local
/tmp

But non of them work!
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

File does not exist

Post 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
maciekc
Posts: 150
Joined: Wed Feb 23, 2005 9:21 pm
Location: Czestochowa, POLAND

Post by maciekc »

That means that you should install ffmpeg-dev
Or turn off ffmpeg option in zmconfig
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

So far so good... But no image

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

Broken Link

Post by nero2k3 »

I have been using IE, but am trying Firefox now...

No errors by the look of it!

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

Post by cordel »

IE requires the use of a java app called cambozola to display the mjpeg stream as IE does not support it natively.
Last edited by cordel on Mon Jun 13, 2005 8:08 am, edited 1 time in total.
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

Where do i get it?

Post by nero2k3 »

Ah ok, where do i get this?

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

Post 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.
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

I have it...

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
nero2k3
Posts: 22
Joined: Thu Jun 09, 2005 7:50 am

Ahh

Post by nero2k3 »

Ah ok, will try that and brb!

Thanks
Locked