Skip to main content

Thread: 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 , ran roadblock using bluecherry bc-08240a - 8 port video, 8 port audio realtime hardware compression card. card requires solo6010-dkm driver uses ('extended' layouts)

http://community.bluecherrydvr.com/r...pression_cards

able see video inputs(8,9 respectively) , capture palette(uyvy [uyuv 4:2:2 packed, uyvy]) on 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: device has 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 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 , height of 704x480
this being said , finding solution issue:

http://www.zoneminder.com/forums/vie...x+patch#p76736

decided recompile version of zoneminder adjustment made in post above. made of changes , have wrestled around compile errors , 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 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: few arguments function ‘int avcodec_open2(avcodeccontext*, avcodec*, avdictionary**)’  /usr/include/libavcodec/avcodec.h:4074:5: note: declared here  zm_mpeg.cpp:244:27: error: few arguments 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’ not declared in 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 of changes depriecated functions replaced , above error messages in reference to:

code:
too few arguments function ‘int avcodec_open2(avcodeccontext*, avcodec*, avdictionary**)’  /usr/include/libavcodec/avcodec.h:4074:5: note: declared here  zm_mpeg.cpp:244:27: error: few arguments 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’ not declared in scope
what need compile? should downgrade "ffmpeg" older version used previous funtions had changed? version of ffmpeg zoneminder 1.25.x use?

hi all,

i'm having similar problems trying compile source. due ffmpeg/libav split?
i've tried compiling ffmpeg source libx264 , still having issues. great.



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Packaging and Compiling Programs Trouble Compling ZoneMinder 1.25.X from Source/Ubuntu 12.04


Ubuntu

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?