[mythtv] Plugin development.

Zacarias Benta zbenta at gmail.com
Wed Feb 24 13:34:19 UTC 2010


I have installed all de devel packages for mythtv in the ubuntu repository.
Ive checked out the latest version of mythtv to my home drive.
I've also made the same for the mythplugins and placed them inside the
mythtv.
I've compiled the mythtv instalation and made some changes on to the code
regarding the " include (
../../mythconfig.mak )"  and "include ( ../../settings.pro )"
Now I have it like this "include ( /home/zbenta/mythtv/config.mak )
include ( /home/zbenta/mythtv/settings.pro )".
Ive replaced the "mythconfig.mak" for  "config.mak" because that is what I
see in my mythtv directory, as for the rest I've written the full path for
each of the includes.
After having tried to compile the mythhello plugin I get the following:

zbenta at death-star:~/mythtv/mythplugins/mythhello$ sudo make
cd mythhello/ && make -f Makefile
make[1]: Entering directory
`/home/zbenta/mythtv/mythplugins/mythhello/mythhello'
/usr/bin/qmake-qt4 -unix -o Makefile mythhello.pro

make[1]: Leaving directory
`/home/zbenta/mythtv/mythplugins/mythhello/mythhello'
make[1]: Entering directory
`/home/zbenta/mythtv/mythplugins/mythhello/mythhello'
ccache g++ -c -pipe -fomit-frame-pointer -O3 -g -Wall -Wno-switch
-Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time
-D__STDC_CONSTANT_MACROS -I/usr/include/directfb -D_REENTRANT -D_REENTRANT
-DPIC -fPIC -DMMX -Di386 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DQT_NO_DEBUG
-DQT_PLUGIN -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql
-I/usr/include/qt4 -I/usr/include -I/usr/local -I. -o main.o
main.cpp

main.cpp:8:25: error: mythcontext.h: No such file or
directory
main.cpp:9:24: error: mythplugin.h: No such file or
directory
main.cpp:10:27: error: mythpluginapi.h: No such file or
directory
main.cpp:11:25: error: mythversion.h: No such file or
directory
main.cpp:12:28: error: mythmainwindow.h: No such file or
directory
In file included from
main.cpp:15:

mythhello.h:6:28: error: mythscreentype.h: No such file or
directory
mythhello.h:7:26: error: mythuibutton.h: No such file or directory
In file included from main.cpp:15:
mythhello.h:14: error: expected class-name before ‘{’ token
mythhello.h:18: error: expected ‘)’ before ‘*’ token
mythhello.h:20: error: ‘QKeyEvent’ has not been declared
mythhello.h:24: error: ISO C++ forbids declaration of ‘MythUIText’ with no
type
mythhello.h:24: error: expected ‘;’ before ‘*’ token
mythhello.h:25: error: ISO C++ forbids declaration of ‘MythUIText’ with no
type
mythhello.h:25: error: expected ‘;’ before ‘*’ token
mythhello.h:26: error: ISO C++ forbids declaration of ‘MythUIButton’ with no
type
mythhello.h:26: error: expected ‘;’ before ‘*’ token
mythhello.h:27: error: ISO C++ forbids declaration of ‘MythUIButton’ with no
type
mythhello.h:27: error: expected ‘;’ before ‘*’ token
main.cpp: In function ‘void setupKeys()’:
main.cpp:26: error: ‘REG_JUMP’ was not declared in this scope
main.cpp: In function ‘int mythplugin_init(const char*)’:
main.cpp:32: error: ‘gContext’ was not declared in this scope
main.cpp:34: error: ‘MYTH_BINARY_VERSION’ was not declared in this scope
main.cpp: In function ‘int RunHello()’:
main.cpp:47: error: ‘MythScreenStack’ was not declared in this scope
main.cpp:47: error: ‘mainStack’ was not declared in this scope
main.cpp:47: error: ‘GetMythMainWindow’ was not declared in this scope
main.cpp: In function ‘int mythplugin_config()’:
main.cpp:71: warning: no return statement in function returning non-void
make[1]: *** [main.o] Error 1
make[1]: Leaving directory
`/home/zbenta/mythtv/mythplugins/mythhello/mythhello'
make: *** [sub-mythhello-make_default] Error 2

Can anyone let me know what have i done wrong?




-- 
Zacarias Benta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-dev/attachments/20100224/d6c0fb11/attachment.htm>


More information about the mythtv-dev mailing list