.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Releases, Installers, Docs & Coding
Releases, Installers, Docs & Coding Where the official development happens

Reply
 
Thread Tools
Re: How to compile binaries (dll, so) under windows
Old
  (#11)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: How to compile binaries (dll, so) under windows - 11-04-2011

I can't see on these screenshots metamod folder with metamod sources inside in Your main folder (botsunited). Another thing makefile from podbot folder expects hlsdk folder (not hlsdk-2.3-p3) so rename it to the right one.
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#12)
Mr_Red
Member
 
Status: Offline
Posts: 2
Join Date: May 2011
Default Re: How to compile binaries (dll, so) under windows - 13-05-2011

Hi all,

I'm trying to build the source for PodBOT-MM. I'm trying to make some mod-specific changes that will make the bots behave a little better in my Zombie Plague server.

I'm on Windows using Cygwin. I can produce a podbot_mm.dll file. However when I try to load it up in game I get this error message.

Code:
L 05/12/2011 - 23:48:29: [META] WARNING: dll: Failed query plugin '<podbot_mm.dll>'; Couldn't open file 'c:/program files (x86)/steam/steamapps/my_account/counter-strike/cstrike/addons/podbot/podbot_mm.dll': Invalid handle.
L 05/12/2011 - 23:48:29: [META] WARNING: dll: Skipping plugin '<podbot_mm.dll>'; couldn't query
L 05/12/2011 - 23:48:29: [META] WARNING: dll: Failed to reload plugin '<podbot_mm.dll>' after unloading
I noticed there are two ways to build the Windows DLL. The first way (using mingw32-make) fails for me. It says Permission denied on the object.win32 folder. The second way (using MSYS and just typing 'make') is what I used to build it.

Something else which may be of interest. In my server I'm using Metamod-P. Does this have any affect on loading up the DLL? I am using the source of plain Metamod 1.19 in my build-path, not Metamod-P.
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#13)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: How to compile binaries (dll, so) under windows - 13-05-2011

If You are using cygwin to get dll (windows binaries), but You are using it under windows - then the make file is layed and it may go the way like for linux (so the binary doesn't load correctly).
I mean this part:
Code:
ifdef ComSpec
    ifeq "$(HOST)" "cygwin"
        OS=LINUX
#        MCPU=-mcpu
        MCPU=-mtune
        PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
        CLEAN=clean_linux
    else
        OS=WIN32
        MCPU=-mtune
        PATH_WIN=/mingw/bin
        CLEAN=clean_win32
    endif
else
    ifdef COMSPEC
        ifeq "$(HOST)" "cygwin"
            OS=LINUX
#            MCPU=-mcpu
            MCPU=-mtune
            PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
            CLEAN=clean_linux
        else
            OS=WIN32
            MCPU=-mtune
            PATH_WIN=/mingw/bin
            CLEAN=clean_msys_w32
        endif
    else
        OS=LINUX
        PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
        CLEAN=clean_linux
#        MCPU=-mcpu
        MCPU=-mtune
    endif
endif
You need to get it working with mingw. The other part for cygwin was prepared to let linux users make windows dll.

Metamod 19p32 doesn't make any difference for loading the dll. If You are compiling sources of podbot mm against the standard metamod - that is correct.
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#14)
Mr_Red
Member
 
Status: Offline
Posts: 2
Join Date: May 2011
Default Re: How to compile binaries (dll, so) under windows - 14-05-2011

Thanks for pointing this out KWO. I changed this area of the makefile to look for a "type" variable which I will pass in. If I'm building the DLL, I leave it blank. If I want to build a .SO for Linux, I say make type=so. I can run the DLL on my local listen server, and the .SO loads and runs fine on my dedicated Linux server.

Code:
ifeq "$(type)" "so"
        OS=LINUX
        MCPU=-mcpu
        MCPU=-mtune
        PATH_WIN=/usr/local/cross-tools/i386-mingw32msvc/bin
        CLEAN=clean_linux
else
        OS=WIN32
        MCPU=-mtune
        PATH_WIN=/mingw/bin
        CLEAN=clean_win32
endif
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#15)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: How to compile binaries (dll, so) under windows - 16-05-2011

Quote:
Originally Posted by Mr_Red View Post
I'm trying to make some mod-specific changes that will make the bots behave a little better in my Zombie Plague server.
When You find something to make them working better at Zombie Mod servers, You can post some parts of Your code in a separate topic dedicated "Zombie Mods compatibility" (You need to create such topic).
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#16)
eXeXe
Member
 
Status: Offline
Posts: 1
Join Date: Oct 2012
Depressed Re: How to compile binaries (dll, so) under windows - 08-10-2012

Hello!
I try compile with MSYS and get lots of "warnings" in the end.



Dll is created (432kb) but does not boot. What am I doing wrong? Still I could not find and install "cygwin-gcc-linux.tar.bz2" might be in this case? And if possible, put please again "vcproj". Thank you!
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#17)
buktor
Member
 
buktor's Avatar
 
Status: Offline
Posts: 16
Join Date: Aug 2012
Location: Zhitomir, Ukraine
Default Re: How to compile binaries (dll, so) under windows - 30-10-2012

is it possible to compile these sources using Visual C + + 2008, if possible, how?
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#18)
buktor
Member
 
buktor's Avatar
 
Status: Offline
Posts: 16
Join Date: Aug 2012
Location: Zhitomir, Ukraine
Default Re: How to compile binaries (dll, so) under windows - 31-10-2012

Thank you all, the issue is closed, he disassembled

Sorry for being too lazy to edit it just click "Edit" was not!

And by the way, who should give the link to the project file to compile the bots in the VC + + 2008, please do not take as spam, just a link I gave KWO is already broken, here you go.
Download link:
podbot_mm.vcproj

Installation: simply move the project file in the folder "podbot."

Last edited by buktor; 31-10-2012 at 22:09..
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#19)
adamhingoro
Member
 
Status: Offline
Posts: 1
Join Date: Jun 2013
Default Re: How to compile binaries (dll, so) under windows - 12-06-2013


I am Stuck here
  
Reply With Quote
Re: How to compile binaries (dll, so) under windows
Old
  (#20)
[NvT]_KaszpiR_
Member
 
[NvT]_KaszpiR_'s Avatar
 
Status: Offline
Posts: 322
Join Date: Apr 2004
Default Re: How to compile binaries (dll, so) under windows - 25-06-2013

Try running this command from cygwin window (bash).
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com