Hey guys,
I just tried to install zoneminder 1.24 on a clean Ubuntu Server 8.04.1
./configure --with-libarch=lib --with-mysql=/usr/local --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data ZM_SSL_LIB=openssl --with-ffmpeg=/usr/include
works fine ... but
make install
stops with the following error:
....
mv -f .deps/zm_local_camera.Tpo .deps/zm_local_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include/include -Wall -Wno-sign-compare -fno-inline -I/usr/include/include -frepo -g -O2 -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
zm_monitor.cpp: In static member function ‘static int Monitor::LoadFfmpegMonitors(const char*, Monitor**&, Monitor::Purpose)’:
zm_monitor.cpp:2185: error: expected type-specifier before ‘FfmpegCamera’
zm_monitor.cpp:2185: error: cannot convert ‘int*’ to ‘Camera*’ in initialization
zm_monitor.cpp:2185: error: expected ‘,’ or ‘;’ before ‘FfmpegCamera’
zm_monitor.cpp:2151: warning: unused variable ‘path’
zm_monitor.cpp:2155: warning: unused variable ‘palette’
zm_monitor.cpp:2157: warning: unused variable ‘brightness’
zm_monitor.cpp:2158: warning: unused variable ‘contrast’
zm_monitor.cpp:2159: warning: unused variable ‘hue’
zm_monitor.cpp:2160: warning: unused variable ‘colour’
zm_monitor.cpp:2182: warning: unused variable ‘cam_width’
zm_monitor.cpp:2183: warning: unused variable ‘cam_height’
zm_monitor.cpp: In static member function ‘static Monitor* Monitor::Load(int, bool, Monitor::Purpose)’:
zm_monitor.cpp:2401: error: expected type-specifier before ‘FfmpegCamera’
zm_monitor.cpp:2401: error: cannot convert ‘int*’ to ‘Camera*’ in assignment
zm_monitor.cpp:2401: error: expected `;' before ‘FfmpegCamera’
zm_monitor.cpp: In member function ‘bool Monitor::DumpSettings(char*, bool)’:
zm_monitor.cpp:2803: error: ‘FfmpegCamera’ was not declared in this scope
zm_monitor.cpp:2803: error: expected primary-expression before ‘)’ token
zm_monitor.cpp:2803: error: expected `)' before ‘camera’
make[1]: *** [zm_monitor.o] Error 1
make[1]: Leaving directory `/usr/local/src/ZoneMinder-1.24.0/src'
make: *** [install-recursive] Error 1
I tried to ./configure without the ffmpeg option but that does not seem to help. I keep getting the same error.
Any ideas??
1.24 Installation on Ubuntu Server 8.04.1
-
- Posts: 7
- Joined: Sat Jan 24, 2009 3:23 pm
Just appending my replky to say that I have a pretty much similar wreakage:
I worked my ass off as a total linux newbie to make the configure work, but I didn't expect an error with the make...
Code: Select all
mauro@ubuntu:~/Scrivania/zm$ sudo make
make all-recursive
make[1]: Entering directory `/home/mauro/Scrivania/zm'
Making all in src
make[2]: Entering directory `/home/mauro/Scrivania/zm/src'
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_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
zm_monitor.cpp: In static member function \u2018static int Monitor::LoadFfmpegMonitors(const char*, Monitor**&, Monitor::Purpose)\u2019:
zm_monitor.cpp:2185: error: expected type-specifier before \u2018FfmpegCamera\u2019
zm_monitor.cpp:2185: error: cannot convert \u2018int*\u2019 to \u2018Camera*\u2019 in initialization
zm_monitor.cpp:2185: error: expected \u2018,\u2019 or \u2018;\u2019 before \u2018FfmpegCamera\u2019
zm_monitor.cpp:2151: warning: unused variable \u2018path\u2019
zm_monitor.cpp:2155: warning: unused variable \u2018palette\u2019
zm_monitor.cpp:2157: warning: unused variable \u2018brightness\u2019
zm_monitor.cpp:2158: warning: unused variable \u2018contrast\u2019
zm_monitor.cpp:2159: warning: unused variable \u2018hue\u2019
zm_monitor.cpp:2160: warning: unused variable \u2018colour\u2019
zm_monitor.cpp:2182: warning: unused variable \u2018cam_width\u2019
zm_monitor.cpp:2183: warning: unused variable \u2018cam_height\u2019
zm_monitor.cpp: In static member function \u2018static Monitor* Monitor::Load(int, bool, Monitor::Purpose)\u2019:
zm_monitor.cpp:2401: error: expected type-specifier before \u2018FfmpegCamera\u2019
zm_monitor.cpp:2401: error: cannot convert \u2018int*\u2019 to \u2018Camera*\u2019 in assignment
zm_monitor.cpp:2401: error: expected `;' before \u2018FfmpegCamera\u2019
zm_monitor.cpp: In member function \u2018bool Monitor::DumpSettings(char*, bool)\u2019:
zm_monitor.cpp:2803: error: \u2018FfmpegCamera\u2019 was not declared in this scope
zm_monitor.cpp:2803: error: expected primary-expression before \u2018)\u2019 token
zm_monitor.cpp:2803: error: expected `)' before \u2018camera\u2019
zm_monitor.cpp: In member function \u2018bool MonitorStream::sendFrame(const char*, timeval*)\u2019:
zm_monitor.cpp:3210: warning: ignoring return value of \u2018size_t fwrite(const void*, size_t, size_t, FILE*)\u2019, declared with attribute warn_unused_result
zm_monitor.cpp: In member function \u2018bool MonitorStream::sendFrame(Image*, timeval*)\u2019:
zm_monitor.cpp:3281: warning: ignoring return value of \u2018size_t fwrite(const void*, size_t, size_t, FILE*)\u2019, declared with attribute warn_unused_result
zm_monitor.cpp: In member function \u2018void Monitor::SingleImage(int)\u2019:
zm_monitor.cpp:3610: warning: ignoring return value of \u2018size_t fwrite(const void*, size_t, size_t, FILE*)\u2019, declared with attribute warn_unused_result
zm_monitor.cpp: In member function \u2018void Monitor::SingleImageRaw(int)\u2019:
zm_monitor.cpp:3633: warning: ignoring return value of \u2018size_t fwrite(const void*, size_t, size_t, FILE*)\u2019, declared with attribute warn_unused_result
zm_monitor.cpp: In member function \u2018void Monitor::SingleImageZip(int)\u2019:
zm_monitor.cpp:3659: warning: ignoring return value of \u2018size_t fwrite(const void*, size_t, size_t, FILE*)\u2019, declared with attribute warn_unused_result
make[2]: *** [zm_monitor.o] Error 1
make[2]: Leaving directory `/home/mauro/Scrivania/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mauro/Scrivania/zm'
make: *** [all] Error 2
Heh, I'm basically using linux for the first time as well (for some real business that is) I suggest reading my thread in the same forum here and look how I got it wotking. I wasn't installing it on server but 8.04 as well.
Why not use a pre-complied ready packacge? Only double click and soon enough you'll have it working. But first you should install the fallowing stuff as well:
mplayer
mplayerplug-in
xawtv
mysql
perl
php
mozilla dev package (actually you need gecko, but it comes with that pack so you can use apt-get)
Why not use a pre-complied ready packacge? Only double click and soon enough you'll have it working. But first you should install the fallowing stuff as well:
mplayer
mplayerplug-in
xawtv
mysql
perl
php
mozilla dev package (actually you need gecko, but it comes with that pack so you can use apt-get)
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: