Compile .cpp code under Vista (1 Viewer)

chemelli

Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    I would like to make some fix to the filters code and to dShowHelper.dll but I'm not able to compile any of those under Vista. I have in place:

    Visual Studio 2005 Professional Edition + SP1
    DirectX SDK November 2007 ( dxsdk_november2007.exe )
    Vista SDK November 2007 ( Setup_Vista_.NET3_SDK_November2007.exe )

    I receive a lot of errors compiling TsWriter.ax and dShowHelper.dll. I'm not able to link TsReader.ax successfully.

    Can anyone help ? :D

    Simone
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Make sure that you have followed all the instructions available in the wiki. Also MS might have changed some include dependencies etc. between the different SDK releases so it would be good to use the same versions as mentioned in the wiki (unles you feel brave enough to try to solve the issues that MS itself has generated between different SDK releases :D )

    http://wiki.team-mediaportal.com/Me...head-1886ef7825585c84a5ad9214f0e4a37d8a8a95d5
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Make sure that you have followed all the instructions available in the wiki. Also MS might have changed some include dependencies etc. between the different SDK releases so it would be good to use the same versions as mentioned in the wiki (unles you feel brave enough to try to solve the issues that MS itself has generated between different SDK releases :D )

    http://wiki.team-mediaportal.com/Me...head-1886ef7825585c84a5ad9214f0e4a37d8a8a95d5

    tourettes,

    you know I'm not so good in programming cpp and I know nearly nothing about DirectShow, but I want to give it a try to solve some old issues with MP and TV3.

    I cannot use the version mentioned in the wiki as they don't even install on Vista. Once I'm forced to go to the new Windows SDK I'm also forced to go to the new DirectX SDK, and here the issues...

    Simone

    for example "dxtrans.h" in my setup is only present here:

    C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\Smartphone2003\Include
    C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\PocketPC2003\Include

    so dShowHelper.dll won't compile !

    Simone
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Unfortunately I don't have Vista installed so I cannot help with the Vista specific compile issues :( maybe someone else could help?
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    chemelli, can't you install "Microsoft Platform SDK for Windows Server 2003 R2" as a additional package to another folder on your comp?
    I have it here & are using Vista x64 (btw, seems like all filters compile here after following the wiki)

    Regards
    Roy
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    Then I downloaded what suggested but using DirectX SDK from November, not from August.

    If I put in place only the include specified in the wiki, compiling Tsreader.sln I have 17 errors stating that "intsafe.h" is not found.
    If I put also C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\crt ( path where intsafe.h is located ) I receive more than 800 error...

    How did you solve this ronilse ?

    Simone
     

    ronilse

    Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    Hmmm, i didn't add anything extra @ all, followed wiki & it worked(except TSFilesource which i had to use xp pro)

    Regards
    Roy
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    50
    Milano, Italy
    Home Country
    Italy Italy
    and finally I got it !!!

    1>TsReader - 0 error(s), 95 warning(s)
    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

    I was missing a variable MSSSDK that is used somewhere, I pointed it to the "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\" and now I have my TsReader.ax ;-)

    Thanks for your patience...:D ...

    Simone

    BTW, I modified the wiki page to point out that you need a workarround if using UAC under Vista:oops:

    just for your reference:

    dxtrans.h missing for dShowHelper.dll @ http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2374181&SiteID=1

    and I think the same apply to evr.h also missing in November2007 SDK update

    Simone
     

    Users who are viewing this thread

    Top Bottom