Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Plugin development.

 

 

First page Previous page 1 2 Next page Last page  View All MythTV dev RSS feed   Index | Next | Previous | View Threaded


zbenta at gmail

Jan 6, 2010, 3:04 AM

Post #1 of 26 (4455 views)
Permalink
Plugin development.

After trying to install the QT eclipse integration in kubuntu and failling I
tried using another solution.
I've installed the QT Creator IDE and tried following the Mythhello plugin
guide ( http://www.mythtv.org/wiki/Building_Plugins:HelloMyth
The problem that I'm having is that I can't get the mythhello plugin to
build because it tells me I'm missing some header files.
I installed libmyth-dev using synaptics and still it didn't work.
Has anyone got a solution for me?
How can I get the latest libmyth-dev files, would this be a possible
solution?
By the way I'm using kunbuntu 9.10 and installed mythtv using synaptics so
it must be the latest version(0.22).


lists at manor-farm

Jan 6, 2010, 4:43 AM

Post #2 of 26 (4351 views)
Permalink
Re: Plugin development. [In reply to]

Zacarias Benta wrote:
>
> After trying to install the QT eclipse integration in kubuntu and
> failling I tried using another solution.
> I've installed the QT Creator IDE and tried following the Mythhello
> plugin guide ( http://www.mythtv.org/wiki/Building_Plugins:HelloMyth
> The problem that I'm having is that I can't get the mythhello plugin to
> build because it tells me I'm missing some header files.
> I installed libmyth-dev using synaptics and still it didn't work.
> Has anyone got a solution for me?
> How can I get the latest libmyth-dev files, would this be a possible
> solution?
> By the way I'm using kunbuntu 9.10 and installed mythtv using synaptics
> so it must be the latest version(0.22).
>
>

Usually doing:

sudo apt-get buid-dep packagename

will install all the dependencies for you.

Ian.
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Jan 6, 2010, 6:23 PM

Post #3 of 26 (4322 views)
Permalink
Re: Plugin development. [In reply to]

On 01/06/2010 06:04 AM, Zacarias Benta wrote:
>
> After trying to install the QT eclipse integration in kubuntu and
> failling I tried using another solution.
> I've installed the QT Creator IDE and tried following the Mythhello
> plugin guide ( http://www.mythtv.org/wiki/Building_Plugins:HelloMyth
> The problem that I'm having is that I can't get the mythhello plugin
> to build because it tells me I'm missing some header files.
> I installed libmyth-dev using synaptics and still it didn't work.
> Has anyone got a solution for me?
> How can I get the latest libmyth-dev files, would this be a possible
> solution?
> By the way I'm using kunbuntu 9.10 and installed mythtv using
> synaptics so it must be the latest version(0.22).

Pretty sure MythHello is old, pre-mythui code that I would guess
shouldn't compile with 0.22 or higher.

We've had many people volunteer to update it, but no one has done so, yet...

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Jan 7, 2010, 12:56 AM

Post #4 of 26 (4322 views)
Permalink
Re: Plugin development. [In reply to]

On Thu, Jan 7, 2010 at 2:23 AM, Michael T. Dean <mtdean [at] thirdcontact>wrote:

> On 01/06/2010 06:04 AM, Zacarias Benta wrote:
> >
> > After trying to install the QT eclipse integration in kubuntu and
> > failling I tried using another solution.
> > I've installed the QT Creator IDE and tried following the Mythhello
> > plugin guide ( http://www.mythtv.org/wiki/Building_Plugins:HelloMyth
> > The problem that I'm having is that I can't get the mythhello plugin
> > to build because it tells me I'm missing some header files.
> > I installed libmyth-dev using synaptics and still it didn't work.
> > Has anyone got a solution for me?
> > How can I get the latest libmyth-dev files, would this be a possible
> > solution?
> > By the way I'm using kunbuntu 9.10 and installed mythtv using
> > synaptics so it must be the latest version(0.22).
>
> Pretty sure MythHello is old, pre-mythui code that I would guess
> shouldn't compile with 0.22 or higher.
>
> We've had many people volunteer to update it, but no one has done so,
> yet...
>
> Mike
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>

My problem is that I want to start developing in mythtv and I haven't got
any tutorial to help me get started. Is there any way I can get started?

--
Zacarias Benta


blazej.lewcio at googlemail

Jan 7, 2010, 2:02 AM

Post #5 of 26 (4313 views)
Permalink
Re: Plugin development. [In reply to]

Look at the code of the existing mythplugins. It is a good example of what
you can do when starting plugin development.

Blazej


james.meyer at operamail

Jan 7, 2010, 9:20 AM

Post #6 of 26 (4287 views)
Permalink
Re: Plugin development. [In reply to]

On Wednesday 06 January 2010, Michael T. Dean wrote:
> On 01/06/2010 06:04 AM, Zacarias Benta wrote:
> >
> > After trying to install the QT eclipse integration in kubuntu and
> > failling I tried using another solution.
> > I've installed the QT Creator IDE and tried following the Mythhello
> > plugin guide ( http://www.mythtv.org/wiki/Building_Plugins:HelloMyth
> > The problem that I'm having is that I can't get the mythhello plugin
> > to build because it tells me I'm missing some header files.
> > I installed libmyth-dev using synaptics and still it didn't work.
> > Has anyone got a solution for me?
> > How can I get the latest libmyth-dev files, would this be a possible
> > solution?
> > By the way I'm using kunbuntu 9.10 and installed mythtv using
> > synaptics so it must be the latest version(0.22).
>
> Pretty sure MythHello is old, pre-mythui code that I would guess
> shouldn't compile with 0.22 or higher.
>
> We've had many people volunteer to update it, but no one has done so, yet...

The code was updated late last night.
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Jan 9, 2010, 9:20 AM

Post #7 of 26 (4208 views)
Permalink
Re: Plugin development. [In reply to]

On 01/07/2010 12:20 PM, james meyer wrote:
> On Wednesday 06 January 2010, Michael T. Dean wrote:
>
>> Pretty sure MythHello is old, pre-mythui code that I would guess
>> shouldn't compile with 0.22 or higher.
>>
>> We've had many people volunteer to update it, but no one has done so, yet...
>>
> The code was updated late last night.

Huge thanks, James. That will make things a lot easier for a lot of
people. And, based on some discussion I overheard in IRC, it seems that
the planned approach for the tutorial is likely to result in fewer new
plugins with old, unnecessary vestiges of MythFlix or MythNews or
whatever plugin was used as a "template" accidentally left behind.

And, uncanny timing on the update, too. :)

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Jan 10, 2010, 7:19 AM

Post #8 of 26 (4162 views)
Permalink
Re: Plugin development. [In reply to]

You've said that the code ahs been updated, but I went to the mythtv wiki
page and the code for mythhello is still the same as before.
Where can I find the updated code that you mentioned before?


robert.mcnamara at gmail

Jan 10, 2010, 8:25 AM

Post #9 of 26 (4152 views)
Permalink
Re: Plugin development. [In reply to]

On Sun, Jan 10, 2010 at 7:19 AM, Zacarias Benta <zbenta [at] gmail> wrote:
>
> You've said that the code ahs been updated, but I went to the mythtv wiki
> page and the code for mythhello is still the same as before.
> Where can I find the updated code that you mentioned before?

http://www.mythtv.org/wiki/Building_Plugins:HelloMyth

If this is the page you went to, it is not the same as before.

Robert
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Jan 10, 2010, 8:45 AM

Post #10 of 26 (4153 views)
Permalink
Re: Plugin development. [In reply to]

Thanks Robert,

Probably the page was already in my browser's cache and that's why I didn't
saw the changes.

Zacarias Benta


james.meyer at operamail

Jan 12, 2010, 7:53 AM

Post #11 of 26 (4046 views)
Permalink
Re: Plugin development. [In reply to]

On Sunday 10 January 2010, Zacarias Benta wrote:
> Thanks Robert,
>
> Probably the page was already in my browser's cache and that's why I didn't
> saw the changes.
>
> Zacarias Benta
>
Safe to assume that things are working now?
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Feb 8, 2010, 3:53 AM

Post #12 of 26 (3549 views)
Permalink
Re: Plugin development. [In reply to]

I've tried to use the changes on the plugin development guide that were
suggested on the wiki.
I used QT Creator as my IDE and when i tried to compile I got the following
output:

Exited with code 0.

Starting: /usr/bin/make -w

make: Entering directory `/home/zbenta/mythplugins/mythhello'

cd mythhello/ && /usr/bin/make -f Makefile

make[1]: Entering directory `/home/zbenta/mythplugins/mythhello/mythhello'

g++ -c -pipe -fomit-frame-pointer -D_REENTRANT -Wall -W -DPIC -fPIC
-D_GNU_SOURCE -DPREFIX="" -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/include -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]: Leaving directory `/home/zbenta/mythplugins/mythhello/mythhello'

make: Leaving directory `/home/zbenta/mythplugins/mythhello'

make[1]: *** [main.o] Error 1

make: *** [sub-mythhello-make_default] Error 2

Exited with code 2.

Error while building project mythhello

When executing build step 'Make'


Zacarias Benta


jonathan at snetram

Feb 8, 2010, 5:33 AM

Post #13 of 26 (3546 views)
Permalink
Re: Plugin development. [In reply to]

On 8-2-2010 12:53, Zacarias Benta wrote:
> cd mythhello/ && /usr/bin/make -f Makefile
>
> make[1]: Entering directory `/home/zbenta/mythplugins/mythhello/mythhello'
>
> g++ -c -pipe -fomit-frame-pointer -D_REENTRANT -Wall -W -DPIC -fPIC
> -D_GNU_SOURCE -DPREFIX="" -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/include -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]: Leaving directory `/home/zbenta/mythplugins/mythhello/mythhello'
>
> make: Leaving directory `/home/zbenta/mythplugins/mythhello'
>
> make[1]: *** [main.o] Error 1
>
> make: *** [sub-mythhello-make_default] Error 2
>
> Exited with code 2.
>
> Error while building project mythhello
>
> When executing build step 'Make'

Do you link to a compiled installation of MythTV itself? IIRC that is
required.

Kind regards,

Jonathan
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Feb 23, 2010, 3:09 AM

Post #14 of 26 (3186 views)
Permalink
Re: Plugin development. [In reply to]

I don know if I have done that, can you give me a tip on how to do it?

On Mon, Feb 8, 2010 at 1:33 PM, Jonathan Martens <jonathan [at] snetram>wrote:

> On 8-2-2010 12:53, Zacarias Benta wrote:
>
>> cd mythhello/ && /usr/bin/make -f Makefile
>>
>> make[1]: Entering directory `/home/zbenta/mythplugins/mythhello/mythhello'
>>
>> g++ -c -pipe -fomit-frame-pointer -D_REENTRANT -Wall -W -DPIC -fPIC
>> -D_GNU_SOURCE -DPREFIX="" -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/include -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]: Leaving directory `/home/zbenta/mythplugins/mythhello/mythhello'
>>
>> make: Leaving directory `/home/zbenta/mythplugins/mythhello'
>>
>> make[1]: *** [main.o] Error 1
>>
>> make: *** [sub-mythhello-make_default] Error 2
>>
>> Exited with code 2.
>>
>> Error while building project mythhello
>>
>> When executing build step 'Make'
>>
>
> Do you link to a compiled installation of MythTV itself? IIRC that is
> required.
>
> Kind regards,
>
> Jonathan
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>



--
Zacarias Benta


jonathan at snetram

Feb 23, 2010, 10:14 AM

Post #15 of 26 (3161 views)
Permalink
Re: Plugin development. [In reply to]

On 23-2-2010 12:09, Zacarias Benta wrote:
> I don know if I have done that, can you give me a tip on how to do it?

First of all, please do not top-post and try and cut the post you are
replying to to the relevant sections, makes reading threads much easier.

You need to compile MythTV itself as well, before you can compile the
plugins or install development libraries depending on how you installed
MythTV IIRC.

Kind regards,

Jonathan
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Feb 23, 2010, 10:26 AM

Post #16 of 26 (3161 views)
Permalink
Re: Plugin development. [In reply to]

Sorry about the toppost, my bad.
Thanks for the tips, I will remove my mythtv instalation fom the
repositories and will try to compile it from source.

Best regards
Zacarias Benta


jonathan at snetram

Feb 23, 2010, 10:36 AM

Post #17 of 26 (3162 views)
Permalink
Re: Plugin development. [In reply to]

On 23-2-2010 19:26, Zacarias Benta wrote:
> Thanks for the tips, I will remove my mythtv instalation fom the
> repositories

No need to.

> and will try to compile it from source.

AFAIK you can do that alongside your installed packages from the repo,
but more easy install the -devel packages from the repositories as I
already suggested.

Kind regards,

Jonathan
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


george.galt at gmail

Feb 23, 2010, 1:11 PM

Post #18 of 26 (3150 views)
Permalink
Re: Plugin development. [In reply to]

On Tue, Feb 23, 2010 at 1:36 PM, Jonathan Martens <jonathan [at] snetram> wrote:
> On 23-2-2010 19:26, Zacarias Benta wrote:
>>
>> Thanks for the tips, I will remove my mythtv instalation fom the
>> repositories
>
> No need to.
>
>> and will try to compile it from source.
>
> AFAIK you can do that alongside your installed packages from the repo, but
> more easy install the -devel packages from the repositories as I already
> suggested.
>
> Kind regards,
>
> Jonathan
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>

Have you duplicated the .pro file from the examples or at least used
it as a template? It has a few references like " include (
../../mythconfig.mak )" and "include ( ../../settings.pro )" that are
important. Also, make sure you have installed the -devel packages for
your distribution.

George
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Feb 24, 2010, 5:34 AM

Post #19 of 26 (3119 views)
Permalink
Re: Plugin development. [In reply to]

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-sta:~/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


zbenta at gmail

Feb 24, 2010, 7:16 AM

Post #20 of 26 (3113 views)
Permalink
Re: Plugin development. [In reply to]

I believe that my problem has something to do with paths.
I've edited all the includes on the mythhello plugin and added the full path
for each header file.
Can anyone give me a hand on how to define the path for the libs in mythtv?

I've compiled the plugin with all my changes and now would like to add it to
the menu on mythtv.
I've followed the tutorial but it doesn't appear on the menu.

Zacarias Benta


george.galt at gmail

Feb 24, 2010, 7:18 AM

Post #21 of 26 (3113 views)
Permalink
Re: Plugin development. [In reply to]

On Wed, Feb 24, 2010 at 8:34 AM, Zacarias Benta <zbenta [at] gmail> wrote:
>
>
> 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:

I'm not sure how things are set up for ubuntu, but in Fedora, I've got
a copy of mythconfig.mak in /usr/include/mythtv and in my copy of the
source. My guess is that the "config.mak" file in your
/home/zbenta/mythtv/ directory is **NOT** the same file. My
suggestion would be:

1) download the source from www.mythtv.org for **BOTH** mythtv and the plugins
2) go to your copy of the source and run the configure script with
whatever you need for parameters (e.g., for building on Fedora, one
wants to install to /usr so I usually use --prefix=/usr, but there are
other things as well, type ./configure --help for a list). You will
need to run the configure scripts in both the mythtv and mythplugins
directories (I think).
3) You DO NOT need to compile mythtv -- only run the configure scripts.
4) Move your source tree for the mythhello plugin into the plugin directory
5) change back to using ../../mythconfig.mak and /../../settings.pro
in your .pro file
6) qmake-qt4 -recursive
7) make
8) see what happens.
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


lindsay.mathieson at gmail

Feb 24, 2010, 5:05 PM

Post #22 of 26 (3077 views)
Permalink
Re: Plugin development. [In reply to]

On Wed, 24 Feb 2010 15:16:21 +0000, Zacarias Benta <zbenta [at] gmail>
wrote:
> I believe that my problem has something to do with paths.
> I've edited all the includes on the mythhello plugin and added the full
> path
> for each header file.
> Can anyone give me a hand on how to define the path for the libs in
mythtv?
>
> I've compiled the plugin with all my changes and now would like to add
it
> to
> the menu on mythtv.
> I've followed the tutorial but it doesn't appear on the menu.
>
> Zacarias Benta


Have you install the mythdev libraries?, e.g

sudo apt-get install libmyth-dev

That was all I needed to build plugins.
--
Lindsay Mathieson
http://blackpaw.jalbum.net/home/
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Feb 25, 2010, 6:58 AM

Post #23 of 26 (3022 views)
Permalink
Re: Plugin development. [In reply to]

1) download the source from www.mythtv.org for **BOTH** mythtv and the
> plugins
> 2) go to your copy of the source and run the configure script with
> whatever you need for parameters (e.g., for building on Fedora, one
> wants to install to /usr so I usually use --prefix=/usr, but there are
> other things as well, type ./configure --help for a list). You will
> need to run the configure scripts in both the mythtv and mythplugins
> directories (I think).
> 3) You DO NOT need to compile mythtv -- only run the configure scripts.
> 4) Move your source tree for the mythhello plugin into the plugin directory
> 5) change back to using ../../mythconfig.mak and /../../settings.pro
> in your .pro file
> 6) qmake-qt4 -recursive
> 7) make
> 8) see what happens.
>

I did it as you mentioned but still have the same errors.

--
Zacarias Benta


george.galt at gmail

Feb 25, 2010, 8:44 AM

Post #24 of 26 (3019 views)
Permalink
Re: Plugin development. [In reply to]

On Thu, Feb 25, 2010 at 9:58 AM, Zacarias Benta <zbenta [at] gmail> wrote:
>
>
>> 1)  download the source from www.mythtv.org for **BOTH** mythtv and the
>> plugins
>> 2)  go to your copy of the source and run the configure script with
>> whatever you need for parameters (e.g., for building on Fedora, one
>> wants to install to /usr so I usually use --prefix=/usr, but there are
>> other things as well, type ./configure --help for a list).  You will
>> need to run the configure scripts in both the mythtv and mythplugins
>> directories (I think).
>> 3) You DO NOT need to compile mythtv -- only run the configure scripts.
>> 4) Move your source tree for the mythhello plugin into the plugin
>> directory
>> 5) change back to using ../../mythconfig.mak and /../../settings.pro
>> in your .pro file
>> 6) qmake-qt4 -recursive
>> 7) make
>> 8) see what happens.
>
> I did it as you mentioned but still have the same errors.
>
> --
> Zacarias Benta
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
>

Are you building within QtCreator or are you building from a terminal
window? QtCreator (I believe) sets a bunch of environmental variables
that might be causing interference. If not, and you are building from
a terminal window, I'm at a loss. Sorry.

George
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


zbenta at gmail

Feb 25, 2010, 8:55 AM

Post #25 of 26 (3007 views)
Permalink
Re: Plugin development. [In reply to]

I've followed your directions and tried it both ways.
The result as been the same.
I've sucessfully managed to compile the mythhello plugin, but for that I had
to give the full path for each of the header files within the code.
I didn't knew how to fix it, so I located all the headers that are mentioned
on the code and replaced for example:

"#include <mythcontext.h>"

for

"#include </home/zbenta/mythtv/libs/libmyth/mythcontext.h>"

and got no errors while compiling.
This is one thing that I would like to solve, or else I will have to write
the full path for each header when I'm developing.

The other problem that I'm having now is that after having compiled the
mythhello plugin, i cant seem to add it to mythtv, I've followed the
tutorial but the button doesn't appear in the mythfrontend.

Best regards,
Zacarias Benta

First page Previous page 1 2 Next page Last page  View All MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.