Visit Our UNIX and Linux User Community


Trouble Compling ZoneMinder 1.25.X from Source/Ubuntu 12.04


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Trouble Compling ZoneMinder 1.25.X from Source/Ubuntu 12.04
# 1  
Old 10-17-2012
Trouble Compling ZoneMinder 1.25.X from Source/Ubuntu 12.04

I orginally installed Zoneminder 1.25.X on Ubuntu 12.04 using there repositories and ran into a roadblock using the Bluecherry BC-08240A - 8 port video, 8 port audio realtime hardware compression card. The card requires the solo6010-dkm driver which uses ('extended' layouts)

Using the display port on Bluecherry hardware compression cards | Bluecherry

I am able to see the video inputs(8,9 respectively) and the capture palette(UYVY [UYUV 4:2:2 Packed, UYVY]) on the card

Code:
[0xb5000960] v4l2 demux debug: trying kernel V4L2
[0xb5000960] v4l2 demux debug: device Softlogic 6010 using driver solo6x10 (version 2.4.3) on PCI 0000:0a:09.0
[0xb5000960] v4l2 demux debug: the device has the capabilities: 0x05000001
[0xb5000960] v4l2 demux debug: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio
[0xb5000960] v4l2 demux debug: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[0xb5000960] v4l2 demux debug: video input 0 (Camera 1) has type: External analog input *
[0xb5000960] v4l2 demux debug: video input 1 (Camera 2) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 2 (Camera 3) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 3 (Camera 4) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 4 (Camera 5) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 5 (Camera 6) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 6 (Camera 7) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 7 (Camera 8) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 8 (Multi 4UP-1) has type: External analog input
[0xb5000960] v4l2 demux debug: video input 9 (Multi 4UP-2) has type: External analog input
[0xb5000960] v4l2 demux debug: input set to 0
[0xb5000960] v4l2 demux debug: device supports chroma UYVY [UYUV 4:2:2 Packed, UYVY]
[0xb5000960] v4l2 demux debug: boolean Motion Detection Trace (08000002)
[0xb5000960] v4l2 demux debug: current: false, default: false
[0xb5000960] v4l2 demux debug: found default width and height of 704x480

this being said and finding a solution to my issue:

ZoneMinder - Forums - View topic - Failure to Crop Capabilities

I decided to recompile my version of Zoneminder with the adjustment made in the post above. I made most of the changes and have wrestled around with my compile errors and am stuck here:

Code:
export CPPFLAGS="-D__STDC_CONSTANT_MACROS ${CPPFLAGS}";/opt/zm# ./configure --prefix=/usr --with-webdir=/var/www/zm --with-cgidir=/opt/zm/cgi-bin

Code:
/opt/zm#make
zm_jpeg.o -MD -MP -MF .deps/zm_jpeg.Tpo -c -o zm_jpeg.o zm_jpeg.cpp
mv -f .deps/zm_jpeg.Tpo .deps/zm_jpeg.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS   -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
mv -f .deps/zm_local_camera.Tpo .deps/zm_local_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS   -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 member function ‘virtual void MonitorStream::runStream()':
zm_monitor.cpp:3479:14: warning: variable ‘frame_sent' set but not used [-Wunused-but-set-variable]
mv -f .deps/zm_monitor.Tpo .deps/zm_monitor.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS   -g -O2 -MT zm_ffmpeg.o -MD -MP -MF .deps/zm_ffmpeg.Tpo -c -o zm_ffmpeg.o zm_ffmpeg.cpp
mv -f .deps/zm_ffmpeg.Tpo .deps/zm_ffmpeg.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS   -g -O2 -MT zm_mpeg.o -MD -MP -MF .deps/zm_mpeg.Tpo -c -o zm_mpeg.o zm_mpeg.cpp
zm_mpeg.cpp: In member function ‘void VideoStream::OpenStream()':
zm_mpeg.cpp:179:30: error: too few arguments to function ‘int avcodec_open2(AVCodecContext*, AVCodec*, AVDictionary**)'
/usr/include/libavcodec/avcodec.h:4074:5: note: declared here
zm_mpeg.cpp:244:27: error: too few arguments to function ‘int avformat_write_header(AVFormatContext*, AVDictionary**)'
/usr/include/libavformat/avformat.h:1662:5: note: declared here
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:386:77: error: ‘av_rescale_q' was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/opt/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/zm'
make: *** [all] Error 2

I made most of the changes to the depriecated functions to what was replaced and now I get the above error messages in reference to:

Code:
too few arguments to function ‘int avcodec_open2(AVCodecContext*, AVCodec*, AVDictionary**)'
/usr/include/libavcodec/avcodec.h:4074:5: note: declared here
zm_mpeg.cpp:244:27: error: too few arguments to function ‘int avformat_write_header(AVFormatContext*, AVDictionary**)'
/usr/include/libavformat/avformat.h:1662:5: note: declared here
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:386:77: error: ‘av_rescale_q' was not declared in this scope

What do I need to do to get this to successfully compile? Should I downgrade "FFMPEG" to an older version that used the previous funtions that I had changed? What version of FFMPEG does Zoneminder 1.25.X use?
# 2  
Old 10-19-2012
add mathematics.h

Add the following include in the file below

#include <libavutil/mathematics.h>

<zoneminder dir>/src/zm_ffmpeg.h
# 3  
Old 10-23-2012
Many thanks for the reply. I will give this a shot and give you my feedback.

Previous Thread | Next Thread
Test Your Knowledge in Computers #891
Difficulty: Easy
In Unix, sed is often used as a filter in a pipeline.
True or False?

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Trouble accessing SVN on Ubuntu

Hi all, I'm running SVN on Ubuntu 12.04, and I have to connect it to an online repository accessed by HTTPS. I can check out files from the repository just fine with the command: svn checkout <https://pathToRepository>But, I can't update the working copy properly after I make changes. I change... (1 Reply)
Discussion started by: Zel2008
1 Replies

2. UNIX for Dummies Questions & Answers

Trouble with the Source command..

Hi everyone, I've been writing a script as an assignment which essentially does the exact same thing as the tree -d function (bash shell btw), except next to every directory name it gives a number which you can input into the same command in order to change the current working directory to the... (1 Reply)
Discussion started by: petey22uk
1 Replies

3. Ubuntu

Zoneminder 1.23X, Apache and Ubuntu Intrepid -----No Video Output

I have install Ubuntu Intrepid and Zoneminder 1.23X. I have setup all of the all of the cameras and every time I try and run the cameras is cycle or montage mode I get no picture and I see a little emblem that resembles a broken connection. I checked /var/log/apache2/error.log and I can see that... (1 Reply)
Discussion started by: metallica1973
1 Replies

4. UNIX and Linux Applications

Ubuntu Realtime Kernel Trouble

Ever since the new release of the Realtime kernel, JACK and Ardour and anything else that could use it doesn't work. It works if i turn off realtime in Jack, but thats precisely why I installed intrepid in the first place. for the realtime kernel. it worked so well! what i've learned with linux:... (1 Reply)
Discussion started by: TheMusician
1 Replies

5. UNIX for Advanced & Expert Users

got error while compling project using Makefile

helo when i compling my project from the commandline using Make file make all i got the following error make all /usr/bin/gcc -DNDEBUG -O0 -finline-functions -fmerge-constants -fmove-all-movables -fno-omit-frame-pointer -I../../lsapi -c -o lsapitest.o lsapitest.c g++ lsapitest.o... (2 Replies)
Discussion started by: amitpansuria
2 Replies

Featured Tech Videos