[mythtv-users] lcddevice.cpp:137: error: ‘system’ was not declared in this scope

William Munson william_munson at bellsouth.net
Sun Nov 4 10:34:03 UTC 2007


Bart Schelstraete wrote:
> Hello,
>
> I'm trying to build MythTv from source, but doesn't work as expected.
> I used the trunk version by executing:  svn co 
> http://cvs.mythtv.org/svn/trunk/mythtv 
> <http://cvs.mythtv.org/svn/trunk/mythtv>
> Then I' v run the following configure: ./configure --prefix=/usr  
> --enable-iptv --disable-firewire --disable-lirc 
> --disable-joystick-menu --disable-dvb  --disable-audio-jack 
> --disable-dbox2 --disable-hdhomerun  --disable-audio-alsa 
> --disable-audio-oss --disable-mmx --disable-ivtv  --disable-directfb 
> --enable-proc-opt
>
> but this fails:
>
> ---------------
> g++ -c -pipe -march=pentium4 -fomit-frame-pointer -O3 -Wall 
> -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor 
> -D__STDC_CONSTANT_MACROS -I/usr/include/kde/artsc -pthread 
> -I/usr/include/glib- 2.0 -I/usr/lib/glib-2.0/include -D_REENTRANT 
> -DPIC -fPIC  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" 
> -DLIBDIR=\"/usr/lib\" -DUSE_ARTS -DUSING_X11 -DUSING_XRANDR 
> -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -DQT_TABLET_SUPPORT 
> -I/usr/share/qt3/mkspecs/default -I. -I/usr/include 
> -I../libmythsamplerate -I../libmythsoundtouch -I../.. -I.. 
> -I/usr/include/qt3 -o mythwidgets.o mythwidgets.cpp
> In file included from ../libmythui/mythuitype.h:5,
>                  from ../libmythui/mythmainwindow.h:12,
>                  from mythdialogs.h:51,
>                  from dialogbox.h :6,
>                  from dialogbox.cpp:11:
> /usr/include/qt3/qimage.h: In member function 'bool 
> QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
> /usr/include/qt3/qimage.h:58: warning: suggest parentheses around && 
> within ||
> In file included from mythcontext.cpp:3:
> /usr/include/qt3/qimage.h: In member function 'bool 
> QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
> /usr/include/qt3/qimage.h:58: warning: suggest parentheses around && 
> within ||
> In file included from mythwidgets.h:20,
>                  from mythwidgets.cpp:12:
> /usr/include/qt3/qimage.h: In member function 'bool 
> QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
> /usr/include/qt3/qimage.h:58: warning: suggest parentheses around && 
> within ||
> In file included from ../libmythui/mythuitype.h:5,
>                  from ../libmythui/mythmainwindow.h:12,
>                  from mythdialogs.h:51,
>                  from lcddevice.cpp:12:
> /usr/include/qt3/qimage.h: In member function 'bool 
> QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
> /usr/include/qt3/qimage.h:58: warning: suggest parentheses around && 
> within ||
> lcddevice.cpp: In member function 'bool LCD::connectToHost(const 
> QString&, unsigned int)':
> lcddevice.cpp:137: error: 'system' was not declared in this scope
> make[2]: *** [lcddevice.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> mythcontext.cpp: In member function 'bool 
> MythContext::BackendIsRunning()':
> mythcontext.cpp:1309: warning: deprecated conversion from string 
> constant to 'char*'
> make[2]: Leaving directory `/dev/shm/mythtv/libs/libmyth'
> make[1]: *** [sub-libmyth] Error 2
> make[1]: Leaving directory `/dev/shm/mythtv/libs'
> make: *** [sub-libs] Error 2
> ---------------
>
> OS: Debian unstable
> QT dev files: 3:3.3.7-9
>
> Anybody who has the same problem, and knows what to do?
>
>
>
>
> cheers,
>            Bart
>
> -- 
> Schelstraete Bart
> http://www.schelstraete.org
> bart at schelstraete.org <mailto:bart at schelstraete.org>
Try it without the following:

--disable-audio-alsa --disable-audio-oss --disable-mmx --enable-proc-opt

You have completely disabled the audio subsystem and disabled an 
important processor feature. Try compiling with the standard features 
enabled to prove that your system has all the prereqs installed.




More information about the mythtv-users mailing list