Author Topic: MythTV_Plugin Won't Compile  (Read 1291 times)

orionsune

  • Veteran
  • ***
  • Posts: 133
    • View Profile
MythTV_Plugin Won't Compile
« on: March 18, 2008, 11:16:56 pm »
I am using the sources from charonmedia.
I am trying to compile this on 710b3.

I have previously tried compiling the source on 7.04, but recieved a plhetora of errors during the build script.  Alot of missing files/folders, then an unknown user errors when connecting to the database, I can go on and on.
Needless to say, I managed to get the majority of the source to compile errorless on 710b3.

My initial reason for recompiling MythTV_Plugin was to remove the statically set options for interlacing and vsyncing.  I tried compiling the plugin with and without my mods.

When I run make from the build script, or from the source folder /trun/src/MythTV_Plugin, I receive the same error.


This is the error.
Code: [Select]
MythTV_PlugIn.cpp:896: error: SCREEN_PVR_CONST was not declared in this scope
MythTV_PlugIn.cpp:897: error: SCREEN_PvrFullScreen_CONST was not declared in this scope
MythTV_PlugIn.cpp:901: error: SCREEN_mnuPVRRecording_CONST was not declared in this scope
MythTV_PlugIn.cpp:902: error: SCREEN_mnuPVRRecording_Full_Screen_CONST was not declared in this scope
MythTV_PlugIn.cpp:906: error: SCREEN_mnuPVROSD_CONST was not declared in this scope
MythTV_PlugIn.cpp:907: error: SCREEN_mnuPVR_OSD_Full_Screen_CONST was not declared in this scope

Initially, I found the file those constants were being declared in, /trunk/src/pluto_main/Define_Screen.h, and added the declarations manually.  The plugin then compiled fine, but when I inserted it into my lmce box and rebooted, everything worked fine except for one thing.  The lmce interface would not dissapear with the right click of my go mouse.  Nothing would cause it to dissapear, it was permanently affixed lol.  So anyways...

With some inquiry in IRC, I found out the pluto_main is generated by sql2cpp which in turns gets all it's information from you currently running database.  After making sure sql2cpp wasn't screwed up, I proceeded to see what is so different from my database versus those who are compiling fine.  Well since I didn't have a copy of someone elses database, I decided to install a vanilla install in a virtual machine.  Using the same 710b3 version.  I put the charonmedia source on it, but it would not make it through the build script, kept giving me errors.  So instead, I went to my production box's database and searched for the constant "mnuPVRRecording" (the SCREEN_ prefix and _CONST suffix are not included in the database, these are added by sql2cpp).  I found one table with mnuPVRRecording in my production database.  It was in pluto_main -> DesignObj field.  I did the same search on my virtual machine's vanilla install and had the identical results.  So I ask myself "it's there in the database so why isn't it being put in the Define_Screen.h by sql2cpp?"  At this point, I wanted to see what a working constant define looks like in the database.  So I open Define_Screen.h and pick a constant that the compiler doesn't complain about and search for it, I chose "SensorsNotReady".  After searching for this in the database, I found it existed in TWO fields instead of just ONE like the other.  This one was found in pluto_main -> DesignObj and pluto_main -> Screen tables.

I search for another constant from Define_Screen.h, and sure enough I saw the trend, every single constant the compiler errors out with is missing an entry in the pluto_main -> Screen table, the ones that work fine ARE in this field.  The vanilla install of 710b3 was identical.  I haven't tried 710b4 yet.  I installed 7.04 in a virual machine, and searched for the problematic constant from earlier, and in 7.04's database it shows up in both fields.  Problem is, I can't get charonmedia sources to compile from my 7.04 copy.

When I originally downloaded the charonmedia sources, the build script installed all the needed packages, and appeared to run without show-stopping errors just warning... and it did proceed to compile all the binaries it could.  This was on a vanilla 710b3 install about 1 month ago.

When I downloaded the caronmedia sources last week onto my 7.04 box, and ran the included build script, it would download and install the needed packages, but then error out on me when trying to do the sql stuff, says the /etc/init.d/mysql-build-mce is missing, so I find it and place it there, and yet another error about a directory missing, so I found it, placed it there, and yet more errors relating to the sql stuff, so I gave up.


Any ideas or suggestions?


My main goal is to just get MythTV_Plugin compiled.  And in fact, if anyone here can compile it under amd64 system with the following lines REMOVED... and provide me the resulting binary and .so file.  I usually don't ask for handouts, but this is such a simple mod, with such a show-stopping wall of not being able to compile this, even without the mod.  Anyone got 5mins for this? 

trunk/src/MythTV_Plugin/MythTV_Plugin.cpp
Code: [Select]
Line 963;
UpdateMythSetting("Language","EN","*",true);
Line 973;
UpdateMythSetting("PreferredMPEG2Decoder","xv","*");
Line 975;
UpdateMythSetting("Deinterlace","1","*");
Line 976;
UpdateMythSetting("DeinterlaceFilter","bobdeint","*");

This will allow for those rare people who don't want English to use whatever is available instead of being forced English.  It will also enable me to choose my own interlacing options instead of being statically forced to use what they (whoever they is) thought we all should be using, not to mention being able to choose decoder as well.

I actually recommend doing this for future releases, or if it is needed for some odd reason, if there is a way to implement a "run once" feature so that Mythtv will retain those defaults after setting them once, and if the user wants to experiment, it's already been run and won't overwrite the users settings on reboot/restart of the plugin.
entia non sunt multiplicanda praeter necessitatem

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: MythTV_Plugin Won't Compile
« Reply #1 on: March 18, 2008, 11:41:28 pm »
so, I really wanted to help you with that but suddenly i became a "green star"...

just kidding,
regards,

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

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: MythTV_Plugin Won't Compile
« Reply #2 on: March 19, 2008, 02:26:15 pm »
Sorry but us "obviously very closed minded, EXTREMELY confused, self-absorbed douche pickles" are way to busy "working on some stupid ass projects", as you so eloquently put it yourself. 
"Change is inevitable. Progress is optional."
-- Anonymous


orionsune

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: MythTV_Plugin Won't Compile
« Reply #3 on: March 19, 2008, 09:15:30 pm »
No problem, i'm making headway on the issue, when I resolve it i'll be sure to share it with everyone despite my misgivings and animosity towards some of you.  Thanks for all the great attitudes and help amongst this community.  I am so impressed with how helpful everyone is and how useful the information you provide is.  I have never seen such a smooth running community where dev's deal with the more common problems and work on creating stable environments, instead of all those other mce platforms where they only care about their own personal projects and don't care how unstable and malformed everything is.  Oh not to mention how informed they are of their own projects.  5 Stars in my book.


2x LOL

« Last Edit: March 19, 2008, 09:31:12 pm by orionsune »
entia non sunt multiplicanda praeter necessitatem

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2421
    • View Profile
    • ago control
Re: MythTV_Plugin Won't Compile
« Reply #4 on: March 19, 2008, 09:37:01 pm »
sorry, I can't help, I don't use mythtv at the moment..
rock your home - http://www.agocontrol.com home automation

orionsune

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: MythTV_Plugin Won't Compile
« Reply #5 on: March 19, 2008, 11:55:09 pm »
now i'm the douche pickle... i updated from sqlCVS, now everything is good...
entia non sunt multiplicanda praeter necessitatem

Zaerc

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 2256
  • Department of Redundancy Department.
    • View Profile
Re: MythTV_Plugin Won't Compile
« Reply #6 on: March 20, 2008, 01:28:15 pm »
now i'm the douche pickle... i updated from sqlCVS, now everything is good...

Isn't it funny that you keep needing and using the results of those projects that we're all "wasting" our time on according to you?  Somehow "douche pickle" doesn't really seem to cover the load in this case.



"Change is inevitable. Progress is optional."
-- Anonymous