Announcement

Collapse
No announcement yet.

Help: Compiling CTP2 against DXSDK 9.0 only

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    It works!

    And now I do the dance of joy
    ·Circuit·Boi·wannabe·
    "Evil reptilian kitten-eater from another planet."
    Call to Power 2 Source Code Project 2005.06.28 Apolyton Edition

    Comment


    • #17
      When I try to compile against DirectX 9.0b I get these errors:

      Code:
      --------------------Konfiguration: ctp2 - Win32 Debug--------------------
      Linker-Vorgang läuft...
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IDvdGraphBuilder bereits in strmbasd.lib(strmiids_guid352.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IDvdInfo bereits in strmbasd.lib(strmiids_guid351.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IDvdControl bereits in strmbasd.lib(strmiids_guid350.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IGraphBuilder bereits in strmbasd.lib(strmiids_guid309.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IBaseFilter bereits in strmbasd.lib(strmiids_guid289.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IMediaEventEx bereits in strmbasd.lib(strmiids_guid271.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IMediaControl bereits in strmbasd.lib(strmiids_guid269.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _IID_IMixerPinConfig bereits in strmbasd.lib(strmiids_guid180.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _FORMAT_WaveFormatEx bereits in strmbasd.lib(strmiids_guid162.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _FORMAT_VideoInfo bereits in strmbasd.lib(strmiids_guid160.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _CLSID_DvdGraphBuilder bereits in strmbasd.lib(strmiids_guid157.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _CLSID_OverlayMixer bereits in strmbasd.lib(strmiids_guid134.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _CLSID_FilterGraph bereits in strmbasd.lib(strmiids_guid90.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_MPEG1Packet bereits in strmbasd.lib(strmiids_guid38.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_Overlay bereits in strmbasd.lib(strmiids_guid37.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_RGB32 bereits in strmbasd.lib(strmiids_guid36.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_RGB24 bereits in strmbasd.lib(strmiids_guid35.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_RGB555 bereits in strmbasd.lib(strmiids_guid34.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_RGB565 bereits in strmbasd.lib(strmiids_guid33.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_RGB8 bereits in strmbasd.lib(strmiids_guid32.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_RGB4 bereits in strmbasd.lib(strmiids_guid31.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIASUBTYPE_RGB1 bereits in strmbasd.lib(strmiids_guid30.obj) definiert
      amstrmid.lib(strmiids.obj) : error LNK2005: _MEDIATYPE_Audio bereits in strmbasd.lib(strmiids_guid1.obj) definiert
      CivCTP_dbg.exe : fatal error LNK1169: Ein oder mehrere mehrfach definierte Symbole gefunden
      Fehler beim Ausführen von link.exe.
      
      CivCTP_dbg.exe - 24 Fehler, 0 Warnung(en)
      Any ideas except removing strmbasd.lib or amstrmid.lib?

      -Martin
      Civ2 military advisor: "No complaints, Sir!"

      Comment


      • #18
        Originally posted by Martin Gühmann
        Any ideas except removing strmbasd.lib or amstrmid.lib?

        -Martin
        No. I removed strmbasd.lib and everything has worked fine.
        Caution! Under no circumstances confuse the mesh with the interleave operator, except under confusing circumstances!
        -Intercal reference manual

        People often remark of me, "You say sorry far to much!". To which my common-sense reply is "I apologise".

        Comment


        • #19
          Originally posted by tombom
          No. I removed strmbasd.lib and everything has worked fine.
          That doesn't work for Win32 Debug and VC++ 6.0.

          And actual I have something in mind that works for all, whether they use DirectX 7.0 or 9.0, whether they use VC++ 6 or VC++ 7.

          -Martin
          Civ2 military advisor: "No complaints, Sir!"

          Comment


          • #20
            Well I was able to compile a debug version, the only functional change I see now in civctp.dsp is line 93:

            # SUBTRACT LINK32 /pdb:none

            instead of

            # SUBTRACT LINK32 /verbose /profile

            One thing I have to note is that the game seems to run faster with DirectX 9.0b.

            -Martin
            Civ2 military advisor: "No complaints, Sir!"

            Comment


            • #21
              Well obviously I need to save the civctp.dsp first, before I find a change. Obviously I swapped the link order of strmbasd.lib or amstrmid.lib. So it now links amstrmid.lib first and then strmbasd.lib.

              -Martin
              Civ2 military advisor: "No complaints, Sir!"

              Comment


              • #22
                You know, an easier way than moving all the directories would have been shortening the directory name to 8 characters - c:\Program Files\ would become c:\progra~1\ and so on. Of course, if you have multiple directories starting with Progra- then you'd have to change the numbers... but that's generally not the case.

                In the references, I mean - not actually renaming the directories. First six non-space characters, then the ~1 ending.

                Comment

                Working...
                X