[mythtv] compilation problem rev 16870

marek mark_kiddy at wp.pl
Tue Apr 1 09:57:27 UTC 2008


hi group
after switching to Qt4.3.4 (Opensuse 10.2) and replacing my old radeon 
r200 to Nvidia i tried to compile myth :

when compile without XvMCNVIDIA compilation ends without any error - but 
when switches --enable-xvmc-opengl --xvmc-lib=XvMCNVIDIA are used
(
# Video Output Support
x11 support               yes
xrandr support            yes
xv support                yes
XvMC support              yes
XvMC VLD support          no
XvMC pro support          no
XvMC OpenGL sup.          yes
XvMC libs                 -lXvMCNVIDIA
OpenGL video              yes
OpenGL vsync              yes
DirectFB                  yes
Fribidi formatting        no
)

I have this error :

make[2]: Entering directory `/mnt/p2/myth/mythtv/libs/libmythtv'
ccache g++ -c -pipe -march=pentiumpro -fomit-frame-pointer -O3 -Wall 
-Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -Dp
In file included from /usr/include/QtCore/qvariant.h:50,
                 from /usr/include/QtCore/qmimedata.h:47,
                 from /usr/include/QtGui/qmime.h:47,
                 from /usr/include/QtGui/qevent.h:54,
                 from /usr/include/QtGui/QKeyEvent:1,
                 from osd.h:9,
                 from xvmctextures.cpp:6:
/usr/include/QtCore/qmetatype.h:55:2: error: #error qmetatype.h must be 
included before any header file that defines Bool
xvmctextures.h:82: error: field ‚last_video_rect‚ has incomplete type
xvmctextures.h: In constructor ‚XvMCTextures::XvMCTextures()‚:
xvmctextures.h:45: error: class ‚XvMCTextures‚ does not have any field 
named ‚last_video_rect‚
/usr/include/QtCore/qmetatype.h: At global scope:
/usr/include/QtCore/qmetatype.h:66: error: expected identifier before ‚int‚
/usr/include/QtCore/qmetatype.h:66: error: expected `}' before ‚int‚
/usr/include/QtCore/qmetatype.h:66: error: expected unqualified-id 
before ‚=‚ token
/usr/include/QtCore/qmetatype.h:113: error: expected declaration before 
‚}‚ token
make[2]: *** [xvmctextures.o] Error 1
make[2]: Leaving directory `/mnt/p2/myth/mythtv/libs/libmythtv'
make[1]: *** [sub-libmythtv-make_default-ordered] Error 2
make[1]: Leaving directory `/mnt/p2/myth/mythtv/libs'
make: *** [sub-libs-make_default-ordered] Error 2


so after some investigation I found a trick - maybe it will be helpful
I changed #include order in xvmctextures.cpp

Index: xvmctextures.cpp
===================================================================
--- xvmctextures.cpp    (revision 16870)
+++ xvmctextures.cpp    (working copy)
@@ -1,8 +1,8 @@
 #ifdef USING_XVMC_OPENGL
 
+#include "osd.h"
 #include "XvMCSurfaceTypes.h"
 #include "xvmctextures.h"
-#include "osd.h"
 #include "osdsurface.h"
 #include "frame.h"
 
- after this myth compiles succesfully

Greetings
Marek K.



More information about the mythtv-dev mailing list