Loading ...
Sorry, an error occurred while loading the content.

Re: detailed description of trying to get metamod compiling on windoze

Expand Messages
  • refux@yahoo.com
    Thanks for the pointer, I ended up changing the LINK_WIN compile command to have a: --driver-name g++ And that did the trick. For the sake of completeness I d
    Message 1 of 7 , Aug 2, 2004
    View Source
    • 0 Attachment
      Thanks for the pointer,

      I ended up changing the LINK_WIN compile command to have a:
      --driver-name g++

      And that did the trick.

      For the sake of completeness I'd like to note I also had to comment
      out the Linux check on the generation of the Rules.depend, since
      windows wants it too :)


      Now the make breaks on trying to compile the trace plugin:
      engine_api_post.cpp:1040: invalid conversion from `void (*)(FILE*,
      char*, ...)' to `void (*)(void*, char*, ...)'

      I assume this is because the hl_sdk_v23_source.exe I downloaded is
      outta sync with what the trace plugin expects.

      I'll look into it later, I just wanted to give an update and thankyou
      for the help!



      --- In metamod@yahoogroups.com, HJ <InzaneKaoz@y...> wrote:
      > I think you need to add this to your linking step:
      > -lstdc++
      >
      > Those linking errors are basic C++ constructs/keywords; linking with
      > the C++ library, and perhaps specifying the compiler as g++ instead
      > of gcc might be the answer.
      >
      > I apologize for my tentative answer; it's been a while since I've
      > done this and I don't have access to my development machine.
      >
      > ~HJ
      >
      > --- refux@y... wrote:
      >
      > > STEPS:
      > >
      > > GOT THE PATCHED SDK:
      > > hl_sdk_v23_source.exe
      > > (http://metamod.sourceforge.net/files/sdk/hl_sdk_v23_source.exe)
      > >
      > > METAMOD SOURCE:
      > > v1.17.1 Source tar
      > > (http://prdownloads.sourceforge.net/metamod/metamo
      > > d-1.17.1.tar.gz?download)
      > >
      > > MSYS
      > > MSYS-1.0.10.exe
      > >
      > (http://prdownloads.sourceforge.net/mingw/MSYS-1.0.10.exe?download)
      > >
      > > MinGW
      > > MinGW-3.0.0-1.exe
      > > (http://prdownloads.sf.net/mingw/MinGW-3.0.0-1.exe?download)
      > >
      > > EDITED:
      > > C:\metamod-1.17.1\metamod\Makefile
      > >
      > > changed the paths:
      > > PATH_WIN=c:/MinGW/bin
      > > SDKTOP=c:/hlsdk2.3
      > >
      > > changed the compiler:
      > > CC=gcc
      > >
      > > ran gcc, everying seeme to compile fine, here where I get the
      > > error:
      > > c:\MinGW\bin\dllwrap.exe: no export definition file provided.
      > > Creating one, but that may not be what you want
      > > debug.win32.steam/metamod.o(.text+0x562): In function
      > > `Z15metamod_startupv':
      > > c:/metamod-1.17.1/metamod/metamod.cpp:91: undefined reference to
      > > `__gxx_personal
      > > ity_sj0'
      > > debug.win32.steam/metamod.o(.text+0x6ea):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 13: undefined reference to `std::set_new_handler(void (*)())'
      > > debug.win32.steam/metamod.o(.text+0xa62):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 75: undefined reference to `operator new(unsigned)'
      > > debug.win32.steam/metamod.o(.text+0xac4):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 75: undefined reference to `operator delete(void*)'
      > > debug.win32.steam/metamod.o(.text+0xb02):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 75: undefined reference to `operator delete(void*)'
      > > debug.win32.steam/metamod.o(.text+0xb19):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 76: undefined reference to `operator new(unsigned)'
      > > debug.win32.steam/metamod.o(.text+0xb7b):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 76: undefined reference to `operator delete(void*)'
      > > debug.win32.steam/metamod.o(.text+0xbb9):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 76: undefined reference to `operator delete(void*)'
      > > debug.win32.steam/metamod.o(.text+0xbd3):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 79: undefined reference to `operator new(unsigned)'
      > > debug.win32.steam/metamod.o(.text+0xc35):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 79: undefined reference to `operator delete(void*)'
      > > debug.win32.steam/metamod.o(.text+0xc73):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:1
      > > 79: undefined reference to `operator delete(void*)'
      > > debug.win32.steam/metamod.o(.text+0xd81):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:2
      > > 29: undefined reference to `operator new(unsigned)'
      > > debug.win32.steam/metamod.o(.text+0xe2b):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:2
      > > 29: undefined reference to `operator delete(void*)'
      > > debug.win32.steam/metamod.o(.text+0xe69):c:/metamo
      > > d-1.17.1/metamod/metamod.cpp:2
      > > 29: undefined reference to `operator delete(void*)'
      > > c:\MinGW\bin\dllwrap.exe: c:\MinGW\bin\gcc exited with status 1
      > > make[1]: *** [debug.win32.steam/metamod.dll] Error 1
      > > make[1]: Leaving directory `/c/metamod-1.17.1/metamod'
      > > make: *** [metamod] Error 2
      > >
      > >
      > >
      > > ------------------------ Yahoo! Groups Sponsor
      > > --------------------~-->
      > > Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
      > > Now with Pop-Up Blocker. Get it for free!
      > > http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/hWFolB/TM
      > >
      > --------------------------------------------------------------------~->
      > >
      > >
      > > To unsubscribe, send an email to:
      > > metamod-unsubscribe@yahoogroups.com
      > >
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      > >
      > >
    • Florian Zschocke
      ... The SDK you downloaded is not patched, it is the original SDK as released from Valve. To update it to the latest engine interface version you need this
      Message 2 of 7 , Aug 2, 2004
      View Source
      • 0 Attachment
        refux@... wrote:
        >
        > Now the make breaks on trying to compile the trace plugin:
        > engine_api_post.cpp:1040: invalid conversion from `void (*)(FILE*,
        > char*, ...)' to `void (*)(void*, char*, ...)'
        >
        > I assume this is because the hl_sdk_v23_source.exe I downloaded is
        > outta sync with what the trace plugin expects.

        The SDK you downloaded is not patched, it is the original SDK as
        released from Valve. To update it to the latest engine interface version
        you need this file, too:
        http://metamod.sourceforge.net/files/sdk/hl_sdk_v23_source-update.zip

        Alternatively, I recommend to steer clear of the original SDK and use
        the cleaned up one with patches already applied, if you don't need the
        full SDK:
        http://metamod.sourceforge.net/files/sdk/hlsdk-2.3-p1.zip

        Regards,
        Florian
      • refux@yahoo.com
        Well I guess I must of already had the patched source since I still get the same error: c:/MinGW/bin/gcc -ggdb3 -Wall -Wno-unknown-pragmas
        Message 3 of 7 , Aug 4, 2004
        View Source
        • 0 Attachment
          Well I guess I must of already had the patched source since I still
          get the same error:
          c:/MinGW/bin/gcc -ggdb3 -Wall -Wno-unknown-pragmas
          -DOPT_TYPE=\"debugging\" -Wno-unused -fno-rtti -I. -I../metamod
          -Ic:/hlsdk-2.3-p1/multiplayer/engine
          -Ic:/hlsdk-2.3-p1/multiplayer/common
          -Ic:/hlsdk-2.3-p1/multiplayer/pm_shared
          -Ic:/hlsdk-2.3-p1/multiplayer/dlls
          -Ic:/hlsdk-2.3-p1/multiplayer -o debug.win32.steam/engine_api_post.o
          -c engine_api_post.cpp
          engine_api_post.cpp:1040: invalid conversion from `void (*)(FILE*,
          char*, ...)' to `void (*)(void*, char*, ...)'
          make[1]: *** [debug.win32.steam/engine_api_post.o] Error 1
          make[1]: Leaving directory `/c/metamod-1.17.1/trace_plugin'
          make: *** [trace_plugin] Error 2

          I also tried compiling with the newest version of metamod from CVS,
          same error.

          I know I'm doing something really dumb, I'm just not too sure what it is!
        • Florian Zschocke
          ... Please check out the branch mmwork from CVS. I would have to check but it could be that the code for the trace plugin has only been adjusted recently.
          Message 4 of 7 , Aug 5, 2004
          View Source
          • 0 Attachment
            refux@... wrote:

            > I also tried compiling with the newest version of metamod from CVS,
            > same error.

            Please check out the branch "mmwork" from CVS. I would have to
            check but it could be that the code for the trace plugin has only
            been adjusted recently. Note that you should normally *not* use
            that branch as it is the working branch for the developers and is
            hence not guaranteed to even compile! To checkout that branch, go
            into your working copy and use: cvs up -r mmwork

            Florian
          • refux@yahoo.com
            Finally got around to compiling metamod again. Downloaded metamod-1.17.2, applied the changes I ve mentioned in previous emails in this thread, and it
            Message 5 of 7 , Oct 4, 2004
            View Source
            • 0 Attachment
              Finally got around to compiling metamod again.
              Downloaded metamod-1.17.2, applied the changes I've mentioned in
              previous emails in this thread, and it compiled!
              I haven't actually tried using the compiled metamod.dll yet, when I
              have more time :)
            Your message has been successfully submitted and would be delivered to recipients shortly.