Estimados
Al realizar el make ocurre el siguiente problemas
zm_mpeg.h:43: error: uso del enum ‘PixelFormat’ sin declaración previa
zm_mpeg.h:44: error: ISO C++ prohíbe la declaración de ‘AVOutputFormat’ sin tipo
zm_mpeg.h:44: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:45: error: ISO C++ prohíbe la declaración de ‘AVFormatContext’ sin tipo
zm_mpeg.h:45: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:46: error: ISO C++ prohíbe la declaración de ‘AVStream’ sin tipo
zm_mpeg.h:46: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:47: error: ISO C++ prohíbe la declaración de ‘AVFrame’ sin tipo
zm_mpeg.h:47: error: expected ‘;’ before ‘*’ token
zm_mpeg.h:48: error: ISO C++ prohíbe la declaración de ‘AVFrame’ sin tipo
zm_mpeg.h:48: error: expected ‘;’ before ‘*’ token
make[2]: *** [zmc.o] Error 1
make[2]: se sale del directorio `/home/alex/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
¿Cual sera el motivo del error?
esperando sus comentarios saludos attentamente a ustedes
Problema en compilacion zm_mpeg.h
Re: Problema en compilacion zm_mpeg.h
I have nearly the same problem here !
[root@oh1kh ZoneMinder-1.25.0]# make
make all-recursive
make[1]: Siirrytään hakemistoon "/usr/src/ZoneMinder-1.25.0"
Making all in src
make[2]: Siirrytään hakemistoon "/usr/src/ZoneMinder-1.25.0/src"
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_stream.h:27:0,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
zm_mpeg.h:43:7: virhe: use of enum "PixelFormat" without previous declaration
zm_mpeg.h:44:2: virhe: "AVOutputFormat" does not name a type
zm_mpeg.h:45:2: virhe: "AVFormatContext" does not name a type
zm_mpeg.h:46:2: virhe: "AVStream" does not name a type
zm_mpeg.h:47:2: virhe: "AVFrame" does not name a type
zm_mpeg.h:48:2: virhe: "AVFrame" does not name a type
make[2]: *** [zmc.o] Virhe 1
make[2]: Poistutaan hakemistosta "/usr/src/ZoneMinder-1.25.0/src"
make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta "/usr/src/ZoneMinder-1.25.0"
make: *** [all] Virhe 2
System is Fedora 15 with kernel 3.1.5.
We did try to compile on another computer that also has Fedora 15. After yum:ing some requred rpms, and adding one #include to source it compiled ok till the end !?!?!?!?!
But in this computer the error appears right on the start of make.
So what is the missing rpm? "./configure" does not complain anything on both machines.
It seems to have something to do with libavXXXXX (ffmpeg).
Any glue?
[root@oh1kh ZoneMinder-1.25.0]# make
make all-recursive
make[1]: Siirrytään hakemistoon "/usr/src/ZoneMinder-1.25.0"
Making all in src
make[2]: Siirrytään hakemistoon "/usr/src/ZoneMinder-1.25.0/src"
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from zm_stream.h:27:0,
from zm_event.h:39,
from zm_zone.h:27,
from zm_monitor.h:26,
from zmc.cpp:28:
zm_mpeg.h:43:7: virhe: use of enum "PixelFormat" without previous declaration
zm_mpeg.h:44:2: virhe: "AVOutputFormat" does not name a type
zm_mpeg.h:45:2: virhe: "AVFormatContext" does not name a type
zm_mpeg.h:46:2: virhe: "AVStream" does not name a type
zm_mpeg.h:47:2: virhe: "AVFrame" does not name a type
zm_mpeg.h:48:2: virhe: "AVFrame" does not name a type
make[2]: *** [zmc.o] Virhe 1
make[2]: Poistutaan hakemistosta "/usr/src/ZoneMinder-1.25.0/src"
make[1]: *** [all-recursive] Virhe 1
make[1]: Poistutaan hakemistosta "/usr/src/ZoneMinder-1.25.0"
make: *** [all] Virhe 2
System is Fedora 15 with kernel 3.1.5.
We did try to compile on another computer that also has Fedora 15. After yum:ing some requred rpms, and adding one #include to source it compiled ok till the end !?!?!?!?!
But in this computer the error appears right on the start of make.
So what is the missing rpm? "./configure" does not complain anything on both machines.
It seems to have something to do with libavXXXXX (ffmpeg).
Any glue?
Re: Problema en compilacion zm_mpeg.h
Little more information:
I'm worred about ./configure's reporting:
checking for mysql/mysql.h... yes
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... no
checking for libavutil/avutil.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... no
checking for libavcodec/avcodec.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... no
checking for libavformat/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... no
checking for libswscale/swscale.h... no
Altough following ffmpeg--realated rpms are installed:
[root@oh1kh ZoneMinder-1.25.0]# rpm -qa | grep ffmpeg
ffmpeg-0.7.6-1.fc15.i686
ffmpeg-devel-0.7.6-1.fc15.i686
ffmpeg2theora-0.27-1.fc14.i686
gstreamer-ffmpeg-0.10.11-2.fc15.i686
ffmpegthumbnailer-2.0.7-1.fc15.i686
ffmpeg2dirac-0.2.0-1.fc15.i686
ffmpeg-libs-0.7.6-1.fc15.i686
ffmpegthumbnailer-devel-2.0.7-1.fc15.i686
[root@oh1kh ZoneMinder-1.25.0]#
And they provide following:
# cd /usr/include/
[root@oh1kh include]# tree ffmpeg
ffmpeg
|-- libavcodec
| |-- avcodec.h
| |-- avfft.h
| |-- dxva2.h
| |-- opt.h
| |-- vaapi.h
| |-- vdpau.h
| |-- version.h
| `-- xvmc.h
|-- libavdevice
| `-- avdevice.h
|-- libavfilter
| |-- avcodec.h
| |-- avfiltergraph.h
| |-- avfilter.h
| |-- vsink_buffer.h
| `-- vsrc_buffer.h
|-- libavformat
| |-- avformat.h
| |-- avio.h
| `-- version.h
|-- libavutil
| |-- adler32.h
| |-- aes.h
| |-- attributes.h
| |-- audioconvert.h
| |-- avassert.h
| |-- avconfig.h
| |-- avstring.h
| |-- avutil.h
| |-- base64.h
| |-- bswap.h
| |-- common.h
| |-- cpu.h
| |-- crc.h
| |-- dict.h
| |-- error.h
| |-- eval.h
| |-- fifo.h
| |-- file.h
| |-- imgutils.h
| |-- intfloat_readwrite.h
| |-- intreadwrite.h
| |-- lfg.h
| |-- log.h
| |-- lzo.h
| |-- mathematics.h
| |-- md5.h
| |-- mem.h
| |-- opt.h
| |-- parseutils.h
| |-- pixdesc.h
| |-- pixfmt.h
| |-- random_seed.h
| |-- rational.h
| |-- samplefmt.h
| |-- sha1.h
| `-- sha.h
|-- libpostproc
| `-- postprocess.h
`-- libswscale
`-- swscale.h
I have tried several different ways to tell "--with-ffmpeg=" that those files really exist
as also library binaries at:
[root@oh1kh ZoneMinder-1.25.0]# rpm -ql ffmpeg-libs-0.7.6-1.fc15.i686
/usr/lib/libavcodec.so.52
/usr/lib/libavcodec.so.52.122.0
/usr/lib/libavdevice.so.52
/usr/lib/libavdevice.so.52.5.0
/usr/lib/libavfilter.so.1
/usr/lib/libavfilter.so.1.80.0
/usr/lib/libavformat.so.52
/usr/lib/libavformat.so.52.110.0
/usr/lib/libavutil.so.50
/usr/lib/libavutil.so.50.43.0
/usr/lib/libpostproc.so.51
/usr/lib/libpostproc.so.51.2.0
/usr/lib/libswscale.so.0
/usr/lib/libswscale.so.0.14.1
How ever ./configure always says "no" to those and I think that will lead to problem in "make". I just can figure out what really should be done now.
I'm worred about ./configure's reporting:
checking for mysql/mysql.h... yes
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... no
checking for libavutil/avutil.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... no
checking for libavcodec/avcodec.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... no
checking for libavformat/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... no
checking for libswscale/swscale.h... no
Altough following ffmpeg--realated rpms are installed:
[root@oh1kh ZoneMinder-1.25.0]# rpm -qa | grep ffmpeg
ffmpeg-0.7.6-1.fc15.i686
ffmpeg-devel-0.7.6-1.fc15.i686
ffmpeg2theora-0.27-1.fc14.i686
gstreamer-ffmpeg-0.10.11-2.fc15.i686
ffmpegthumbnailer-2.0.7-1.fc15.i686
ffmpeg2dirac-0.2.0-1.fc15.i686
ffmpeg-libs-0.7.6-1.fc15.i686
ffmpegthumbnailer-devel-2.0.7-1.fc15.i686
[root@oh1kh ZoneMinder-1.25.0]#
And they provide following:
# cd /usr/include/
[root@oh1kh include]# tree ffmpeg
ffmpeg
|-- libavcodec
| |-- avcodec.h
| |-- avfft.h
| |-- dxva2.h
| |-- opt.h
| |-- vaapi.h
| |-- vdpau.h
| |-- version.h
| `-- xvmc.h
|-- libavdevice
| `-- avdevice.h
|-- libavfilter
| |-- avcodec.h
| |-- avfiltergraph.h
| |-- avfilter.h
| |-- vsink_buffer.h
| `-- vsrc_buffer.h
|-- libavformat
| |-- avformat.h
| |-- avio.h
| `-- version.h
|-- libavutil
| |-- adler32.h
| |-- aes.h
| |-- attributes.h
| |-- audioconvert.h
| |-- avassert.h
| |-- avconfig.h
| |-- avstring.h
| |-- avutil.h
| |-- base64.h
| |-- bswap.h
| |-- common.h
| |-- cpu.h
| |-- crc.h
| |-- dict.h
| |-- error.h
| |-- eval.h
| |-- fifo.h
| |-- file.h
| |-- imgutils.h
| |-- intfloat_readwrite.h
| |-- intreadwrite.h
| |-- lfg.h
| |-- log.h
| |-- lzo.h
| |-- mathematics.h
| |-- md5.h
| |-- mem.h
| |-- opt.h
| |-- parseutils.h
| |-- pixdesc.h
| |-- pixfmt.h
| |-- random_seed.h
| |-- rational.h
| |-- samplefmt.h
| |-- sha1.h
| `-- sha.h
|-- libpostproc
| `-- postprocess.h
`-- libswscale
`-- swscale.h
I have tried several different ways to tell "--with-ffmpeg=" that those files really exist
as also library binaries at:
[root@oh1kh ZoneMinder-1.25.0]# rpm -ql ffmpeg-libs-0.7.6-1.fc15.i686
/usr/lib/libavcodec.so.52
/usr/lib/libavcodec.so.52.122.0
/usr/lib/libavdevice.so.52
/usr/lib/libavdevice.so.52.5.0
/usr/lib/libavfilter.so.1
/usr/lib/libavfilter.so.1.80.0
/usr/lib/libavformat.so.52
/usr/lib/libavformat.so.52.110.0
/usr/lib/libavutil.so.50
/usr/lib/libavutil.so.50.43.0
/usr/lib/libpostproc.so.51
/usr/lib/libpostproc.so.51.2.0
/usr/lib/libswscale.so.0
/usr/lib/libswscale.so.0.14.1
How ever ./configure always says "no" to those and I think that will lead to problem in "make". I just can figure out what really should be done now.
Re: Problema en compilacion zm_mpeg.h
Now it it enough tests for today. I have spent some 6h by trying to make "./configure" find libavXXX.h:s
No way !
Finally I made symlinks in /usr/include that pointed over (/usr/include/)ffmpeg so that libavXXX directories found directly from /usr/include.
It made change to "./configure"'s result, but not a good change. And "make", as guessed, still stop right at beginning with same error.
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... yes
configure: WARNING: libavutil/avutil.h: present but cannot be compiled
configure: WARNING: libavutil/avutil.h: check for missing prerequisite headers?
configure: WARNING: libavutil/avutil.h: see the Autoconf documentation
configure: WARNING: libavutil/avutil.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavutil/avutil.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libavutil/avutil.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... yes
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled
configure: WARNING: libavcodec/avcodec.h: check for missing prerequisite headers?
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation
configure: WARNING: libavcodec/avcodec.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavcodec/avcodec.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libavcodec/avcodec.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... yes
configure: WARNING: libavformat/avformat.h: present but cannot be compiled
configure: WARNING: libavformat/avformat.h: check for missing prerequisite headers?
configure: WARNING: libavformat/avformat.h: see the Autoconf documentation
configure: WARNING: libavformat/avformat.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavformat/avformat.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libavformat/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... yes
configure: WARNING: libswscale/swscale.h: present but cannot be compiled
configure: WARNING: libswscale/swscale.h: check for missing prerequisite headers?
configure: WARNING: libswscale/swscale.h: see the Autoconf documentation
configure: WARNING: libswscale/swscale.h: section "Present But Cannot Be Compiled"
configure: WARNING: libswscale/swscale.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libswscale/swscale.h... no
BTW tried also source from zoneminder svn. It fails same way.
No way !
Finally I made symlinks in /usr/include that pointed over (/usr/include/)ffmpeg so that libavXXX directories found directly from /usr/include.
It made change to "./configure"'s result, but not a good change. And "make", as guessed, still stop right at beginning with same error.
checking libavutil/avutil.h usability... no
checking libavutil/avutil.h presence... yes
configure: WARNING: libavutil/avutil.h: present but cannot be compiled
configure: WARNING: libavutil/avutil.h: check for missing prerequisite headers?
configure: WARNING: libavutil/avutil.h: see the Autoconf documentation
configure: WARNING: libavutil/avutil.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavutil/avutil.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libavutil/avutil.h... no
checking libavcodec/avcodec.h usability... no
checking libavcodec/avcodec.h presence... yes
configure: WARNING: libavcodec/avcodec.h: present but cannot be compiled
configure: WARNING: libavcodec/avcodec.h: check for missing prerequisite headers?
configure: WARNING: libavcodec/avcodec.h: see the Autoconf documentation
configure: WARNING: libavcodec/avcodec.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavcodec/avcodec.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libavcodec/avcodec.h... no
checking libavformat/avformat.h usability... no
checking libavformat/avformat.h presence... yes
configure: WARNING: libavformat/avformat.h: present but cannot be compiled
configure: WARNING: libavformat/avformat.h: check for missing prerequisite headers?
configure: WARNING: libavformat/avformat.h: see the Autoconf documentation
configure: WARNING: libavformat/avformat.h: section "Present But Cannot Be Compiled"
configure: WARNING: libavformat/avformat.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libavformat/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... yes
configure: WARNING: libswscale/swscale.h: present but cannot be compiled
configure: WARNING: libswscale/swscale.h: check for missing prerequisite headers?
configure: WARNING: libswscale/swscale.h: see the Autoconf documentation
configure: WARNING: libswscale/swscale.h: section "Present But Cannot Be Compiled"
configure: WARNING: libswscale/swscale.h: proceeding with the compiler's result
configure: WARNING: ## ------------------------------------------------------------------------- ##
configure: WARNING: ## Report this to http://www.zoneminder.com/forums/ - Please check FAQ first ##
configure: WARNING: ## ------------------------------------------------------------------------- ##
checking for libswscale/swscale.h... no
BTW tried also source from zoneminder svn. It fails same way.
Re: Problema en compilacion zm_mpeg.h
Now I had change to look the previously mentioned other PC that also has Fedora 15 and did compile ok.
(I did not done the test, thats why I did not know what was the differences exactly)
On that PC there was NO ffmpeg-rpm and NO ffmpeg-devel-rpm. Just libs-ffmpeg.
So it configured ok and compiled ok (after one include to one file that I still do not know, but will find out ;( )
Then I added ffmpeg-rpm to it. Still going ok.
After added ffmpeg-devel "make" stopped with same error that I had on other machine. Removing of
ffmpeg-devel fixed the compile problem again.
So ./configure somehow finds libavXXXX.h files (@ /usr/include/ffmpeg ) altough it says "no". And at the time
of compile it how ever fails to use them that causes those errors.
Remove of ffmpeg-devel makes compile go, but how ZM works then is not known yet.
Best would be that someone who have enough programming skills (I do not have) would check why libavXXX.h:s can not be used under /usr/include/ffmpeg with or without configure parameter --with-ffmpeg=/usr/linclude/ffmpeg.
(or has Fedora's [15] ffmpeg-devel rpm somehow faulty).
(I did not done the test, thats why I did not know what was the differences exactly)
On that PC there was NO ffmpeg-rpm and NO ffmpeg-devel-rpm. Just libs-ffmpeg.
So it configured ok and compiled ok (after one include to one file that I still do not know, but will find out ;( )
Then I added ffmpeg-rpm to it. Still going ok.
After added ffmpeg-devel "make" stopped with same error that I had on other machine. Removing of
ffmpeg-devel fixed the compile problem again.
So ./configure somehow finds libavXXXX.h files (@ /usr/include/ffmpeg ) altough it says "no". And at the time
of compile it how ever fails to use them that causes those errors.
Remove of ffmpeg-devel makes compile go, but how ZM works then is not known yet.
Best would be that someone who have enough programming skills (I do not have) would check why libavXXX.h:s can not be used under /usr/include/ffmpeg with or without configure parameter --with-ffmpeg=/usr/linclude/ffmpeg.
(or has Fedora's [15] ffmpeg-devel rpm somehow faulty).
Re: Problema en compilacion zm_mpeg.h
Yep.
Removed ffmpeg-devel and make goes until another error in zm_local_camera.ccp
To fix that open src/zm_local_camera.ccp and add line
#define <linux/limits.h>
to the begin of file where there are other similar defines. Do "make" and "make install".
How it really works after that? Do not ask yet...
Removed ffmpeg-devel and make goes until another error in zm_local_camera.ccp
To fix that open src/zm_local_camera.ccp and add line
#define <linux/limits.h>
to the begin of file where there are other similar defines. Do "make" and "make install".
How it really works after that? Do not ask yet...
Re: Problema en compilacion zm_mpeg.h
Finally got running Zoneminder. Just only one problem, no images from camera !
Otherwise web pages seem to work.
Sad.
functions.php is expecting sometihing on /tmp/zm/zmc_XXXXXXXXXs.sock (by http error log) and in in /tmp/zm there is ALMOST
similar file. Just the end goes XXXXXw.sock . So the "s" should be "w" or other way around depending on what side you are looking.
That have to be googled when time permits.
But found another solution ( for Fedora 15 + latest ffmpeg rpms):
You may install also ffmpeg-devel-rpm.
After done so change directry to:
/usr/include
Give commands to create symlinks that will bring libavXXXXs down over ffmpeg/-directory:
ln -s ffmpeg/libavcodec
ln -s ffmpeg/libavdevice
ln -s ffmpeg/libavfilter
ln -s ffmpeg/libavformat
ln -s ffmpeg/libavutil
ln -s ffmpeg/libpostproc
ln -s ffmpeg/libswscale
They should now appear as symlinks at /usr/include
do "./configure" with parameter CPPFLAGS=-D__STDC_CONSTANT_MACROS . Again it is same if you use --with-ffmpeg=/usr/include/ffmpeg or not. Does not make any difference.
For example:
./configure --with-webdir=/var/www/kamera/html/zm --with-cgidir=/var/www/kamera/cgi-bin --with-webuser=apache --with-webgroup=apache --with-ffmpeg=/usr/include/ffmpeg ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass CPPFLAGS=-D__STDC_CONSTANT_MACROS
Should go through. And now (first time !) you can see:
hecking for mysql/mysql.h... yes
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking libswscale/swscale.h usability... yes
checking libswscale/swscale.h presence... yes
checking for libswscale/swscale.h... yes
Then make and make install and all other fixes you should do that "make install" does not for you(and you have to dig them out from google and zm faq)
And then w'll see how this works. Do we have some images also on web screen or not... Perhaps tomorrow...
Otherwise web pages seem to work.
Sad.
functions.php is expecting sometihing on /tmp/zm/zmc_XXXXXXXXXs.sock (by http error log) and in in /tmp/zm there is ALMOST
similar file. Just the end goes XXXXXw.sock . So the "s" should be "w" or other way around depending on what side you are looking.
That have to be googled when time permits.
But found another solution ( for Fedora 15 + latest ffmpeg rpms):
You may install also ffmpeg-devel-rpm.
After done so change directry to:
/usr/include
Give commands to create symlinks that will bring libavXXXXs down over ffmpeg/-directory:
ln -s ffmpeg/libavcodec
ln -s ffmpeg/libavdevice
ln -s ffmpeg/libavfilter
ln -s ffmpeg/libavformat
ln -s ffmpeg/libavutil
ln -s ffmpeg/libpostproc
ln -s ffmpeg/libswscale
They should now appear as symlinks at /usr/include
do "./configure" with parameter CPPFLAGS=-D__STDC_CONSTANT_MACROS . Again it is same if you use --with-ffmpeg=/usr/include/ffmpeg or not. Does not make any difference.
For example:
./configure --with-webdir=/var/www/kamera/html/zm --with-cgidir=/var/www/kamera/cgi-bin --with-webuser=apache --with-webgroup=apache --with-ffmpeg=/usr/include/ffmpeg ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass CPPFLAGS=-D__STDC_CONSTANT_MACROS
Should go through. And now (first time !) you can see:
hecking for mysql/mysql.h... yes
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking libswscale/swscale.h usability... yes
checking libswscale/swscale.h presence... yes
checking for libswscale/swscale.h... yes
Then make and make install and all other fixes you should do that "make install" does not for you(and you have to dig them out from google and zm faq)
And then w'll see how this works. Do we have some images also on web screen or not... Perhaps tomorrow...
Re: Problema en compilacion zm_mpeg.h
Try to add this directive at the ./configure... process:
CPPFLAGS=-D__STDC_CONSTANT_MACROS
CPPFLAGS=-D__STDC_CONSTANT_MACROS
The fact is a secondary aspect of Reality.