.:: 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
POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Old
  (#1)
ghost of evilspy
Moderator
 
ghost of evilspy's Avatar
 
Status: Offline
Posts: 140
Join Date: Mar 2005
Location: Finland
Default POBBot R2b46b AMD64 binary (and AMD64 fixed source) - 26-03-2005

I was requested to make amd64 binary of podbot at http://forums.unitedadmins.com/index...howtopic=40666.

here: http://koti.mbnet.fi/axh/files/64bit...t_mm_amd64.zip

source: http://koti.mbnet.fi/axh/files/64bit...srcB_amd64.zip

Changes needed for AMD64:
PATH, PATH5 and PATH6 in waypoint.h have pointer 'next' as last member. Size of pointer is 8 bytes on AMD64 and 4 bytes on x86. This caused WaypointLoad() and WaypointSave() handle waypoint-files incorrectly on AMD64. Fix was to simply use SIZEOF_PATH* macros instead sizeof(PATH*) in those two functions. See SIZEOF_PATH in waypoint.h of fixed source.
  
Reply With Quote
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source) - 26-03-2005

Thank you a lot!
We've been asked to make a 64bit build too and someone here tried but it kept crashing and I was unable to help since i don't have a 64bit processor nor any knowledge of it.
http://forums.bots-united.com/showthread.php?t=3594
Thank you for finding out why it kept crashing
  
Reply With Quote
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Old
  (#3)
Lazarus Long
Member
 
Lazarus Long's Avatar
 
Status: Offline
Posts: 27
Join Date: Feb 2005
Default Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source) - 27-03-2005

Hello, ghost of evilspy:

Quote:
Originally Posted by ghost of evilspy
Changes needed for AMD64:
PATH, PATH5 and PATH6 in waypoint.h have pointer 'next' as last member. Size of pointer is 8 bytes on AMD64 and 4 bytes on x86. This caused WaypointLoad() and WaypointSave() handle waypoint-files incorrectly on AMD64. Fix was to simply use SIZEOF_PATH* macros instead sizeof(PATH*) in those two functions. See SIZEOF_PATH in waypoint.h of fixed source.
Thank you very much for this. I had pinpoint it down to waypoint.cpp but I haven't the skill to fix it so I just reported it back in hope someone could.

I must confess I forgot you, since you have ported so many MetaMod plugins to x86_64, some of them on my request, it would be logical to ask you for this one also, but as I said I forgot you, shame on me.

I'll be testing it after the weekend, and post the results as soon as possible.

Once again thank you very much ghost of evilspy.

Best regards,

Last edited by Lazarus Long; 27-03-2005 at 14:02.. Reason: Spell checking
  
Reply With Quote
PODbot mm x86-64 patch to source code and cross-compile Makefile
Old
  (#4)
Lazarus Long
Member
 
Lazarus Long's Avatar
 
Status: Offline
Posts: 27
Join Date: Feb 2005
Default PODbot mm x86-64 patch to source code and cross-compile Makefile - 27-03-2005

Hello, everybody:

For those who want to include ghost of evilspy changes to the source code I'm attaching a patch with them. There are two patch files podbotsrcB_x86_64.patch to run against the original source code files (with CR/LF DOS style EOL) and podbot_plugin.2005-03-12.x86_64.patch in case you converted the original *.cpp and *.h with dos2unix to compile under Linux. Please only apply the one that matches your source code or it will break compile.

I'm also attaching a full cross-compile Makefile (my own small contribution, if anyone is interested in it). It will autodetect in which environment it is building and act accordingly, one can also force the target to be built by calling make with either windows, i386 or amd64 or one can build for all targets by calling make with all. This Makefile is based on the original makefile with changes taken from Building the hlds_l Linux .so article by Vino at Wavelength (acknowledgement goes to [NvT]_KaszpiR_ for the pointer). It was developed with gcc-2.95 for x86, gcc-3.4 for x86_64 and mingw32 for windows on a Debian testing (sarge) distribution.

Best regards,

EDIT: Updated the Makefile in podbot_plugin_x86_64.zip (by recommendation of ghost of evilspy)
Attached Files
File Type: zip podbot_plugin_x86_64.zip (2.6 KB, 808 views)

Last edited by Lazarus Long; 27-03-2005 at 20:50.. Reason: Updated the Makefile in podbot_plugin_x86_64.zip
  
Reply With Quote
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Old
  (#5)
ghost of evilspy
Moderator
 
ghost of evilspy's Avatar
 
Status: Offline
Posts: 140
Join Date: Mar 2005
Location: Finland
Default Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source) - 27-03-2005

'-Xlinker --add-stdcall-alias' is needed for LDFLAGS for mingw. Otherwise 'GiveFnptrsToDll' will be exported as 'GiveFnptrsToDll@8'.
  
Reply With Quote
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Old
  (#6)
Lazarus Long
Member
 
Lazarus Long's Avatar
 
Status: Offline
Posts: 27
Join Date: Feb 2005
Default Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source) - 27-03-2005

Hello, ghost of evilspy:

Quote:
Originally Posted by ghost of evilspy
'-Xlinker --add-stdcall-alias' is needed for LDFLAGS for mingw. Otherwise 'GiveFnptrsToDll' will be exported as 'GiveFnptrsToDll@8'.
It wasn't giving me any error at runtime, but since it might be due to my building environment, I went ahead and added it.

The above podbot_plugin_x86_64.zip already has the updated Makefile.

Thank you, regards,

Last edited by Lazarus Long; 27-03-2005 at 20:51.. Reason: Bad link (corrected)
  
Reply With Quote
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Old
  (#7)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source) - 27-03-2005

To knowledge of the people they don't know who is ghost of evilspy - it's Hullu - the same guy improving / fixing metamod.
Welcome to BU, Hullu.
  
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