Install error with newest 1.24 2734
-
- Posts: 41
- Joined: Thu Jan 01, 2009 8:11 am
Install error with newest 1.24 2734
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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.
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.
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 41
- Joined: Thu Jan 01, 2009 8:11 am
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
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
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 440
- Joined: Sat Sep 25, 2004 12:45 am
- Location: Fulton, MO
-
- Posts: 41
- Joined: Thu Jan 01, 2009 8:11 am
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.
Just stepped on your post Curtis, I'll try it with the config line you mention.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 41
- Joined: Thu Jan 01, 2009 8:11 am
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.curtishall wrote:I compiled 2722 yesterday fine with ffmpeg:zoneminder wrote:When did you do the ffmpeg install? What version is in /usr/local/ffmpeg/version.h ?
#define FFMPEG_VERSION "SVN-r16817"
My configure line for ffmpeg was just:
./configure --enable-swscale --enable-gpl
-
- Posts: 41
- Joined: Thu Jan 01, 2009 8:11 am
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,
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,
-
- Posts: 41
- Joined: Thu Jan 01, 2009 8:11 am
Getting same error
configure goes fine using following configure line: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
I just installed the new ffmpeg so this should be ok./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
Forgot to mention that I get same error when ./configure without the --with-ffmpeg=/usr linetiggy@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
-
- Posts: 24
- Joined: Wed Jan 30, 2008 8:22 pm
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
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
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
This built supports uvcvideo driven cams right?tiggy@gecko:~$ sudo zmu -d /dev/video0 -q -v
Error, failed to get channel 0 attributes: Invalid argument
tiggy@gecko:~$
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
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.
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.
Phil