2740 make error on Ubuntu Intrepid

Forum for questions and support relating to the 1.24.x releases only.
Locked
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

2740 make error on Ubuntu Intrepid

Post 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?
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post 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.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

Thanks, compiling now...
newvisionantenna
Posts: 381
Joined: Sat Jan 17, 2009 7:49 pm
Location: Germany

Post by newvisionantenna »

Same here, no problem. Hope it works out for you as everything appears fine on my end.
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

Seems to be OK, no issues so far.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This is due to an older version of ffmpeg being installed on your system. If you update it it will go away.
Phil
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Post by linuxsense »

I am running the svn version of ffmpeg...a few months old...not new enough?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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).
Phil
Locked