Page 1 of 1

2740 make error on Ubuntu Intrepid

Posted: Wed Feb 04, 2009 10:16 pm
by linuxsense
Using the following config:

Code: Select all

./configure --with-webdir=/usr/share/zoneminder --with-webuser=www-data --with-webgroup=www-data --with-cgidir=/var/www/cgi-bin --disable-crashtrace
I get this failure:

Code: Select all

mv -f .deps/zm_jpeg.Tpo .deps/zm_jpeg.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include  -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
zm_local_camera.cpp: In member function ‘void LocalCamera::Initialise()’:
zm_local_camera.cpp:230: error: ‘PIX_FMT_VDPAU_H264’ was not declared in this scope
zm_local_camera.cpp:231: error: ‘PIX_FMT_VDPAU_MPEG1’ was not declared in this scope
zm_local_camera.cpp:232: error: ‘PIX_FMT_VDPAU_MPEG2’ was not declared in this scope
zm_local_camera.cpp:425: error: ‘PIX_FMT_VDPAU_H264’ was not declared in this scope
zm_local_camera.cpp:426: error: ‘PIX_FMT_VDPAU_MPEG1’ was not declared in this scope
zm_local_camera.cpp:427: error: ‘PIX_FMT_VDPAU_MPEG2’ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/home/dave/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dave/ZoneMinder-1.24.0'
make: *** [all] Error 2
Suggestions?

Posted: Wed Feb 04, 2009 11:04 pm
by newvisionantenna
You need to edit the following file,

zm_local_camera.cpp

Find the 6 lines mentioned and comment them out.

PIX_FMTVDPAU_H264 and so on, you will find them listed twice. Once about a 1/4 way down and the other section about half or more down. Then rerun the config and you should be fine.

Posted: Wed Feb 04, 2009 11:10 pm
by linuxsense
Thanks, compiling now...

Posted: Wed Feb 04, 2009 11:16 pm
by newvisionantenna
Same here, no problem. Hope it works out for you as everything appears fine on my end.

Posted: Wed Feb 04, 2009 11:19 pm
by linuxsense
Seems to be OK, no issues so far.

Posted: Thu Feb 05, 2009 12:15 am
by zoneminder
This is due to an older version of ffmpeg being installed on your system. If you update it it will go away.

Posted: Thu Feb 05, 2009 12:50 am
by linuxsense
I am running the svn version of ffmpeg...a few months old...not new enough?

Posted: Thu Feb 05, 2009 1:09 am
by zoneminder
Nope. With ffmpeg anything can happen. I did an update tonight testing the 1.24 upgrade and it wouldn't compile. After several reconfigures and cleans and remakes and half an hour investigating I did another update and it worked! Every second counts.

Those lines aren't important so I could remove them (and might before final release) but if you do an update they will go away. The ffmpeg people make it quite clear that if you want any kind of help you have to be running the latest SVN version so I have to keep updating it (not least because I submitted a patch the other day).