MediaPortal First Compile / Run Problem (1 Viewer)

RaringCoder

New Member
January 7, 2011
4
0
Hi guys,

I'm new to MediaPortal and also new to the source. I have pulled the latest code from svn and, after some trial and error not being able to compile some missing projects, have a folder with the following directories:

  • Common-MP-TVE3
  • DirectShowFilters
  • mediaportal
  • Tools
This all compiles fine and will begin to run up.

When I run it up, I initially get a FileNotFoundException on "C:\ProgramData\Team MediaPortal\MediaPortal\MediaPortal.xml". I continue from this until I am greeted with a "MediaPortal Configuration" dialog. I select "Standard mode" and click "Continue".

It then reports "MediaPortal Configuration has stopped working". When I attach the debugger to the separate configuration process that was launched, it appears a load of files are missing. I don't have the list on me at the moment, let me know if you need this (I'm secretly hoping this is a common stumbling block for new developers!).

It's worth noting that I haven't gone through the process of installing MediaPortal as an application on this computer yet. I tried that once and still couldn't get things to debug nicely, so I uninstalled it again.

I'm here asking for advice on how to start.

Thanks in advance.

Adam
 

Jay_UK

Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    If you are after the full Mediaportal experience (ie TV Server), you will also need to checkout TVEngine3

    How are you compiling this? MSBuild? VS? SharpDeveloper? Have you fully followed the wiki?

    Have you tried the simple MSBuild method? (you will need to check out "build" too)

    Thanks,

    J.
     

    RaringCoder

    New Member
    January 7, 2011
    4
    0
    Hi,

    I was just using Visual Studio 2008. I followed what parts of the wiki I found that talked about compiling, but I didn't spot anything about common pitfalls on first run. Unless the MSBuild version places files in default locations, I don't think that will make a difference - compiling works, but I get runtime errors.

    I will checkout those other two projects too :)

    As for fully reading the wiki, I found the following section on debugging:

    Debugging - MediaPortal Wiki

    It doesn't feature any troubleshooting for errors. I believe I've met all the prerequisites, but again I don't actually have MediaPortal installed - just compiled.
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    I just checked out the latest SVN, compiled (using the MSBuild method - I could try with MS VS or Sharp if you wish??) and installed it.

    I do not get the errors you have - so it must be something you are doing/not doing. The SVN build looks ok.

    J.

    ps - I did get an errors on MePo client install about input devices (X10, MCE remote, etc) and weather - but I think thats down to my test machine :(

    J.
     

    RaringCoder

    New Member
    January 7, 2011
    4
    0
    ...and installed it.

    I think this is the only difference. I suspect this is the case as it is complaining about missing files (files I surmise would be present after installing).

    Can you run through the steps on how you installed? For example, the installer you used, the path you installed to, the path your source is in.

    Cheers,

    Adam
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    2,306
    1,884
    Home Country
    United Kingdom United Kingdom
    Hey,

    MePo looks for a load of files in 'C:\ProgramData\Team MediaPortal\MediaPortal' which aren't there unless you use the installer. You can change where MePo looks for these files in 'MediaPortalDirs.xml' which should be in the output directory, e.g. \svn\Mediaportal\MediaPortal.Application\bin\Debug.
    The attached MediaPortalDirs.xml tells MePo to look in the output directory and will enable you to run the exe's after compiling, (backup the original just in case though :))
     

    Attachments

    • MediaPortalDirs.xml
      2.6 KB

    RaringCoder

    New Member
    January 7, 2011
    4
    0
    Hi guys,

    Thanks for your responses. My problem was obviously the not installing part. I will use the configuration file instead as I prefer things running straight from VS personally.

    Sorry I haven't replied sooner, been very busy and haven't had much chance to continue playing with the code.

    Cheers,

    Adam
     

    Users who are viewing this thread

    Top Bottom