Help compiling DVDx 2

Dotted line

Installing a compilation platform

  1. Install Microsoft Visual Studio 2005 Professional with standard defaults.
  2. Download (ISO) and install Microsoft Platform SDK for Windows Server 2003 R2.
  3. Download and install latest Microsoft DirectX SDK:
    • in VS2008, the Lib directory must be C:\Program Files\Microsoft DirectX SDK (Xxxxx 200x)\Lib\x86
  4. Download and install Windows Media SDK 9.5 in C:\WMSDK\
    • uUpdate the Visual C++ directories in the Projects and Solutions:
      C:\WMSDK\WMFSDK95\include
      C:\WMSDK\WMFSDK95\lib
  5. Install MASM32 from m32v82r.zip on C: (in c:\masm32)
  6. Install Intel C++ Compiler 9.1
  7. Integrate Intel Compiler into VS8:
    • in C:\Program Files\Intel\Compiler\VS Integration\C++\VS2005,
      run >integrate.bat "C:\Program Files\Microsoft Visual Studio 8\Common7\Tools"

Dotted line

Hack for WMSDK11

We recommend that you compile with WMSDK11 which provides Windows Media Video 9 Advanced Profile codec compliant with the published SMPTE VC-1 standard and Windows Media Audio 10 Professional codec quality improved at lower bit rates.

However, there are newer definitions in WMSDK11 for some types already declared in the Platform SDK R2.

Therefore you must hack the shobjidl.h file of the Platform SDK R2 to skip SHCOLSTATE, SHCOLUMNID and LPCSHCOLUMNID on __shtypes_h__ definition, this is required to compile ProfileObject.cpp successfully.

Dotted line

Build DVDx

  1. First, build the BuildNumber project in Release configuration.
  2. You may edit VersionNo.h to set your own version number
  3. Build mpeg_encode and all other projects (the Batch build is appropriate) in Release, NoOptim and RipperFree configurations.
    • the Debug and DebugP4 configurations will fail to link (from 2.7 release)
  4. Enjoy !
    • the NoOptim configuration compiles quickly so it's the one to use while coding, until we fix the DebugP4 linking error.