Need help building latest svn (if you don't mind).

Discussion in 'My TVSeries' started by Wo0zy, January 11, 2012.

  1. Wo0zy
    • Premium Supporter

    Wo0zy Retired Team Member

    Joined:
    April 30, 2008
    Messages:
    394
    Likes Received:
    128
    Gender:
    Male
    Ratings:
    +148 / 0
    Home Country:
    United Kingdom United Kingdom
    Hi Itfearme,

    At the risk of making myself look like an idiot (again :)) I wonder if you could help me.

    I'm having a problem when trying to build MP-TVSeries from the source (latest SVN).

    I have read the wiki instructions but assume these are slightly oudated now as the SVN repo now contains a prebuilt solution file and a folder called "external" which seems to contain all the dll's needed to satisfy the References (I have checked this).

    The solution opens with no problems reported and contains two projects (MP-TVSeries and FollowitApi). When I attempt to build the solution (either Release or Debug) FollowitApi builds successfully but MP-TVSeries fails with a single error as follows;-

    Error 1 Could not load file or assembly 'file:///C:/SVN/MPTVSeries/External/Common.Utils.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 656, position 5. C:\SVN\MPTVSeries\MP-TVSeries\Configuration\GUIConfiguration.resx 656 5 MP-TVSeries

    When I check GUIConfiguration.resx that line reads "</data>" :confused:

    I've attached a screencap from Visual Studio for reference.

    Sorry if this is a stupid question. Any help would be appreciated. If you'd rather keep this type of question out of this thread please feel free to pm me and I'll edit this post accordingly.



    :D

    Mick.
     

    Attached Files:

  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,192
    Likes Received:
    1,310
    Ratings:
    +1,691 / 2
    That's the same error I had, it relates to forced 32-bit DLLs that won't load nice on 64-bit OS.

    You can use the Microsoft tool 'CorFlags.exe' for this to remove the forced 32-bit flag, so that it can be loaded.

    The command is:

    corflags /32bit- "C:\SVN\MPTVSeries\External\Common.Utils.dll"​

    And you'll have to do this for a few more as well (4 or 5 if memory serves me), but it is a one time ordeal. Corflags is most likely on your system already, but if you can't locate it, I can attach it to a reply as it is only 60kB.
     
    • Like Like x 2
  4. Wo0zy
    • Premium Supporter

    Wo0zy Retired Team Member

    Joined:
    April 30, 2008
    Messages:
    394
    Likes Received:
    128
    Gender:
    Male
    Ratings:
    +148 / 0
    Home Country:
    United Kingdom United Kingdom
    Thank you RoChess! Much appreciated!

    Will give it a try later and report results but it sounds like you've nailed it.

    Wonder why I'm able to build MP on this system? Actually this is a fresh install/ IDE and I've only used the msbuild method so far. You could have saved me a ton of pain m8!

    :D

    Mick
     
  5. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,192
    Likes Received:
    1,310
    Ratings:
    +1,691 / 2
    Yeah, I wasn't as fortunate myself :)

    It took many google searches and bugging developers on IRC to figure things out, but glad it helps another. Ideally the DLLs that are on the SVN location get updated with a version that has the forced 32-bit flag already removed, but at least it is an easy manual method to fix.

    Well as long as you know it :cool:
     
    • Like Like x 1
  6. Wo0zy
    • Premium Supporter

    Wo0zy Retired Team Member

    Joined:
    April 30, 2008
    Messages:
    394
    Likes Received:
    128
    Gender:
    Male
    Ratings:
    +148 / 0
    Home Country:
    United Kingdom United Kingdom
    Hi RoChess,

    Just posting to say corflags worked and I am now able to build successfully.

    For anyone else reading this I had to run the corflags /32bit- "path\filename.dll" command on the following files;-

    Common.utils.dll
    Core.dll
    Databases.dll
    Dialogs.dll

    After doing this the build still failed with the same error refering to FollwitApi.dll but this was because the build properties for the project was set to "x86". Once I changed this to "Any CPU" the build succeeded.

    Once again, thanks for helping me out here m8! Very much appreciated sir.

    All the best,

    Mick.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!