Author Topic: Compiling Media_Plugin 0710  (Read 5272 times)

fido

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Compiling Media_Plugin 0710
« on: March 17, 2009, 02:36:10 pm »
Hi

I have setup a development environment on my 0710 core as i would like to get to know the codebase and hopefully proceed to contributing something. I followed the instructions as listed here

http://wiki.linuxmce.org/index.php/Setting_Up_A_Development_Environment

and

http://wiki.linuxmce.org/index.php/Building_From_Source

and also followed Bulek's procedure as used in recompiling the climate and lighting plugin as described here

http://wiki.linuxmce.org/index.php/Adding_support_for_floorplan_devices

The source i downloaded is from http://svn.linuxmce.org/pluto/branches/LinuxMCE-0710


In my case i am attempting to compile the media plugin, so i followed Bulek's procedure as described in the above link but substitute his Climate and Lighting plugins with the Meda Plugin.

All appears to build correctly, the Media_Plugin.so is created. 

Please note i have made no source changes at this stage, i am simply trying to get the media plugin to build and then check to see it works within the system.

After copying the newly created Media_Plugin.so to /usr/pluto/bin/ and forcing a reload of the router, the launch manage reports the following :

Connecting to router at 127.0.0.1
initialise_LMdevice: Connect Failed
initialise_LMdevice: Not retrying
will retry later

It then continues to loop through the above.

If i copy the original Media_Plugin.so back in again, all loads correctly.  So obviously i am missing something in my build procedure that is creating a dud library. 

Anyone got any ideas as to what i am doing wrong ?

Thanks in advance.

« Last Edit: March 17, 2009, 05:13:12 pm by fido »

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Compiling Media_Plugin 0710
« Reply #1 on: March 17, 2009, 05:09:44 pm »

and also followed Hari's procedure as used in recompiling the climate and lighting plugin as described here

http://wiki.linuxmce.org/index.php/Adding_support_for_floorplan_devices

that procedure is from Bulek iirc not me..

Quote
Connecting to router at 127.0.0.1
initialise_LMdevice: Connect Failed
initialise_LMdevice: Not retrying
will retry later

looks like it fails to initialize the lauchmanager device..
rock your home - http://www.agocontrol.com home automation

fido

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Compiling Media_Plugin 0710
« Reply #2 on: March 17, 2009, 05:21:30 pm »

and also followed Hari's procedure as used in recompiling the climate and lighting plugin as described here

http://wiki.linuxmce.org/index.php/Adding_support_for_floorplan_devices

that procedure is from Bulek iirc not me..

looks like it fails to initialize the lauchmanager device..

Indeed you are correct Hari, apologies...i modified my original post. Thanks

fido

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Compiling Media_Plugin 0710
« Reply #3 on: March 17, 2009, 05:32:06 pm »
Some further info:

The original Media_Plugin.so file has a size of 15785848 bytes

The newly built Media_Plugin.so has a size of 15697076 bytes

As mentioned in my original post, i havent changed any of the source....just built from the svn package

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Compiling Media_Plugin 0710
« Reply #4 on: March 17, 2009, 05:55:26 pm »
you need to compile the updated plugins from 0810 against a 0710 branch, if your intention is to use them on 0710. It is a bit tricky, as the 0710 branch does need quite some effort to compile.

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

fido

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Compiling Media_Plugin 0710
« Reply #5 on: March 17, 2009, 09:59:40 pm »
ok, thanks Hari.

By any chance might you have any pointers as to how to do this...do i change need to compile all the 0810 plugins or just the Media_Plugin....do i change the Makefile in the 0810 version to point to the libs etc in 0710 or can i simply copy the 0810 plugin source into my 0710 branch and sort out the dependencies etc ?

Many thanks for you assistance.

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Compiling Media_Plugin 0710
« Reply #6 on: March 17, 2009, 10:04:33 pm »
fido - why don't you set up an 810 dev environment and start there? The code base has changed significantly since the 0710 branch was frozen, and the dev and build environments are significantly different. Just seems like a waste of time learning 0710, when it is already very old, and is about to be superceded completely by 0810....

fido

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Compiling Media_Plugin 0710
« Reply #7 on: March 17, 2009, 11:23:17 pm »
Colin,  i would like to maintain a fully working system as it is used throughout the house by all the family, but i guess i could setup a separate box for development based on 0810 and keep the existing 0710 system in place for now....

So yeah i think you are correct, i'll make that leap to an 0810 environment.

Thanks



colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Compiling Media_Plugin 0710
« Reply #8 on: March 17, 2009, 11:24:47 pm »
Colin,  i would like to maintain a fully working system as it is used throughout the house by all the family, but i guess i could setup a separate box for development based on 0810 and keep the existing 0710 system in place for now....

So yeah i think you are correct, i'll make that leap to an 0810 environment.

Thanks




Excellent - the more devs the better!

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Compiling Media_Plugin 0710
« Reply #9 on: March 17, 2009, 11:27:01 pm »
I agree with colin. Compiling the 0710 branch manually is not documented. And without builder scripts it is quite some effort.

You first need to compile Makerelease_Prepfiles. And then run it (look at the 0810 builder scripts, namely build-maindeps.sh for exact invoication parameters and an example config file). You could also run the sed commands from the Building from Source wiki page. Then compile the base libs like RA, DCE, pluto_main, SerializeClass, PlutoUtils, ...

best regards,
Hari
rock your home - http://www.agocontrol.com home automation

fido

  • Regular Poster
  • **
  • Posts: 27
    • View Profile
Re: Compiling Media_Plugin 0710
« Reply #10 on: March 18, 2009, 11:05:07 am »
Thanks Hari.

Going to setup a separate box for using the 0810 codebase and go from there.