Menu

GSSF project in samples does not compile

ddeclue
2009-08-12
2012-10-29
  • ddeclue

    ddeclue - 2009-08-12

    I am using Windows XP Pro Service Pack 3

    Visual Studio 2005 8.0.50727.762 (SP.050727-7600)

    .NET Framework version 2.0.50727 SP2

    I get multiple errors in BuildGraph.cs for mismatched parameters for lines such as:

    hr = ((IMediaEventSink)m_FilterGraph).Notify(EventCode.UserAbort, IntPtr.Zero, IntPtr.Zero);

    I am also told that setup.cpp cannot find streams.h.

    What is going on?

    I need to be able to build a C# source filter that will accept data from a TCP socket that in turn is being fed remotely by a SampleGrabber Filter on the other side of the connection which is grabbing compressed video data.

    Overall the goal is to write a videoconferencing application that uses DirectShow.net and C#

     
    • ddeclue

      ddeclue - 2009-08-13

      FYI: You are correct that I need to build the BaseClasses sample in the Windows SDK first but there are numerous issues in getting THAT to build:

      1) There are a number of issues in getting the include directories and the lib directories correct. Got to get the librarian settings correct for static libraries. Make sure your base classes include and lib directories have highest priority or it will not find them or will use the wrong file.

      2) The GSSF package uses UNICODE not MBCS so please be sure to select that option when building the BaseClasses sample or it won't link properly.

      3) The GSSF package language option: (/Zc:wchar_t-) needs to be set to no and the same setting needs to be set in the BaseClasses sample (by default it is set to yes). Until you do this it won't link properly.

      Once you do these things and build the base classes you can then link it to the GSSF C# project as you are supposed to be able to do.

       
    • ddeclue

      ddeclue - 2009-08-13

      There really is not a lot of information on these DirectShow projects so I would really ask people to PLEASE follow up and post any solutions they come across to the problems they come across because it is almost impossible to figure this stuff out on your own.

       
    • snarfle

      snarfle - 2009-08-12

      In order to build a filter, you will need the Platform SDK from Microsoft. From the readme:


      • Building the filter: The source to the filter is included. However, you will need to have the base class libraries. MS ships the code to the libraries, but does not include the actual LIB files, so you need to build them first. Then update this project to point to them. A pre-built release version of the filter is included (GSSF.ax). Make sure you run "RegSvr32 GSSF.ax" before you use it.

      To re-emphasize, a pre-built version of the filter is included, so you don't have to build the filter if you don't want to.

      As for the error on Notify, it sounds like an old version of the library mixed with the new version of the sample.

       
    • ddeclue

      ddeclue - 2009-08-13

      I do have the Platform SDK and I will look into building the .lib files as you describe. I can't use the GSSF.ax filter as is becaus I need to modify it to do stuff specific to my application.

       

Log in to post a comment.