Harinlen / cuberok

Automatically exported from code.google.com/p/cuberok
GNU General Public License v3.0
0 stars 1 forks source link

FFMPEG Plugin cannot be compiled, any way to disable? #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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...

Original issue reported on code.google.com by borislavba on 17 Jul 2009 at 6:22

GoogleCodeExporter commented 8 years ago
In 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) {

Original comment by drmoriar...@gmail.com on 17 Jul 2009 at 6:29

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by borislavba on 17 Jul 2009 at 6:45

GoogleCodeExporter commented 8 years ago
To 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

Original comment by nomen.in...@gmail.com on 17 Jul 2009 at 7:57