build problem on PiCloud's Ubuntu (with FFMPEG) (Bug #2078)
Description
dpkg -l" output is attached as "packages.txt
Associated revisions
Merge pull request #2078 from ilya-lavrenov:warn
History
Updated by Alexander Mordvintsev over 12 years ago
dpkg -l" output is attached as "packages.txt
Updated by Alexander Mordvintsev over 12 years ago
Trying to build opencv (svn, r8731) on picloud.com environment. Using their "Python 2.7 - Ubuntu Natty 11.04" environment as a base.
Building with
cmake -DBUILD_TESTS=FALSE -DBUILD_PERF_TESTS=FALSE .. make
gives
[ 26%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o In file included from /home/picloud/opencv/modules/highgui/src/cap_ffmpeg.cpp:45:0: /home/picloud/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp: In function Б-?AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, CodecID, int, int, int, double, int)Б-?: /home/picloud/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:907:35: error: Б-?avformat_new_streamБ-? was not declared in this scope In file included from /home/picloud/opencv/modules/highgui/src/cap_ffmpeg.cpp:45:0: /home/picloud/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp: In static member function Б-?static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, CodecID, int, int, int, double, PixelFormat)Б-?: /home/picloud/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:1636:49: error: Б-?avformat_new_streamБ-? was not declared in this scope make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1 make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 make: *** [all] Error 2
After adding "-DWITH_FFMPEG=FALSE" builds fine.
Additional info:
uname -a Linux ip-10-72-81-69 2.6.32-341-ec2 #42-Ubuntu SMP Tue Dec 6 14:56:13 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Updated by Franck Charpentier about 12 years ago
sudo find / -mount -name '*.h' -o -name '*.hpp' | xargs grep avformat_new_stream
for me avformat_new_stream is declared in /usr/include/libavformat/avformat.h
apt-file search avformat.h
libavformat-dev: /usr/include/libavformat/avformat.h
libmyth-dev: /usr/include/mythtv/libavformat/avformat.h
your version of libavformat-dev
4:0.6.4-0ubuntu0.11.04.1
Updated by Franck Charpentier about 12 years ago
my version is 6:0.8.5-0ubuntu0.12.10.1
Could you update your version, or compile from sources ?
Updated by Daniil Osokin about 11 years ago
Looks like this issue can be repaired by updating libavformat version, as suggested Franck Charpentier. Feel free to reopen this ticket, if you have any suggestions.
- Target version set to 2.4.9
- HW Platform set to x64
- Operating System set to Linux
- Affected version set to 2.4.0 - 2.4.7
- Status changed from Open to Cancelled