Jump to content


Photo

create / build first plugin

build plugin

  • Please log in to reply
3 replies to this topic

#1 ehenderichs

  • Member
  • 8 posts

0
Neutral

Posted 19 November 2014 - 13:18

I am looking into creating, building, uploading and installing my first (dummy) plugin. Just to get a feel for the proces involved in these steps.

 

I know I am expected to learn by example, searching forum, googling and so on. However I am hoping someone can point me in the right direction.

 

Looking at some plugins it seems some use a makefile - make.am, while others use bitbake recipes - plugin.bb. Searching for creating openpli plugin I found: http://wiki.openpli....E2PluginsCreate , which seems to use yet anohter approach. 

 

My best guess is the preferred way is to use bitbake recipes and the wiki description is outdated or describes something completely different (and I misunderstood). 

 

To get more context. I cloned plugins from git into eclipse and these sourses are stored outside the openpli40 (setup tutorial). I copied one of the plugins and changed name, description, etc (setup.py) and removed all the plugin logic (only imports, def Plugin and def main remain). I just want to build, upload and install, so it will show up in the plugin menu. Then work from there.

 

All information about proces, preferred way of working, etc, is welcome offcourse. Thanks in advance



Re: create / build first plugin #2 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 19 November 2014 - 13:55

You can make the plugin in the box image. Put it in the Extensions folder and run it. Look in the crash log and correct/improve what you need to.



Re: create / build first plugin #3 ehenderichs

  • Member
  • 8 posts

0
Neutral

Posted 19 November 2014 - 15:59

You can make the plugin in the box image. Put it in the Extensions folder and run it. Look in the crash log and correct/improve what you need to.

 

So I should put the plugin source code in openpli40/openpli-oe-core/sources and start buildproces?



Re: create / build first plugin #4 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 19 November 2014 - 17:21

Plugins are normally build only in Python. So you can copy the sources to the box and run it. So you don't need a build environment for that. Later after finishing development you can setup bb files and test in build env.

So create on the box under
/usr/lib/enigma2/python/Plugins/Extensions/
a new folder and put plugin files there. Then restart e2 and test it
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04



Also tagged with one or more of these keywords: build, plugin

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users