Page 1 of 2

Ivanhoe 57

Posted: Sun Jun 20, 2010 6:01 pm
by roadrunner
57 version AS IS (x64 pgo) http://www.megaupload.com/?d=MRIMR7QQ

From bankuss

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 6:03 pm
by DaveD
roadrunner wrote:57 version AS IS (x64 pgo) http://www.megaupload.com/?d=MRIMR7QQ

From bankuss
Is there a 32-bit version?

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 6:05 pm
by royb
DaveD wrote:
roadrunner wrote:57 version AS IS (x64 pgo) http://www.megaupload.com/?d=MRIMR7QQ

From bankuss
Is there a 32-bit version?
How about a 32/64 bit Linux executable?

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 6:23 pm
by TheKnilch
How about, downloading the source files, typing MAKE and having an executable?

It's far more easy.

TK

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 6:25 pm
by xshat
TheKnilch wrote:How about, downloading the source files, typing MAKE and having an executable?

It's far more easy.

TK
I installed Cygwin, GCC + Make packages and I still get about 50 errors when I try to compile using MAKE command. I even removed the 64 bit define and other 64 bit stuff and it still didn't work. So, I can't even get the linux exe to compile. If anyone can post the 32 bit exe I think you can just throw in the cygwin dll and should work.

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 7:33 pm
by royb
TheKnilch wrote:How about, downloading the source files, typing MAKE and having an executable?

It's far more easy.

TK
Great idea -- if only the source were available somewhere. I've not found it yet...

Can someone provide a link to the source for this version?

Thanks

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 7:41 pm
by TheKnilch
Hi all,

32/64 Bit Compile from Ahmed for Windows Users
http://www.speedyshare.com/files/230...vanHoe_T57.rar

57 Sources for Linux / Mac Users
http://ippolit.wikispaces.com/file/d...9957a-Beta.tar

Greetings
TK

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 7:49 pm
by xshat
I have finally been able to get my own 32 bit compile of Ivan58m to work after some changes to the source code. There were several errors when compiling so it may be buggy or crash. I will try to work on the 57 version next to see if I can learn more or improve compiles.

Here's the link to my own compile: http://www.mediafire.com/?jjn0i3hdgnq

Here's the instructions I used to modify the source:

Code: Select all

There is just a line missing:
#include <sys/time.h>
at line 190 of utility.c

The default compile is 64 bits, so I had to remove the -Dx86_64 in the makefile, but you may not have the same problem (I'm using 32 bits).


input.c:
after line 1133:
#include <io.h>
added
#include <conio.h>

SMP_init.c
function NANO_SLEEP:
void NANO_SLEEP (int x)
{
struct timespec TS[1];
TS->tv_sec = 0;
TS->tv_nsec = x;
nanosleep (TS, NULL);
}
changed into
INLINE void NANO_SLEEP (int x)
{
#ifdef WINDOWS
Sleep(x / 1000000);
#else
struct timespec TS[1];
TS->tv_sec = 0;
TS->tv_nsec = x;
nanosleep (TS, NULL);
#endif
}

changed line 104:
{ LPDWORD w; do { GetExitCodeThread (x, &w); } while (w != STILL_ACTIVE);
in
{ DWORD w; do { GetExitCodeThread (x, &w); } while (w != STILL_ACTIVE); }

changed line 120-121
PTHREAD_DELETE (PTHREAD[cpu]);
pthread_join (PTHREAD[cpu], NULL);
in
#ifdef WINDOWS
PTHREAD_DELETE (&PTHREAD[cpu]);
PTHREAD_JOIN (&PTHREAD[cpu], NULL);
#else
PTHREAD_DELETE (PTHREAD[cpu]);
pthread_join (PTHREAD[cpu], NULL);
#endif

removed line 140
struct timespec TS[1];

replaced line 171-173
TS->tv_sec = 0;
TS->tv_nsec = 1000000; /* 1 ms */
nanosleep (TS, NULL);
with
NANO_SLEEP(1000000);

replaced line 176-178
TS->tv_sec = 0;
TS->tv_nsec = 1000000; /* 1 ms */
nanosleep (TS, NULL);
with
NANO_SLEEP(1000000);


Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 8:16 pm
by xshat
Here is my IvanHoe57a compile for 32 bit:
http://www.mediafire.com/?ngyz2d3mami

Re: Ivanhoe 57

Posted: Sun Jun 20, 2010 9:43 pm
by royb
TheKnilch wrote:Hi all,

32/64 Bit Compile from Ahmed for Windows Users
http://www.speedyshare.com/files/230...vanHoe_T57.rar

57 Sources for Linux / Mac Users
http://ippolit.wikispaces.com/file/d...9957a-Beta.tar

Greetings
TK
The link is broken for the Linux source. Can someone take a look and fix it please?

Thanks!