What steps will reproduce the problem?
1. Run ./unix-build.sh on Archlinux.
2. Result - errors:
../../src/player_ffmpeg.cpp:51: warning: unused parameter
‘userdata’
../../src/player_ffmpeg.cpp:59: error: ISO C++ forbids declaration of
‘AVFormatContext’ with no
type
../../src/player_ffmpeg.cpp:59: error: expected ‘;’ before ‘’
token
../../src/player_ffmpeg.cpp:60: error: ISO C++ forbids declaration of
‘AVCodecContext’ with no
type
../../src/player_ffmpeg.cpp:60: error: expected ‘;’ before ‘’
token
../../src/player_ffmpeg.cpp:61: error: ISO C++ forbids declaration of
‘AVFrame’ with no
type
../../src/player_ffmpeg.cpp:61: error: expected ‘;’ before ‘’
token
../../src/player_ffmpeg.cpp:63: error: ‘AVCODEC_MAX_AUDIO_FRAME_SIZE’ was
not declared in this
scope
../../src/player_ffmpeg.cpp:73: error: ‘SampleFormat’ does not name a
type
../../src/player_ffmpeg.cpp:74: error: ISO C++ forbids declaration of
‘ReSampleContext’ with no
type
../../src/player_ffmpeg.cpp:74: error: expected ‘;’ before ‘’
token
../../src/player_ffmpeg.cpp:75: error: ‘AVPacket’ was not declared in this
scope
../../src/player_ffmpeg.cpp:75: error: template argument 1 is
invalid
../../src/player_ffmpeg.cpp:76: error: ‘AVPacket’ does not name a
type
../../src/player_ffmpeg.cpp:98: error: variable or field ‘freePacket’
declared
void
../../src/player_ffmpeg.cpp:98: error: ‘AVPacket’ was not declared in this
scope
../../src/player_ffmpeg.cpp:98: error: ‘packet’ was not declared in this
scope
And so on...
Versions: ArchLinux, cuberok 0.0.11 or SVN 264, gcc 4.4.0, ffmpeg 0.5.
Is there any way to disable the building of the ffmpeg plugin? Other plugins compile fine, but I cannot uninstall ffmpeg in order not to build this plugin as it is required by phonon's xine engine...
Comment #1
Posted on Jul 17, 2009 by Swift KangarooIn order to disable building the ffmpeg plugin use this patch:
--- Cuberok.pro.orig 2009-07-17 10:27:01.015625000 +0400 +++ Cuberok.pro 2009-07-17 10:27:08.656250000 +0400 @@ -40,7 +40,7 @@ system(pkg-config --modversion libavcodec 2>/dev/null) { system(pkg-config --modversion sdl 2>/dev/null) { message(using ffmpeg backend) - SUBDIRS += plugins/player_ffmpeg +# SUBDIRS += plugins/player_ffmpeg } } system(audiere-config --version) {
Comment #2
Posted on Jul 17, 2009 by Swift OxThanks!
Comment #3
Posted on Jul 17, 2009 by Quick GiraffeTo DrMoriarty: take a look at these errors, they are same as I got untill apply this patch
Index: player_ffmpeg.pro
--- player_ffmpeg.pro (revision 262) +++ player_ffmpeg.pro (working copy) @@ -1,7 +1,9 @@ CONFIG += release TEMPLATE = lib CONFIG += plugin - INCLUDEPATH += ../../src + INCLUDEPATH += ../../src \ + /usr/include/libavcodec/ \ + /usr/include/libavformat/ HEADERS = ../../src/player_ffmpeg.h \ ../../src/player.h SOURCES = ../../src/player_ffmpeg.cpp
Looks like both gentoo and ArchLinux have this problem
Status: Done
Labels:
Type-Defect
Priority-Medium