[mythtv-users] weather

Brad DerManouelian myth at dermanouelian.com
Thu Jun 7 14:48:34 UTC 2007


On Jun 7, 2007, at 6:51 AM, Ben Dailey wrote:

> mythweather has been replaced by mythweather-revamp it is in svn  
> but currently in a different branch. Here is the wiki page with  
> directions for getting it working: http://www.mythtv.org/wiki/ 
> index.php/Using_mythweather-reavmp_with_trunk_mythtv
>
> It states it works in North America but you might be able to add  
> support for over the pond :)
>
> Hope this helps,
> Ben

I just tried compiling this and I get errors. I'm using AMD64 if that  
makes a difference. Anyone successfully done this lately?

[mythtv at mythtv mythplugins]$ ./configure --disable-all --enable- 
mythweather --prefix=/usr

Configuration settings:
         MythBrowser   plugin will not be built
         MythControls  plugin will not be built
         MythFlix      plugin will not be built
         MythDVD       plugin will not be built
         MythGallery   plugin will not be built
         MythGame      plugin will not be built
         MythMusic     plugin will not be built
         MythNews      plugin will not be built
         MythPhone     plugin will not be built
         MythVideo     plugin will not be built
         MythWeather   plugin will be built

[mythtv at mythtv mythplugins]$ make
cd mythweather && qmake mythweather.pro -o Makefile
cd mythweather && make -f Makefile
make[1]: Entering directory `/home/mythtv/mythtv/mythplugins/ 
mythweather-revamp/mythplugins/mythweather'
cd mythweather && qmake mythweather.pro -o Makefile
cd mythweather && make -f Makefile
make[2]: Entering directory `/home/mythtv/mythtv/mythplugins/ 
mythweather-revamp/mythplugins/mythweather/mythweather'
g++ -c -pipe -Wall -W -g -D_REENTRANT -DPIC -fPIC  -D_GNU_SOURCE - 
DPREFIX=\"\" -D_FILE_OFFSET_BITS=64 -DQT_THREAD_SUPPORT -DQT_PLUGIN - 
DQT_SHARED -DQT_NO_DEBUG -I/usr/lib64/qt-3.3/mkspecs/default -I. -I/ 
include -I/usr/kde/3.3/include -I/include -I/usr/lib64/qt-3.3/include  
-o main.o main.cpp
In file included from main.cpp:18:
weather.h:24:28: error: mythtv/uitypes.h: No such file or directory
weather.h:25:29: error: mythtv/xmlparse.h: No such file or directory
weather.h:26:32: error: mythtv/oldsettings.h: No such file or directory
weather.h:27:32: error: mythtv/mythwidgets.h: No such file or directory
weather.h:28:32: error: mythtv/mythdialogs.h: No such file or directory
In file included from main.cpp:19:
weatherSetup.h:9:31: error: mythtv/mythwizard.h: No such file or  
directory
weatherSetup.h:10:34: error: mythtv/uilistbtntype.h: No such file or  
directory
main.cpp:23:30: error: mythtv/lcddevice.h: No such file or directory
main.cpp:24:32: error: mythtv/mythcontext.h: No such file or directory
main.cpp:26:31: error: mythtv/mythplugin.h: No such file or directory
main.cpp:27:45: error: mythtv/libmythui/myththemedmenu.h: No such  
file or directory
weatherSource.h: In member function ‘void  
WeatherSource::startUpdateTimer()’:
weatherSource.h:64: error: invalid use of undefined type ‘struct QTimer’
/usr/lib64/qt-3.3/include/qwindowdefs.h:79: error: forward  
declaration of ‘struct QTimer’
weatherSource.h: In member function ‘void  
WeatherSource::stopUpdateTimer()’:
weatherSource.h:65: error: invalid use of undefined type ‘struct QTimer’
/usr/lib64/qt-3.3/include/qwindowdefs.h:79: error: forward  
declaration of ‘struct QTimer’
sourceManager.h: At global scope:
sourceManager.h:39: error: ISO C++ forbids declaration of ‘QIntDict’  
with no type
sourceManager.h:39: error: expected ‘;’ before ‘<’ token
weatherScreen.h:20: error: ‘LayerSet’ has not been declared
weatherScreen.h:21: error: ‘LayerSet’ has not been declared
weatherScreen.h:23: error: ‘LayerSet’ has not been declared
weatherScreen.h:36: error: ISO C++ forbids declaration of ‘LayerSet’  
with no type
weatherScreen.h:36: error: expected ‘;’ before ‘*’ token
weatherScreen.h:52: error: ISO C++ forbids declaration of ‘LayerSet’  
with no type
weatherScreen.h:52: error: expected ‘;’ before ‘*’ token
weatherScreen.h:54: error: ‘UIType’ has not been declared
weatherScreen.h:56: error: ISO C++ forbids declaration of ‘UIType’  
with no type
weatherScreen.h:56: error: expected ‘;’ before ‘*’ token
weatherScreen.h:62: error: ISO C++ forbids declaration of  
‘UIAnimatedImageType’ with no type
weatherScreen.h:62: error: expected ‘;’ before ‘*’ token
weatherScreen.h:70: error: ‘LayerSet’ has not been declared
weatherScreen.h:79: error: ‘LayerSet’ has not been declared
weatherScreen.h:86: error: ‘LayerSet’ has not been declared
weatherScreen.h:92: error: ISO C++ forbids declaration of  
‘UIRichTextType’ with no type
weatherScreen.h:92: error: expected ‘;’ before ‘*’ token
weatherScreen.h:100: error: ‘LayerSet’ has not been declared
weatherScreen.h:103: error: ‘UIType’ has not been declared
weatherScreen.h:114: error: ‘LayerSet’ has not been declared
weatherScreen.h:117: error: ‘UIType’ has not been declared
weather.h:50: error: expected class-name before ‘{’ token
weather.h:53: error: expected `)' before ‘*’ token
weather.h:77: error: ‘QDomElement’ has not been declared
weather.h:84: error: ‘QDomElement’ has not been declared
weather.h:85: error: ISO C++ forbids declaration of ‘XMLParse’ with  
no type
weather.h:85: error: expected ‘;’ before ‘*’ token
weather.h:86: error: ‘QDomElement’ does not name a type
weather.h:123: error: field ‘realBackground’ has incomplete type
weather.h:50: warning: ‘class Weather’ has virtual functions but non- 
virtual destructor
weather.h: In member function ‘QPixmap* Weather::getBackground()’:
weather.h:58: error: ‘realBackground’ was not declared in this scope
weatherSetup.h: At global scope:
weatherSetup.h:28: error: ISO C++ forbids declaration of ‘QDict’ with  
no type
weatherSetup.h:28: error: expected ‘;’ before ‘<’ token
weatherSetup.h:45: error: expected class-name before ‘{’ token
weatherSetup.h:48: error: expected `)' before ‘*’ token
weatherSetup.h:86: error: ISO C++ forbids declaration of  
‘MythThemedDialog’ with no type
weatherSetup.h:86: error: expected ‘;’ before ‘*’ token
weatherSetup.h:45: warning: ‘class WeatherSpinBox’ has virtual  
functions but non-virtual destructor
weatherSetup.h: In member function ‘virtual bool  
WeatherSpinBox::eventFilter(QObject*, QEvent*)’:
weatherSetup.h:60: error: ‘gContext’ was not declared in this scope
weatherSetup.h:65: error: ‘m_parent’ was not declared in this scope
weatherSetup.h:67: error: ‘m_parent’ was not declared in this scope
weatherSetup.h:81: error: ‘MythSpinBox’ has not been declared
weatherSetup.h: At global scope:
weatherSetup.h:90: error: expected class-name before ‘{’ token
weatherSetup.h:93: error: expected `)' before ‘*’ token
weatherSetup.h:101: error: ISO C++ forbids declaration of  
‘UICheckBoxType’ with no type
weatherSetup.h:101: error: expected ‘;’ before ‘*’ token
weatherSetup.h:102: error: ISO C++ forbids declaration of  
‘UICheckBoxType’ with no type
weatherSetup.h:102: error: expected ‘;’ before ‘*’ token
weatherSetup.h:90: warning: ‘class GlobalSetup’ has virtual functions  
but non-virtual destructor
weatherSetup.h:109: error: expected class-name before ‘{’ token
weatherSetup.h:112: error: expected `)' before ‘*’ token
weatherSetup.h:115: error: ‘UIListBtnTypeItem’ has not been declared
weatherSetup.h:122: error: ‘UIListBtnType’ has not been declared
weatherSetup.h:122: error: ‘UIListBtnTypeItem’ has not been declared
weatherSetup.h:127: error: ‘UIType’ has not been declared
weatherSetup.h:128: error: ‘UIType’ has not been declared
weatherSetup.h:129: error: ‘UIType’ has not been declared
weatherSetup.h:130: error: ‘UIType’ has not been declared
weatherSetup.h:131: error: ‘UIType’ has not been declared
weatherSetup.h:135: error: ‘XMLParse’ does not name a type
weatherSetup.h:136: error: ISO C++ forbids declaration of  
‘UITextType’ with no type
weatherSetup.h:136: error: expected ‘;’ before ‘*’ token
weatherSetup.h:137: error: ISO C++ forbids declaration of  
‘UIListBtnType’ with no type
weatherSetup.h:137: error: expected ‘;’ before ‘*’ token
weatherSetup.h:138: error: ISO C++ forbids declaration of  
‘UIListBtnType’ with no type
weatherSetup.h:138: error: expected ‘;’ before ‘*’ token
weatherSetup.h:139: error: ISO C++ forbids declaration of  
‘UIListBtnType’ with no type
weatherSetup.h:139: error: expected ‘;’ before ‘*’ token
weatherSetup.h:109: warning: ‘class ScreenSetup’ has virtual  
functions but non-virtual destructor
weatherSetup.h:143: error: expected class-name before ‘{’ token
weatherSetup.h:146: error: expected `)' before ‘*’ token
weatherSetup.h:151: error: ‘UIListBtnTypeItem’ has not been declared
weatherSetup.h:160: error: ISO C++ forbids declaration of  
‘UIListBtnType’ with no type
weatherSetup.h:160: error: expected ‘;’ before ‘*’ token
weatherSetup.h:143: warning: ‘class SourceSetup’ has virtual  
functions but non-virtual destructor
weatherSetup.h:168: error: expected class-name before ‘{’ token
weatherSetup.h:171: error: expected `)' before ‘*’ token
weatherSetup.h:177: error: ‘UIListBtnTypeItem’ has not been declared
weatherSetup.h:182: error: ISO C++ forbids declaration of ‘QDict’  
with no type
weatherSetup.h:182: error: expected ‘;’ before ‘<’ token
weatherSetup.h:185: error: ISO C++ forbids declaration of  
‘UIListBtnType’ with no type
weatherSetup.h:185: error: expected ‘;’ before ‘*’ token
weatherSetup.h:186: error: ISO C++ forbids declaration of  
‘UIRemoteEditType’ with no type
weatherSetup.h:186: error: expected ‘;’ before ‘*’ token
weatherSetup.h:187: error: ISO C++ forbids declaration of  
‘UITextButtonType’ with no type
weatherSetup.h:187: error: expected ‘;’ before ‘*’ token
weatherSetup.h:168: warning: ‘class LocationDialog’ has virtual  
functions but non-virtual destructor
main.cpp:37: error: expected constructor, destructor, or type  
conversion before ‘*’ token
main.cpp: In function ‘void setupKeys()’:
main.cpp:44: error: ‘REG_JUMP’ was not declared in this scope
main.cpp:45: error: ‘REG_KEY’ was not declared in this scope
main.cpp: In function ‘int mythplugin_init(const char*)’:
main.cpp:53: error: ‘gContext’ was not declared in this scope
main.cpp:54: error: ‘MYTH_BINARY_VERSION’ was not declared in this scope
main.cpp:57: error: ‘gContext’ was not declared in this scope
main.cpp: In function ‘void runWeather()’:
main.cpp:73: error: ‘gContext’ was not declared in this scope
main.cpp:80: error: ‘class Weather’ has no member named ‘exec’
main.cpp: In function ‘void WeatherCallback(void*, QString&)’:
main.cpp:98: error: ‘gContext’ was not declared in this scope
main.cpp:99: error: ‘class GlobalSetup’ has no member named ‘exec’
main.cpp:106: error: ‘gContext’ was not declared in this scope
main.cpp:107: error: ‘class ScreenSetup’ has no member named ‘exec’
main.cpp:126: error: ‘gContext’ was not declared in this scope
main.cpp:128: error: ‘class SourceSetup’ has no member named ‘exec’
main.cpp:130: error: ‘MythPopupBox’ has not been declared
main.cpp: In function ‘int mythplugin_config()’:
main.cpp:141: error: ‘MythThemedMenu’ was not declared in this scope
main.cpp:141: error: ‘menu’ was not declared in this scope
main.cpp:141: error: expected type-specifier before ‘MythThemedMenu’
main.cpp:141: error: expected `;' before ‘MythThemedMenu’
main.cpp:146: error: incomplete type ‘LCD’ used in nested name specifier
main.cpp:147: error: invalid use of undefined type ‘struct LCD’
main.cpp:146: error: forward declaration of ‘struct LCD’
main.cpp:149: error: ‘GetMythMainWindow’ was not declared in this scope
make[2]: *** [main.o] Error 1
make[2]: Leaving directory `/home/mythtv/mythtv/mythplugins/ 
mythweather-revamp/mythplugins/mythweather/mythweather'
make[1]: *** [sub-mythweather] Error 2
make[1]: Leaving directory `/home/mythtv/mythtv/mythplugins/ 
mythweather-revamp/mythplugins/mythweather'
make: *** [sub-mythweather] Error 2



More information about the mythtv-users mailing list