[mythtv-users] Help me for solving problems about Building Pluginsx

Xi Jiarong XiJiarong at sp.edu.sg
Wed Feb 21 08:29:15 UTC 2007


I tried to make a simple mythplugin according to the sample "Building
Plugins:HelloMyth" on URL:
http://www.mythtv.org/wiki/index.php/Building_Plugins:HelloMyth
but, after type make in terminal, some following errors appeared:
what's wrong with this? I think it's not the problem of these c++ source
the header file, but some others, because I just download the whole folder
according to the sample instructions without any modification.
please help me, and give me some instructions.  Many thanks for you!

[mythtv at mythtv mythhello]$ su
Password:
[root at mythtv mythhello]# qmake
[root at mythtv mythhello]# make
cd mythhello && make -f Makefile
make[1]: Entering directory
`/mythtv_build/release-0-20-fixes/mythplugins/mythhello/mythhello'
g++ -c -pipe -Wall -W -fomit-frame-pointer -pthread -D_THREAD_SAFE -DPIC
-fPIC  -D_GNU_SOURCE -DPREFIX=\"/usr/\" -D_FILE_OFFSET_BITS=64
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/usr/local/qt-
3.3.6/mkspecs/freebsd-g++ -I. -I/usr/include -I/usr/kde/3.3/include
-I/usr/include -I/usr/local/include -I/usr/local/qt-3.3.6/include -o main.o
main.cpp
In file included from main.cpp:6:
mythhello.h:4:28: error: mythtv/uitypes.h: No such file or directory
mythhello.h:5:34: error: mythtv/uilistbtntype.h: No such file or directory
mythhello.h:6:29: error: mythtv/xmlparse.h: No such file or directory
mythhello.h:7:32: error: mythtv/mythdialogs.h: No such file or directory
mythhello.h:23:7: warning: no newline at end of file
main.cpp:7:32: error: mythtv/mythcontext.h: No such file or directory
main.cpp:8:30: error: mythtv/mythdbcon.h: No such file or directory
main.cpp:9:30: error: mythtv/lcddevice.h: No such file or directory
main.cpp:10:45: error: mythtv/libmythui/myththemedmenu.h: No such file or
directory
mythhello.h:11: error: expected class-name before '{' token
mythhello.h:16: error: expected `)' before '*' token
main.cpp : In function 'int mythplugin_init(const char*)':
main.cpp:20: error: 'gContext' was not declared in this scope
main.cpp:20: error: 'MYTH_BINARY_VERSION' was not declared in this scope
main.cpp: In function 'int mythplugin_run()':
main.cpp:28: error: 'gContext' was not declared in this scope
main.cpp:31: error: 'class MythHello' has no member named 'exec'
make[1]: *** [main.o] Error 1
make[1]: Leaving directory
`/mythtv_build/release-0-20-fixes/mythplugins/mythhello/mythhello'
make: *** [sub-mythhello] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070221/4bb37fa2/attachment.htm 


More information about the mythtv-users mailing list