Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint 12
-
- Posts: 3
- Joined: Sun Dec 18, 2011 7:10 pm
Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint 12
When I try the configure I get the following warnings:
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_PASS=<my_password>
.........
checking for mysql/mysql.h... yes
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... no
checking for libswscale/swscale.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
Not surprisingly, make have truble compiling that section:
mint12 ZoneMinder-1.25.0 # make
make all-recursive
make[1]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0'
Making all in src
make[2]: Entering directory `/home/george/Downloads/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: error: use of enum ‘PixelFormat’ without previous declaration
zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0'
make: *** [all] Error 2
before running ./configure I've installed via Synaptic:
libavutil-dev 4:0.7.3 (latest)
libavcodec-dev 4:0.7.3 (latest)
libavformat-dev 4:0.7.3
Anyone run into this problem ?
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_PASS=<my_password>
.........
checking for mysql/mysql.h... yes
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... no
checking for libswscale/swscale.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
Not surprisingly, make have truble compiling that section:
mint12 ZoneMinder-1.25.0 # make
make all-recursive
make[1]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0'
Making all in src
make[2]: Entering directory `/home/george/Downloads/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: error: use of enum ‘PixelFormat’ without previous declaration
zm_mpeg.h:44:2: error: ‘AVOutputFormat’ does not name a type
zm_mpeg.h:45:2: error: ‘AVFormatContext’ does not name a type
zm_mpeg.h:46:2: error: ‘AVStream’ does not name a type
zm_mpeg.h:47:2: error: ‘AVFrame’ does not name a type
zm_mpeg.h:48:2: error: ‘AVFrame’ does not name a type
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0'
make: *** [all] Error 2
before running ./configure I've installed via Synaptic:
libavutil-dev 4:0.7.3 (latest)
libavcodec-dev 4:0.7.3 (latest)
libavformat-dev 4:0.7.3
Anyone run into this problem ?
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
Add CPPFLAGS="${CFLAGS} -D__STDC_CONSTANT_MACROS" to your ./configure
mastertheknife
mastertheknife
Kfir Itzhak.
-
- Posts: 3
- Joined: Sun Dec 18, 2011 7:10 pm
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
Thank you, Ytzhak
You advice was right to the point, after implementing it I get no more relevant warnings when I run ./configure.
However, it still throws errors (in a later stage) during make. It is related to ffmpeg (which I've instaled precompiled from ubuntu repositories (latest version)).
I guess I have to look into it, check the forums to see what is the compatible version and maybe get it from videolan and compile it. Oh well...
Thank you again for quickly helping me get over the first error.
"mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In destructor ‘virtual FfmpegCamera::~FfmpegCamera()’:
zm_ffmpeg_camera.cpp:51:42: error: ‘sws_freeContext’ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:94:10: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:94:76: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:10: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:46: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0'
make: *** [all] Error 2"
You advice was right to the point, after implementing it I get no more relevant warnings when I run ./configure.
However, it still throws errors (in a later stage) during make. It is related to ffmpeg (which I've instaled precompiled from ubuntu repositories (latest version)).
I guess I have to look into it, check the forums to see what is the compatible version and maybe get it from videolan and compile it. Oh well...
Thank you again for quickly helping me get over the first error.
"mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In destructor ‘virtual FfmpegCamera::~FfmpegCamera()’:
zm_ffmpeg_camera.cpp:51:42: error: ‘sws_freeContext’ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:94:10: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:94:76: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:10: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:46: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0'
make: *** [all] Error 2"
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
I seem to be stuck here now, alsogeorgedone wrote:Thank you, Ytzhak
You advice was right to the point, after implementing it I get no more relevant warnings when I run ./configure.
However, it still throws errors (in a later stage) during make. It is related to ffmpeg (which I've instaled precompiled from ubuntu repositories (latest version)).
I guess I have to look into it, check the forums to see what is the compatible version and maybe get it from videolan and compile it. Oh well...
Thank you again for quickly helping me get over the first error.
"mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -march=native -O2 -pipe -D__STDC_CONSTANT_MACROS -march=native -O2 -pipe -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In destructor ‘virtual FfmpegCamera::~FfmpegCamera()’:
zm_ffmpeg_camera.cpp:51:42: error: ‘sws_freeContext’ was not declared in this scope
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:94:10: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:94:76: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1050) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:10: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
zm_ffmpeg_camera.cpp:125:46: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3650) [-Wdeprecated-declarations]
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0'
make: *** [all] Error 2"
Cheers,
Mattt.
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
Need to install libswscale-dev or the equivalent package for your distro.
mastertheknife
mastertheknife
Kfir Itzhak.
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
Nope - got that already...
Cheers,
Mattt.
Cheers,
Mattt.
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
I'm on Ubuntu 11.10, btw... Trying to build current SVN as well as most recent stable tarball. Have tried both versions with both current GIT ffmpeg and also Ubuntu repo version. Every combination yields the same results.
Cheers,
Mattt.
Cheers,
Mattt.
-
- Posts: 3
- Joined: Sun Dec 18, 2011 7:10 pm
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
@mastertheknife
In my case installing libswscale-dev solved the problem and make ran succesfully, thank you.
I still have some problems during make install
test -z "/var/www/html/zm/views" || /bin/mkdir -p "/var/www/html/zm/views"
/usr/bin/install -c -m 644 file.php image.php '/var/www/html/zm/views'
make[3]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web/views'
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web/views'
make[2]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/var/www/html/zm" || /bin/mkdir -p "/var/www/html/zm"
/usr/bin/install -c -m 644 index.php '/var/www/html/zm'
make install-data-hook
make[4]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
( cd /var/www/html/zm; chown apache:apache index.php )
chown: invalid user: `apache:apache'
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make: *** [install-recursive] Error 1
But those must have something to do with the way I had initially apache setup (I was running precompilled version of zoneminder 1.24-4 from ubuntu depot (which also pulled and installed apache2 as a prerequisite before the compilation of 1.25.0 version)
I will create the apache:apache user tough I have to read if it needs a shell to function properly for zoneminder (probably not).
In my case installing libswscale-dev solved the problem and make ran succesfully, thank you.
I still have some problems during make install
test -z "/var/www/html/zm/views" || /bin/mkdir -p "/var/www/html/zm/views"
/usr/bin/install -c -m 644 file.php image.php '/var/www/html/zm/views'
make[3]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web/views'
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web/views'
make[2]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/var/www/html/zm" || /bin/mkdir -p "/var/www/html/zm"
/usr/bin/install -c -m 644 index.php '/var/www/html/zm'
make install-data-hook
make[4]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
( cd /var/www/html/zm; chown apache:apache index.php )
chown: invalid user: `apache:apache'
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make: *** [install-recursive] Error 1
But those must have something to do with the way I had initially apache setup (I was running precompilled version of zoneminder 1.24-4 from ubuntu depot (which also pulled and installed apache2 as a prerequisite before the compilation of 1.25.0 version)
I will create the apache:apache user tough I have to read if it needs a shell to function properly for zoneminder (probably not).
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
Sadly, I'm still unable to build. I forgot to mention that I'm running 64 bit. Does that make any difference?
Cheers,
Mattt.
Cheers,
Mattt.
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
Hi George,georgedone wrote:@mastertheknife
In my case installing libswscale-dev solved the problem and make ran succesfully, thank you.
I still have some problems during make install
test -z "/var/www/html/zm/views" || /bin/mkdir -p "/var/www/html/zm/views"
/usr/bin/install -c -m 644 file.php image.php '/var/www/html/zm/views'
make[3]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web/views'
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web/views'
make[2]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: Nothing to be done for `install-exec-am'.
test -z "/var/www/html/zm" || /bin/mkdir -p "/var/www/html/zm"
/usr/bin/install -c -m 644 index.php '/var/www/html/zm'
make install-data-hook
make[4]: Entering directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
( cd /var/www/html/zm; chown apache:apache index.php )
chown: invalid user: `apache:apache'
make[4]: *** [install-data-hook] Error 1
make[4]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/george/Downloads/ZoneMinder-1.25.0/web'
make: *** [install-recursive] Error 1
But those must have something to do with the way I had initially apache setup (I was running precompilled version of zoneminder 1.24-4 from ubuntu depot (which also pulled and installed apache2 as a prerequisite before the compilation of 1.25.0 version)
I will create the apache:apache user tough I have to read if it needs a shell to function properly for zoneminder (probably not).
Please use www-data for web user and group instead of apache for your distro.
--with-webuser=www-data --with-webgroup=www-data
mastertheknife
Kfir Itzhak.
-
- Posts: 21
- Joined: Sat Jun 16, 2007 8:51 pm
Re: Problems compiling ZoneMinder 1.25.0 on 32bit LinuxMint
I have the same problem...
I followed these instructions for installing up-to-date ffmpeg and x264 from source,
http://ubuntuforums.org/showthread.php?t=786095
Downloaded ZoneMinder version 1.25.0 and configured with:
and got exactly the same problem:
libswscale-dev is apparently the latest version!
Using ubuntu 10.04
Any help appreciated
I followed these instructions for installing up-to-date ffmpeg and x264 from source,
http://ubuntuforums.org/showthread.php?t=786095
Downloaded ZoneMinder version 1.25.0 and configured with:
Code: Select all
./configure --with-ffmpeg=/home/barney --with-webdir=/var/www/barneyward/zm --with-cgidir=/var/www/barneyward/zm/cgi-bin --with-webuser=www-data --with-webgroup=www-data --enable-mmap=no CPPFLAGS="${CFLAGS} -D__STDC_CONSTANT_MACROS"
Code: Select all
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/home/barney/include -Wall -Wno-sign-compare -fno-inline -I/home/barney/include -D__STDC_CONSTANT_MACROS -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
zm_ffmpeg_camera.cpp: In destructor ‘virtual FfmpegCamera::~FfmpegCamera()’:
zm_ffmpeg_camera.cpp:61: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1417)
zm_ffmpeg_camera.cpp:61: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1417)
zm_ffmpeg_camera.cpp: In member function ‘virtual int FfmpegCamera::PrimeCapture()’:
zm_ffmpeg_camera.cpp:94: error: ‘av_open_input_file’ was not declared in this scope
zm_ffmpeg_camera.cpp:98: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1247)
zm_ffmpeg_camera.cpp:98: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1247)
zm_ffmpeg_camera.cpp:125: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3661)
zm_ffmpeg_camera.cpp:125: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3661)
make[2]: *** [zm_ffmpeg_camera.o] Error 1
make[2]: Leaving directory `/home/barney/ZoneMinder-1.25.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/barney/ZoneMinder-1.25.0'
make: *** [all] Error 2
Using ubuntu 10.04
Any help appreciated