LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-18-2012, 10:45 AM   #1
slackalice
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
Zoneminder on 13.37 64bit


I am having problems installing zoneminder 1.24.2 from slackbuilds on to 13.37 64 bit. I am no 'expert' but reasonably confident that I have all the dependacies installed. However when running the slackbuild it exits with the error below. If would be grateful for any help and if someone can point out where I am going wrong, or a good guide to installing on 13.37 that would be great.


g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -frepo -O2 -fPIC -D__STDC_CONSTANT_MACROS -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 member function 'virtual int FfmpegCamera::PrimeCapture()':
zm_ffmpeg_camera.cpp:83:10: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1090)
zm_ffmpeg_camera.cpp:83:76: warning: 'int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1090)
zm_ffmpeg_camera.cpp:94:63: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
zm_ffmpeg_camera.cpp: In member function 'virtual int FfmpegCamera::Capture(Image&)':
zm_ffmpeg_camera.cpp:151:106: error: 'avcodec_decode_video' was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1
 
Old 06-18-2012, 11:32 AM   #2
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 68

Rep: Reputation: 26
failures like this can be frustrating to track down. But what you _can_ see, is that 'CODEC_TYPE_VIDEO' is not defined, when zm_ffmpeg_camera.cpp is being compiled. I would start by extracting the zoneminder tar ball, and 'grep -r CODEC_TYPE_VIDEO *' to see where all it is used, or whether it is being set _in_ the zoneminder source tree. Then you can investigate /usr/include/* similarly.
It would not hurt to read up on the version of zoneminder you are trying (1.24.2) and see if their changelog requires a newer version of ffmpeg, et al.

Welcome to the journey ;-)


Take care,
 
Old 06-18-2012, 05:00 PM   #3
slackalice
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Vbatts thank you very much for trying to help, unfortunately having looked in some depth at the files in question I am still none the wiser - I have still got a long way to go on the journey!

I am surprised that the excellent slackbuilds has failed on me this time as I have always found them to be very reliable so strongly suspect that i have changed something!

Has anyone got zoneminder working on 13.37 64 and if so could you kindly outline which guide/packages they used, particularly which version of ffmpeg?
 
Old 06-18-2012, 09:28 PM   #4
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 779

Rep: Reputation: 103Reputation: 103
Have you tried to modify the SlackBuild as use it for version 1.25? I vaguely remember having to build the new version instead.
 
Old 06-20-2012, 04:42 AM   #5
slackalice
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Original Poster
Rep: Reputation: 0
stormtracknole Thank you for the suggestion.
I tried but unfortunately that again took me well out of my depth when I got this error;

patching file Makefile.am
Hunk #1 FAILED at 23.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej

I then tried to build zoneminder 1.25.0 from source and ran into very similar errors to the slackbuild

g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -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:105:44: error: missing binary operator before token "("
In file included from zm_ffmpeg_camera.cpp:24:0:
zm_ffmpeg_camera.h:39:5: error: 'AVFormatContext' does not name a type
zm_ffmpeg_camera.h:41:5: error: 'AVCodecContext' does not name a type
zm_ffmpeg_camera.h:42:5: error: 'AVCodec' does not name a type
zm_ffmpeg_camera.h:44:5: error: 'AVFrame' does not name a type
zm_ffmpeg_camera.h:45:5: error: 'AVFrame' does not name a type
zm_ffmpeg_camera.cpp: In constructor 'FfmpegCamera::FfmpegCamera(int, const std::string&, int, int, int, int, int, int, int, bool)':
zm_ffmpeg_camera.cpp:35:5: error: 'mFormatContext' was not declared in this scope
zm_ffmpeg_camera.cpp:37:5: error: 'mCodecContext' was not declared in this scope
zm_ffmpeg_camera.cpp:38:5: error: 'mCodec' was not declared in this scope
zm_ffmpeg_camera.cpp:40:5: error: 'mRawFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:41:5: error: 'mFrame' was not declared in this scope
zm_ffmpeg_camera.cpp: In destructor 'virtual FfmpegCamera::~FfmpegCamera()':
zm_ffmpeg_camera.cpp:46:16: error: 'mFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:46:23: error: 'av_freep' was not declared in this scope
zm_ffmpeg_camera.cpp:47:16: error: 'mRawFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:51:42: error: 'sws_freeContext' was not declared in this scope
zm_ffmpeg_camera.cpp:54:10: error: 'mCodecContext' was not declared in this scope
zm_ffmpeg_camera.cpp:56:37: error: 'avcodec_close' was not declared in this scope
zm_ffmpeg_camera.cpp:59:10: error: 'mFormatContext' was not declared in this scope
zm_ffmpeg_camera.cpp:61:45: error: 'av_close_input_file' was not declared in this scope
zm_ffmpeg_camera.cpp: In member function 'void FfmpegCamera::Initialise()':
zm_ffmpeg_camera.cpp:78:27: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_ffmpeg_camera.cpp:78:40: error: 'av_log_set_level' was not declared in this scope
zm_ffmpeg_camera.cpp:80:27: error: 'AV_LOG_QUIET' was not declared in this scope
zm_ffmpeg_camera.cpp:80:40: error: 'av_log_set_level' was not declared in this scope
zm_ffmpeg_camera.cpp:82:21: error: 'av_register_all' was not declared in this scope
zm_ffmpeg_camera.cpp: In member function 'virtual int FfmpegCamera::PrimeCapture()':
zm_ffmpeg_camera.cpp:94:31: error: 'mFormatContext' was not declared in this scope
zm_ffmpeg_camera.cpp:94:76: error: 'av_open_input_file' was not declared in this scope
zm_ffmpeg_camera.cpp:95:9: error: 'errno' was not declared in this scope
zm_ffmpeg_camera.cpp:98:31: error: 'mFormatContext' was not declared in this scope
zm_ffmpeg_camera.cpp:98:46: error: 'av_find_stream_info' was not declared in this scope
zm_ffmpeg_camera.cpp:99:9: error: 'errno' was not declared in this scope
zm_ffmpeg_camera.cpp:103:24: error: 'mFormatContext' was not declared in this scope
zm_ffmpeg_camera.cpp:108:63: error: 'CODEC_TYPE_VIDEO' was not declared in this scope
zm_ffmpeg_camera.cpp:118:5: error: 'mCodecContext' was not declared in this scope
zm_ffmpeg_camera.cpp:118:21: error: 'mFormatContext' was not declared in this scope
zm_ffmpeg_camera.cpp:121:11: error: 'mCodec' was not declared in this scope
zm_ffmpeg_camera.cpp:121:66: error: 'avcodec_find_decoder' was not declared in this scope
zm_ffmpeg_camera.cpp:125:39: error: 'mCodec' was not declared in this scope
zm_ffmpeg_camera.cpp:125:46: error: 'avcodec_open' was not declared in this scope
zm_ffmpeg_camera.cpp:129:5: error: 'mRawFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:129:37: error: 'avcodec_alloc_frame' was not declared in this scope
zm_ffmpeg_camera.cpp:132:5: error: 'mFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:135:43: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_ffmpeg_camera.cpp:135:102: error: 'avpicture_get_size' was not declared in this scope
zm_ffmpeg_camera.cpp:138:22: error: 'AVPicture' was not declared in this scope
zm_ffmpeg_camera.cpp:138:33: error: expected primary-expression before ')' token
zm_ffmpeg_camera.cpp:138:126: error: 'avpicture_fill' was not declared in this scope
zm_ffmpeg_camera.cpp:141:167: error: 'SWS_BICUBIC' was not declared in this scope
zm_ffmpeg_camera.cpp:141:197: error: 'sws_getCachedContext' was not declared in this scope
zm_ffmpeg_camera.cpp: In member function 'virtual int FfmpegCamera::Capture(Image&)':
zm_ffmpeg_camera.cpp:159:5: error: 'AVPacket' was not declared in this scope
zm_ffmpeg_camera.cpp:159:14: error: expected ';' before 'packet'
zm_ffmpeg_camera.cpp:163:39: error: 'mFormatContext' was not declared in this scope
zm_ffmpeg_camera.cpp:163:56: error: 'packet' was not declared in this scope
zm_ffmpeg_camera.cpp:163:63: error: 'av_read_frame' was not declared in this scope
zm_ffmpeg_camera.cpp:172:41: error: 'mCodecContext' was not declared in this scope
zm_ffmpeg_camera.cpp:172:56: error: 'mRawFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:172:91: error: 'avcodec_decode_video2' was not declared in this scope
zm_ffmpeg_camera.cpp:182:50: error: 'mRawFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:182:91: error: 'mCodecContext' was not declared in this scope
zm_ffmpeg_camera.cpp:182:114: error: 'mFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:182:145: error: 'sws_scale' was not declared in this scope
zm_ffmpeg_camera.cpp:188:31: error: 'mCodecContext' was not declared in this scope
zm_ffmpeg_camera.cpp:188:102: error: 'mFrame' was not declared in this scope
zm_ffmpeg_camera.cpp:193:33: error: 'av_free_packet' was not declared in this scope
make[2]: *** [zm_ffmpeg_camera.o] Error 1


Has anyone got zoneminder working on 13.37 64 or am i just wasting my precious few braincells and would be better off going with a different distro ?
 
Old 06-20-2012, 09:44 AM   #6
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 779

Rep: Reputation: 103Reputation: 103
Comment out the patches as they may no apply to the new version. Also, do you have ffmpeg installed by any chance? It is not listed as a dependency, but I'm wondering if it is needed. Do you have a multilib setup by any chance or this is a pure 64 bit?
 
Old 06-20-2012, 01:30 PM   #7
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,314

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
if you still got the ffmpeg package you have installed on your system, try to temporarily uninstall it (you can reinstall it after having built Zoneminder), should be an optional dependency.

here I have built, but not tested yet, the svn version: these are the modification I have done to let it build on slackware64-current (I've built it over ffmpeg-0.10.3, it doesn't build at all over ffmpeg-0.11.1)

http://cgit.ponce.cc/slackbuilds/commit/?h=ZoneMinder
http://cgit.ponce.cc/slackbuilds/tre...r?h=ZoneMinder
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
64bit RPM installation is failing on SLES-10/11 but working fine on RHEL4/5 64bit os raghuhb Linux - Software 2 11-06-2009 07:31 AM
How do I resolve install DB2v9.5 64bit/RHEL 5 64bit (libstdc++.so.5 is not found)? okonita Linux - Newbie 2 11-13-2008 02:15 AM
Can't install amarok 64bit du eto missing provider of libpq.so.4()(64bit) Ossah Linux - Software 1 04-21-2007 09:23 PM
64bit Eval Issues...switched to 64bit OSS and WOW RedShirt Suse/Novell 6 01-23-2006 09:07 PM
can 64bit processor run both 64bit and 32bit computers? DJOtaku Linux - General 4 09-08-2005 08:14 PM


All times are GMT -5. The time now is 02:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration