Anonymous | Login | 2024-11-21 15:07 UTC |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000763 | VCMI | Other | public | 2011-07-03 09:15 | 2011-07-21 20:49 | ||||
Reporter | andreas | ||||||||
Assigned To | Ivan | ||||||||
Priority | normal | Severity | block | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Linux | OS | Ubuntu 64 bits | OS Version | 10.04 | ||||
Product Version | 0.85 | ||||||||
Target Version | Fixed in Version | 0.86 | |||||||
Summary | 0000763: Compilation of vcmiclient-CVideoHandler.o fails | ||||||||
Description | After getting the sources from the SVN and launching the configure script, the compilation fails with the following message: CVideoHandler.cpp: In constructor ‘CVideoPlayer::CVideoPlayer()’: CVideoHandler.cpp:660: error: ‘av_register_protocol’ was not declared in this scope CVideoHandler.cpp: In member function ‘bool CVideoPlayer::open(std::string, bool, bool)’: CVideoHandler.cpp:689: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp:689: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp:694: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp:694: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp:707: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope make[1]: *** [vcmiclient-CVideoHandler.o] Error 1 | ||||||||
Steps To Reproduce | Follow the steps described here: https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk/README.linux [^] Specifically: svn co https://vcmi.svn.sourceforge.net/svnroot/vcmi/trunk [^] vcmi ./configure --datadir=/YOUR_INSTALL_PATH/ --bindir=/YOUR_INSTALL_PATH/vcmi --libdir=/YOUR_INSTALL_PATH/ make | ||||||||
Additional Information | VCMI version: SVN revision 2228 libavformat-dev: 4:0.7-1u1 gcc: 4.4.3 | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Notes | |
(0001834) Ivan (developer) 2011-07-03 10:07 |
Should be fixed now. Check revision 2229. |
(0001836) andreas (reporter) 2011-07-03 10:21 |
Hi Ivan, thanks for your quick fix. Unfortunately, there is another error now, with the function 'avcodec_decode_video'. There were many warnings before, I pasted them in case they are useful. CVideoHandler.cpp: In constructor ‘CVideoPlayer::CVideoPlayer()’: CVideoHandler.cpp:661: warning: ‘int av_register_protocol2(URLProtocol*, int)’ is deprecated (declared at /usr/include/libavformat/avio.h:211) CVideoHandler.cpp:661: warning: ‘int av_register_protocol2(URLProtocol*, int)’ is deprecated (declared at /usr/include/libavformat/avio.h:211) CVideoHandler.cpp: In member function ‘bool CVideoPlayer::open(std::string, bool, bool)’: CVideoHandler.cpp:693: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp:693: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp:698: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp:698: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1043) CVideoHandler.cpp: In member function ‘bool CVideoPlayer::nextFrame()’: CVideoHandler.cpp:817: error: ‘avcodec_decode_video’ was not declared in this scope make[1]: *** [vcmiclient-CVideoHandler.o] Error 1 |
(0001837) Ivan (developer) 2011-07-03 15:28 |
Found it. Check revision 2230 - it should remove that error. Ignore the warnings - fixing them may create more troubles with other versions of libavformat |
(0001838) andreas (reporter) 2011-07-04 00:06 |
Problem solved :) |
(0001839) Ivan (developer) 2011-07-04 09:28 |
Ok. To resolved then. |
Issue History | |||
Date Modified | Username | Field | Change |
2011-07-03 09:15 | andreas | New Issue | |
2011-07-03 10:05 | Ivan | Status | new => assigned |
2011-07-03 10:05 | Ivan | Assigned To | => Ivan |
2011-07-03 10:07 | Ivan | Note Added: 0001834 | |
2011-07-03 10:21 | andreas | Note Added: 0001836 | |
2011-07-03 15:28 | Ivan | Note Added: 0001837 | |
2011-07-04 00:06 | andreas | Note Added: 0001838 | |
2011-07-04 09:28 | Ivan | Note Added: 0001839 | |
2011-07-04 09:28 | Ivan | Status | assigned => resolved |
2011-07-04 09:28 | Ivan | Fixed in Version | => 0.89 |
2011-07-04 09:28 | Ivan | Resolution | open => fixed |
2011-07-21 20:49 | Ivan | Status | resolved => closed |
Copyright © 2000 - 2024 MantisBT Team |