Menu

Building EPGCollector from source code

Jeymo
2023-03-04
2023-03-05
  • Jeymo

    Jeymo - 2023-03-04

    Hi,
    I am trying to use the functionality of EPG Collector in a project of my own. I followed some of the steps described in another discussion but I am unsured of how to proceed. Post . I have disregarded the two directories, EPGCollectorGUI and the DVBLogicPlugin and have downloaded the SDK DirecShow from June 2004. I am unsure of how to proceed from here, my intention is to pass in commandline arguments into the application to obtain the EPG data but I am struggling to get the project to build. Does anyone have any ideas on how I can proceed with building the project?

     
  • Steve Bickell

    Steve Bickell - 2023-03-04

    You don't say what the problem is.

     
  • Jeymo

    Jeymo - 2023-03-04

    I am unsure with what steps to take so I can build the project in Visual Studio, I am new to the C# language but have experience in c an c++. I was hoping I could get directions in what I am trying to do.

     
  • Steve Bickell

    Steve Bickell - 2023-03-04

    Have you used VS before?

     
  • Jeymo

    Jeymo - 2023-03-04

    Yes I have used it to build another open source application but it was in c++, I guess its the language switch along with different names for things that is causing the issue for me.

     
  • Steve Bickell

    Steve Bickell - 2023-03-04

    To make it easier for you I have uploaded a zip of the entire development directory to the Files section here.

    It's called EPG Collector V4.3 Mirror.zip and you should be able to just unzip it and open the solution in VS.

    You will need VS 2022.

    You can exclude any projects you don't need (eg the GUI) once it compiles OK.

    If the changes you want to make are trivial it might be quicker for me to do them and to give you an updated version.

     
  • Jeymo

    Jeymo - 2023-03-05

    Thanks for the speedy reply. I have almost built the project but I encounter a path error in both the relase and debug build. I am unsure what is causing the error but I made the build output verbose to give some insight into the problem.

    For the release build:
    1>"C:\Users\Name\Desktop\EPG Collector V4.3 Mirror\EPGCollector 4.3\EPGCollector\EPGCollector.csproj" (Build;BuiltProjectOutputGroup;BuiltProjectOutputGroupDependencies;DebugSymbolsProjectOutputGroup;DebugSymbolsProjectOutputGroupDependencies;DocumentationProjectOutputGroup;DocumentationProjectOutputGroupDependencies;SatelliteDllsProjectOutputGroup;SatelliteDllsProjectOutputGroupDependencies;SGenFilesOutputGroup;SGenFilesOutputGroupDependencies target) (1) ->
    1>(PostBuildEvent target) ->
    1> C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5760,5): error MSB3073: The command "xcopy "C:\Users\Name\Desktop\EPG Collector V4.3 Mirror\EPGCollector 4.3\EPGCollector\bin\Release\EPGCollector.*" "C:\Users\Name\Desktop\EPG Collector V4.3 Mirror\EPGCollector 4.3\EPGCollectorGUI\bin\Release" /q /y /r
    1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5760,5): error MSB3073: " exited with code 2.

    And for the debug build:
    Exception thrown: 'System.IO.DirectoryNotFoundException' in mscorlib.dll
    The program '[28068] EPGCollector.exe' has exited with code 2 (0x2).

    I don't know if these issuses correlate with each other but I am unsure on how to resolve them.

     
  • Steve Bickell

    Steve Bickell - 2023-03-05

    The debug build looks like it compiles and starts running.

    Set a breakpoint on the start of Program.cs in the EPGCollector project and run the debug build..

    Then trace thru until you get to the NotFoundException..

     
  • Jeymo

    Jeymo - 2023-03-05

    Apologies I didn't expect using the application to be so straight forward. You have helped me immensely, thank you!!!

     
  • Steve Bickell

    Steve Bickell - 2023-03-05

    No problem.

    The release build might be failing because there is a post build event set up. Assuming you have removed the GUI project right click on the EPGCollector project and look at the Build Events tab. Remove any command lines you see there.

    Post again if you need any more assistance.

     
    👍
    1

Log in to post a comment.