[Rejected] Platform independent source code for server (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    If you have questions, I will try to help where I can ;)
     

    raffe

    Portal Pro
    March 28, 2008
    261
    82
    OK, I have installed alot of stuff and have downloaded the source for MP2. Could you just give me some hints on how to begin. Say I want to fix the first one from the report:

    AssemblyVersionMissingNot ImplementedTodoP/Invoke
    HttpServer.dll 1.0.0.0 0 0 1 0

    Calling Method Method with [MonoTodo] Reason
    string Cb (string, string, Object[]) bool Type.op_Equality (Type, Type) Implement it properly once 4.0 impl details are known.

    How do I find where to fix this? I mean I guess I should go to \MediaPortal-2\MediaPortal\Source\Core\HttpServer\ but then I'm unsure.
     
    Last edited:

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    It is pretty easy.
    you know the project right? -> HttpServer
    How to find teh function?
    - open the MP2-Server.sln
    - go to the HttpServer ins the solution explorer
    - open any file from this solution
    - press strg+f
    - select by "look in": "current project"
    - search for: "string Cb(" (note that in our coding convention there is no space between the function name and the braked ;)

    If you do this you will get to: ObjectForm.cs Line 167 ;)

    If you want to have a good reading:
    http://www.mono-project.com/Guide:_Porting_Winforms_Applications
     

    raffe

    Portal Pro
    March 28, 2008
    261
    82
    Thanks! I will try that!

    In https://forum.team-mediaportal.com/...river-kit-wdk-to-install.120257/#post-1009757 tourettes said:
    For compiling MP2 C# code the MSBUILD is enough (see batch files under BUILD). Only if you want to compile our native components (only evrpresenter.dll), you need SDKs installed. You can use the contained compiled version.

    If the target is to port MP2 to non-MS platforms then just making the C# components Mono compatible wont be enough.

    @raffe, if you want to run MP2 on non-MS OS then prepare to make some bigger changes as well (Skin Engine uses DirectX, players are depending on DirectShow, BASS is used from music playback).
    Does that mean the player part and not the server part?
     
    Last edited:

    raffe

    Portal Pro
    March 28, 2008
    261
    82
    It is pretty easy.
    you know the project right? -> HttpServer
    How to find teh function?
    - open the MP2-Server.sln
    - go to the HttpServer ins the solution explorer
    - open any file from this solution
    - press strg+f
    - select by "look in": "current project"
    - search for: "string Cb(" (note that in our coding convention there is no space between the function name and the braked ;)

    If you do this you will get to: ObjectForm.cs Line 167 ;)

    If you want to have a good reading:
    http://www.mono-project.com/Guide:_Porting_Winforms_Applications
    It worked, just as you said, it's on line 167 in ObjectForm :)

    But, C# says this a lot when I open MP2-Server.sln, will that be a problem?:

    reFVLqw.jpg

    And the Output from Solution say "Some of the properties associated with the solution could not be read."
     
    Last edited:

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Nope, that's just because you're using the express edition of VS.
    It doesn't hurt at all, just ignore it ;)
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    So good luck :) if you have any questions, I will try to help you ;)
     

    raffe

    Portal Pro
    March 28, 2008
    261
    82
    Hmm... Many DLLs, like
    Common.Utils.dll
    use a lot of native Windows DLLs. That may be over my head to fix :(
     

    Users who are viewing this thread

    Top Bottom