Page 1 of 3
Install error with newest 1.24 2734
Posted: Wed Jan 28, 2009 7:31 pm
by foxtroop11
Just downloaded the newest source and found it won't install where the last version would. I'm not sure if something changed, but I seem to be doing everything the same way i've been doing it.
I'm getting this while running make install,
a.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:167: error: ‘V4L2_PIX_FMT_Y16’ was not declared in this scope
zm_local_camera.cpp:181: error: ‘V4L2_PIX_FMT_SGBRG8’ was not declared in this scope
zm_local_camera.cpp:182: error: ‘V4L2_PIX_FMT_SBGGR16’ was not declared in this scope
zm_local_camera.cpp:191: error: ‘V4L2_PIX_FMT_SPCA501’ was not declared in this scope
zm_local_camera.cpp:192: error: ‘V4L2_PIX_FMT_SPCA505’ was not declared in this scope
zm_local_camera.cpp:193: error: ‘V4L2_PIX_FMT_SPCA508’ was not declared in this scope
zm_local_camera.cpp:194: error: ‘V4L2_PIX_FMT_SPCA561’ was not declared in this scope
zm_local_camera.cpp:195: error: ‘V4L2_PIX_FMT_PAC207’ was not declared in this scope
zm_local_camera.cpp:196: error: ‘V4L2_PIX_FMT_PJPG’ was not declared in this scope
zm_local_camera.cpp:197: error: ‘V4L2_PIX_FMT_YVYU’ was not declared in this scope
make[1]: *** [zm_local_camera.o] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.24.0/src'
make: *** [install-recursive] Error 1
Posted: Wed Jan 28, 2009 7:46 pm
by zoneminder
I have changed lots of things
However currently I am trying to support systems with and without ffmpeg, and with and without video for linux 2 plus various other things. As I don't have systems that correspond to all the variants I can't always detect when things aren't quite right.
I suspect your issue is that you maybe don't have the ffmpeg header files or libraries installed. Can you tell me if this is the case. Either way it shouldn't barf so I will fix it but it would be useful to know either way.
Posted: Wed Jan 28, 2009 7:48 pm
by zoneminder
Actually, as it's only complaining about some of the defines it looks like perhaps you just have an older version of ffmpeg. If so can you check, it will be in version.h in the ffmpeg build directory. I have 16683 at the moment.
Posted: Wed Jan 28, 2009 7:53 pm
by foxtroop11
Hmm,
I'm not real smart on all this, but I did go into my /usr/local/src/ffmpeg and did make uninstall-libs and make uninstall which appeared to remove everything.
I then did the following,
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
cd /usr/local/ffmpeg
./configure --enable-gpl --enable-swscale --enable-shared --enable-pthreads
make
make install
make install-libs
I did this after I couldn't get it installed thinking maybe I needed an even newer version of ffmpeg. This is all done on 8.04 ubuntu. I had everything installed and updated to the version prior to the two quick releases today.
almost forgot,
FFmpeg version SVN-r16847, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-swscale --enable-shared --enable-pthreads
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Jan 28 2009 14:20:43, gcc: 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
FFmpeg SVN-r16847
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
Posted: Wed Jan 28, 2009 7:54 pm
by zoneminder
When did you do the ffmpeg install? What version is in /usr/local/ffmpeg/version.h ?
Posted: Wed Jan 28, 2009 8:01 pm
by curtishall
zoneminder wrote:When did you do the ffmpeg install? What version is in /usr/local/ffmpeg/version.h ?
I compiled 2722 yesterday fine with ffmpeg:
#define FFMPEG_VERSION "SVN-r16817"
My configure line for ffmpeg was just:
./configure --enable-swscale --enable-gpl
Posted: Wed Jan 28, 2009 8:02 pm
by foxtroop11
I think I edited my post before you had a chance to look. I tried just installing your newest release with the ffmpeg I had working with the older version. When I saw the error I then tried to reinstall ffmpeg like 10 minutes or so ago using the commands in the above post. I went to /usr/local/ffmpeg but for some reason don't see the .h file you mention. I did do ffmpeg -version and it spit out the stuff above, hope that helps.
Just stepped on your post Curtis, I'll try it with the config line you mention.
Posted: Wed Jan 28, 2009 8:09 pm
by zoneminder
Maybe it's me with the outdated ffmpeg version then! I'll update and rebuild.
Posted: Wed Jan 28, 2009 8:12 pm
by foxtroop11
curtishall wrote:zoneminder wrote:When did you do the ffmpeg install? What version is in /usr/local/ffmpeg/version.h ?
I compiled 2722 yesterday fine with ffmpeg:
#define FFMPEG_VERSION "SVN-r16817"
My configure line for ffmpeg was just:
./configure --enable-swscale --enable-gpl
I forgot to mention, that's the build I did the other day with no problem and the same version of ffmpeg I had been using in the past. It's just this newest one is giving me problems. I'll see what phil comes up with using the newest ffmpeg.
Posted: Wed Jan 28, 2009 8:27 pm
by foxtroop11
I got alittle further, lol
I went into that zm_local_camara.cpp file and deleated the line's it was showing in the error. It looked like it was going to install and then this,
make install-exec-hook
make[2]: Entering directory `/usr/src/ZoneMinder-1.24.0/src'
( cd /usr/local/bin; mkdir -p /usr/lib/cgi-bin/; mv zms /usr/lib/cgi-bin/ )
( cd /usr/lib/cgi-bin/; chown www-data:www-data zms; ln -f zms nph-zms )
( cd /usr/local/bin; chmod u+s zmfix )
make[2]: Leaving directory `/usr/src/ZoneMinder-1.24.0/src'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/usr/src/ZoneMinder-1.24.0/src'
Almost got it,

Posted: Wed Jan 28, 2009 8:30 pm
by foxtroop11
Nevermind,
Got it installed, did what I said above but went into the /usr/lib/cgi-bin directory and deleated the two old files from my older Zoneminder install.
So what do you think are going to be the effects of removing those entries in zm_local_camera.cpp?
Posted: Wed Jan 28, 2009 11:55 pm
by Tiggy
Getting same error
zm_local_camera.cpp:195: error: âV4L2_PIX_FMT_PAC207â was not declared in this scope
zm_local_camera.cpp:196: error: âV4L2_PIX_FMT_PJPGâ was not declared in this scope
zm_local_camera.cpp:197: error: âV4L2_PIX_FMT_YVYUâ was not declared in this scope
make[2]: *** [zm_local_camera.o] Error 1
make[2]: Leaving directory `/home/tiggy/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tiggy/ZoneMinder-1.24.0'
make: *** [all] Error 2
configure goes fine using following configure line:
./configure --with-webdir=/home/zm/public_html --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-ffmpeg=/usr ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=security ZM_DB_PASS=xxx
I just installed the new ffmpeg so this should be ok
tiggy@gecko:~/ZoneMinder-1.24.0$ /usr/bin/ffmpeg -version
FFmpeg version SVN-r16847, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-swscale --enable-shared --enable-pthreads --prefix=/usr
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
built on Jan 28 2009 23:37:53, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
FFmpeg SVN-r16847
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
Forgot to mention that I get same error when ./configure without the --with-ffmpeg=/usr line
Posted: Thu Jan 29, 2009 7:23 am
by neosmatrix
Same here:
Code: Select all
./configure --with-mysql=/usr/mysql --with-webdir=/var/www/html/admin/zoneminder --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --with-ffmpeg=/usr --with-libarch=lib64 --enable-mmap=yes
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/mysql/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:181: Fehler: »V4L2_PIX_FMT_SGBRG8« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:191: Fehler: »V4L2_PIX_FMT_SPCA501« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:192: Fehler: »V4L2_PIX_FMT_SPCA505« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:193: Fehler: »V4L2_PIX_FMT_SPCA508« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:194: Fehler: »V4L2_PIX_FMT_SPCA561« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:195: Fehler: »V4L2_PIX_FMT_PAC207« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:196: Fehler: »V4L2_PIX_FMT_PJPG« wurde in diesem Gültigkeitsbereich nicht definiert
zm_local_camera.cpp:197: Fehler: »V4L2_PIX_FMT_YVYU« wurde in diesem Gültigkeitsbereich nicht definiert
make[2]: *** [zm_local_camera.o] Fehler 1
make[2]: Leaving directory `/home/Linux_Packages/zoneminder/ZoneMinder-1.24.0/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/Linux_Packages/zoneminder/ZoneMinder-1.24.0'
make: *** [all] Fehler 2
Code: Select all
FFmpeg version SVN-r16840, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-shared --enable-gpl --enable-zlib --enable-libfaadbin --enable-libfaad --enable-libfaac --enable-libxvid --prefix=/usr --enable-postproc --enable-pthreads --enable-libmp3lame --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-swscale --enable-nonfree --disable-stripping --enable-avfilter --enable-libspeex --enable-avfilter-lavf --enable-xvmc --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --enable-vdpau
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 3. 0 / 0. 3. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jan 28 2009 05:02:49, gcc: 4.3.3
At least one output file must be specified
Posted: Thu Jan 29, 2009 9:45 am
by Tiggy
As for foxtroop11, I just commented out those error lines in the src/zm_local_camera.cpp file and make went without any error.
I got the latest zm running now with my pwc driven cam working as a charm
Only problem is I can't seem to make my Phlips webcam working ... used to work with the 1.3.23 dev version (uvc support one) .
Could be wrong parameter, but I don't know the right ones ... can't get info from cam with
tiggy@gecko:~$ sudo zmu -d /dev/video0 -q -v
Error, failed to get channel 0 attributes: Invalid argument
tiggy@gecko:~$
This built supports uvcvideo driven cams right?
Posted: Thu Jan 29, 2009 9:51 am
by zoneminder
I have been talking a complete load of b*ll*x it appears, my excuse was that it was late.
The problem files are not ffmpeg but the Video 4 Linux 2 headers. There seems to be more than one version out there, which differ in what they contain. For now commenting out the offending lines is probably the right course of action, it won't affect functionality as those defines are included only for the sake of completeness and are not directly supported anyway.
If you have hit this issue it would be useful to know what distro and version you are running on.