![]() |
POBBot R2b46b AMD64 binary (and AMD64 fixed source)
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. |
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
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 :) |
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Hello, ghost of evilspy:
Quote:
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, |
PODbot mm x86-64 patch to source code and cross-compile Makefile
1 Attachment(s)
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) |
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
'-Xlinker --add-stdcall-alias' is needed for LDFLAGS for mingw. Otherwise 'GiveFnptrsToDll' will be exported as 'GiveFnptrsToDll@8'.
|
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
Hello, ghost of evilspy:
Quote:
The above podbot_plugin_x86_64.zip already has the updated Makefile. Thank you, regards, |
Re: POBBot R2b46b AMD64 binary (and AMD64 fixed source)
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. :) |
All times are GMT +2. The time now is 14:15. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.