[mythtv] Compile error

aaron memoryguy at gmail.com
Thu Jun 30 12:08:43 UTC 2005


Hi,

I can't compile the latest SVN source (actually, I've been hitting
this ever since I first tried compiling the SVN source, which was
shortly after the switch):


g++ -c -pipe -march=pentiumpro -mmmx -Wall -W -O3 -Wall -Wno-switch
-fomit-frame-pointer `freetype-config --cflags` -D_REENTRANT -DPIC
-fPIC  -DMMX -Di386 -DHAVE_DVDNAV -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DPREFIX=\"/usr/local\" -D_LARGEFILE_SOURCE -DUSING_OSS
-DUSING_OPENGL_VSYNC -DUSING_XV -DUSING_FRONTEND -DUSING_V4L
-DUSING_IVTV -DUSING_BACKEND -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-DQT_SHARED -I/usr/lib/qt/mkspecs/default -I. -I/usr/local/include
-I../.. -I../libmyth -I.. -Idvbdev -Impeg -I../libavcodec
-I../libmythmpeg2 -I/usr/lib/qt/include -I/usr/X11R6/include
-I/usr/X11R6/include -o tv.o tv.cpp
In file included from tv.h:51,
                 from tv.cpp:1:
tv_play.h:251: error: 'vector' is used as a type, but is not defined as a type.
tv_play.h:286: error: 'vector' is used as a type, but is not defined as a type.
make[2]: *** [tv.o] Error 1
make[2]: Leaving directory `/home/myth/mythsvn/mythtv/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory `/home/myth/mythsvn/mythtv/libs'
make: *** [sub-libs] Error 2


Clearly, it doesn't like the "vector<int>" definitions. I didn't think
Myth was using the STL, I thought it was supposed to be only Qt. I
added:
  #include <vector>

and it seems to be compiling now, but is that a proper solution? Or am
I missing something else? Is it going to break horribly when I try to
run it? :)

-- 
aaron


More information about the mythtv-dev mailing list