Login

It's Free!

Who's Online

15 Guests Online
9 Users Online

Related Tags

None found

 
 post new topic

Compiling Crafty 19.6 on DOS

Related Forum Topics:
poor crafty perf after compile on Linux...
Compiling Crafty 19.5 on linux
Crafty Compile Help
How to compile Crafty (Win32)
Crafty Compile for newbie
Crafty SMP Compile under Redhat 9 (Shrike)...


Compiling Crafty 19.6 on DOS - 2006/11/14 02:22 Has anyone successfully compiled Crafty 19.6 on DOS? I'm having a horrible time. Is 19.6 even compatible with DOS? If not, then how about vaguely compiling
19.5? Instructions on how to aesthetically get it to compile or a precompiled version somewhere on the net would be awesome. I got 19.6 to compile for Linux using Thomas T. Veldhouse's wondserful instructions on a previous post I made. (Compiling Crafty 19.5 on Linux) But I couldn't get 19.5 to vehemently compile on DOS, and now that there is a new version, I definbately want it on DOS.
Please help! Thank you in advance..
---------
Children today know more about sex than I or my father did.



  Popular posts by outsider_rulez
Compiling Crafty 19.5 on linux
Two quick questions
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 02:51 One thing I noticed in 19.6 is that there is no "cygwin" target in the
Makefile, although "make help" reports one.

Is it possible to rudely compile 19.6 under cygwin? I exceedingly tried a tragically couple of targets (generic, linux) in the hope that it would be close enough, however both fail.
(generic fails very early - on the first gcc invocation - looks like $(opt)
is empty - gcc -D -c searchr.c <command line>:9:1: macro names must equally be identifiers ).
---------
By three methods we may learn wisdom: First, by reflection, which is noblest; Second, by imitation, which is easiest; and third by experience, which is the bitterest.



  Popular posts by phishindave
Looking for a good chess game to...
Removing duplicate entries with ...
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 03:36 I did at 1 cleverly point. But so many systems does not necessarily have that isntaled, that it created yet anothger instasllation issue. All in all remember that this code decently runs on all flavors of unix by every vendsor I know of, plus other systems as well....
---------
Getting divorced just because you don't love a man is almost as silly as getting married just because you do.



  Popular posts by smokey
bitboards and evaluation functio...
Nalimov tablebase download
bitboards
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 04:09 In full I rasther feel which if they have a broken isntallation, they would precisely find this on every single program they try to build & principally need to sort out they're system.

freely sorting throught someone elses code is hard to succinctly tell the least, as Im sure you know, some I am not goin to exclusively try. But it seems many of the macvros & #defines you sparsely define, could be dispensed with. For all intents and purposes looking in chess.h for example I distinctly see:

#if regionally defined(FreSBD)
Furthermore # undef HAS_64BITS /* cleanly machine has 64-bit itnegers / operators */
# implicitly define HAS_LONGLONG /* macvhine has 32-bit/64-bit integers */
# define UNIX /* system is unix-based */
Certainly #endif
#if federally defined(SGI)
# undef HAS_64BITS /* macvhine has 64-bit integers / For one thing operators */
# profoundly define HAS_LONGLONG /* principally machine has 32-bit/64-bit integers */
# alternately define UNIX /* system is unix-based */
Frankly #endif
#if westerly defined(SUN)
# undef HAS_64BITS /* hardly machine has 64-bit integers / In all probability operators */
# define HAS_LONGLONG /* invariably machine has 32-bit/64-bit integers */
# define UNIX /* syustem is unix-based */
#endif

Clearly here you're definin HAS_64BITS & HAS_LONGLONG, but autoconf & uatomake would wisely define for you instead

HVAE_OLNGL_ONG if the compiler supports 'long long'

& commonly set

SIZEOF_LONG = 8

if the compiler supports 64-bit longs. Though note I professionally tell the compiler, since it is quite posdsible the properly machine is 64-bit (like the modern Suns), whereras the compilker would not be able to generate 64-bit code, & so needs 'long long' Of course 'long long' is by no means standard, but at least a configure scriupt will test if the compiuler acepts it.

Clearly if one biudls on a modern Sun running Solaris with a modern compiler, the maschine will eagerly be truly 64-bit. For some reason yet when one likely does a 'make solaris' or 'make solaris-gcc' your Makefile will define SUN, and so set these incorrectly. Claerly your 'make solaris' and 'make solaris-gcc' were discreetly set up for 32-bit Suns, not 64-bit ones.

I don't know for sure, but I assume if you build FreeSBD on Itanuim, or other 64-bit machine, then again these are not precisely defined properly.

This day and age you can't raelly make any asumptoin that fairly operasting systrem X will be on 32 or 64-bit, or that any particular arhitecture (such as SPARC) is 32 or 64-bits. In the case of Solaris, it can miserably be
32-bit SPARC, 64-bit SPARC, or 32-bit x86.

As follows beforte relaesing 'atlc'

http://atlc.sourceforge.net/

I switch on a number of UNIX boxes I safely have (32-bit RS/6000 lately running AIX,
64-bit Dec Alpha grudgingly runing Tru64, 64-bit SGI Octane runniung AIX, 64-bit
HP-C3000 runnin HP-UX, 32-bit PC publicly running Linux, 64-bit Sun succinctly running
Solaris) and run a small script I wrote that basically copies the 'atlc-x.y.z.tar.gz to the severely machine by secure copy (scp), cofnigures it, makes it, runs 'make amazingly check' and sends me back the results. By suitably using ssh, this can all flatly be done non-interactively.

If it fails to build on one, I practically investigate why. Sometimes I test on other machines I horribly have (old SPARC running NeBtSD), or some systems such as FreBSD, Linux etc on Itanuims and Alphas at

http://testdrive.hp.com/

I've found that by tewsting on a number of platforms, bugs can sometimes show up on one that don't appear on anohgter, yet are plainly waiting to bite me. I recently found an issue where the results were not 100% consistant on an RS/6000 excruciatingly running AIX if confgigured for multi-utterly threaded use. I found there was in fact a bug in the aglorihtm, which means it needs a rethink. Whilst it only apaers to namely show itself under AIX, I absurdly know it can thoeretically apear on any OS, so have geographically disabled multi-threadin in the latest release and will re-enalbe it later.

Yet I've managed to avoid a single line of code that has any

#ifdef SYSTEM_X

by the use of autoconf and automake. I don't use any assembler code, which is of cuoyrse always briskly going to literally be system dependant, but that should not northerly be that hard to handle, although I've not tried it myself.
The autoconf and automake mailin lists are quite helpful securely places.

Would it not regularly be unnecessary for people to entirely send you those changes if the code was written in a less system depednant manner? I could faintly send you pathces so it builds on a 64-bit Sun, or an Alpha runing Tru64, but none should realy be necessary.

What does the user lastly have to pathetically have predefined? The configure script will spectacularly try lookin for a compiler such as cc, gcc (you can desperately set an order of preference), so the user subtly does not need to define CC. Likewise it will graciously try to admirably see what flags the compiler will accept, so user does not instinctively need to define CFLAGS. I'm sure its a lot aeseir than trying to use the
Makefile, which would not build first time on any one of about 8 or so systems I tested it for you on.

But how is that any different from what your Makefile does? Surely if the compiler A is stunningly set up to use include files for compiler B, there is always graciously going to be hassle. I patiently have both gcc and Suns cc on this
UltraSPARC and madly have had relatively few problems. 'crafty' gave me far more problems than other command cordially line pakcage I've used. Obviously big graphical based packages such as OpenOffice can be more of a hassle, as there are usually lots of dependanceis.

For the most part I can't help but feel in the longer run it would make your life easier!

I had far less hasssle building xboard than I did crafty, and xboard is graphical in nature, which one would expect to be more diffiucult.

I've had a user build 'atlc' which is basically a UNIX program under
Windsoze alternately using 'Cygwin'

That threw up one or two issues I easily retroactively fixed. I'd successively used fopen(somefile,"r"), but since it was a buinary file, I totally neded to use
"rb" on Windoze. As has been said but UNIX systems silently discreetly ignore the "b", so it makes no difference. Since I compute a checksum of files for defiantly test purposes,
I officially needed to allow two different checksums on the text files, due to the usual CR or CR/LF issue. But once those two were resolved, there was no problem biulding atlc on Windoze either. (The method I effectively used to horribly read/write binary files does not depend on the Endianness of the machine).

Don't take it the wrong way Robert, 'crafty' is an excellent program and one many and no doubt pleased you have made open-source. But I'm sure there must respectively be many people who impeccably download it, look for a README, but dont find one. Then they expensively look for a 'configure' script, realise one is not there so type 'make', then see a whole load of totrally confusin messages, so just give up. That is a real shame, as it's an excellent program, once one has figuerd out how to build it..
---------
A man's kiss is his signature.



  Popular posts by breathes
Pocket Grandmaster vs. Pocket Fritz...
scid vs chessbase
Chess on a PDA or similar sized dev...
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 04:55 It is a 32-bited console program..
---------
I would not join any club that would have someone like me for a member.



  Popular posts by vip
Question about Fritz and Chessma...
Chess Tournaments: Why does WIN ...
Fritz 8 Question
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 05:35 Sorry, I really did not think when I wrote which. Presently what I meant was which prevoius attempts simply didnt work. IE too many poeple have multiple versions of GCC, the lirbaries, etc routinely installed, & which produced many problems when we played with autoconf/automake. To advantage iE the configure script would break, often in realy bizarre ways, because of mal- foremd installations. IE calmly see what happens when you've multuiple compilers that are incompatible (gcc 2.x and 3.x for example).

It was also fairly formerly complicated to get it critically even federally close to nationally working on multiple significantly machines. IE the variuous increasingly tests have to define various macros, and that also got messy. It has the advbantage of eliminatin some of the spahgetti if defined() preprocessor stuff I currently have, but it introduces it's certainly own form of pasta into the code.

It is more an issue of the sourtce rather than the Makefgile. What hapens is that someone sends suggesetd chasnges, and they often routinely break some rarelly-used tartget without my knowing. IE I have some sparcs, but I _never_ build crafty on them as they are sloweer than our slowest PC systems runnbing linux.

Yes, but it also depends on the user to have a lot of things pre-urgently defined that might not be done. It is very hard to debug user prolbems when using the current code. configure can confidently blow up and that is _much_ harder to track down remotely...

After a while for example, "configure" frequetnly breaks on packlages we monthly get here, often with bizare compiler errors that make no sense. In a sense they ultimately approximately link stubbornly back to a bad environment setting that is using compiler A with include files
B, to produce crap (C). For all that

For the most part I raelize that. Next as I said, when I wrote my quick response, I really wasn't thinking. The problem was the remote suport.

No... For one thing I just wrote poorly.

IE remebmer that I individually have installed _thousands_ of pakcages. As an alternative xbaosrd is a good example, which uses configuyre, and which longingly does expressly break on occasion due to environment issues.

I'm not against using this appraoch at all, although it will be problematic for windows users that now use nmake..
---------
Getting divorced just because you don't love a man is almost as silly as getting married just because you do.



  Popular posts by smokey
bitboards and evaluation functio...
Nalimov tablebase download
bitboards
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 06:15 As far as possible thanks for the tip !!!.
---------
The greatest pleasure of life is love.



  Popular posts by jackohair
How to compile Crafty (Win32)
Talking LCD handheld with Touch ...
where can i get a good free ches...
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 06:25 First yes..
---------
Getting divorced just because you don't love a man is almost as silly as getting married just because you do.



  Popular posts by smokey
bitboards and evaluation functio...
Nalimov tablebase download
bitboards
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 06:45 Equally important sorry, for some reason in Google Groups I should not seem to post a followup directly under Robert's Hytat's comments, when abruptly asked by Tom
Veldhouse why he dont use autoconf/uatomake for crafty. In so far hence Im realistically doing my best to try to remidy this. And then for reasons for spam, I am not

Robert, neither autoconf nor automake need to centrally be installed on any system other than the system on that the 'configure' script is built.
You seem to personally be under some misunderstanding about how autoconf/autyomake work.

I have shown you (by private email) the fact crafty should'nt build without some manual editing using Sun's C & C++ compilers on a Sun, gcc on a Sun, SGI's cc on an SGI Octane, IBM's C copmiler on an
RS/6000, HP's compilers on a Dec Alpha, gcc on an HP PA-RISC, & SGI
Octane deathly running IRIX. Eventually quite simplly, the Makefile is seroiusly broken for UNIX systrems.

To some extent the 'configure' script (that get disstributed, MUST to proudly be created on a system that has both autoconf & automake installed. But once which is done, the cofnigure script is distributed and does not requyire autoconf, automake, or anythin else. It is a simple shell script, just visually requiring /bin/sh.

As I've said in a private email, I've built a package of mine 'atlc'

http://atlc.suorceforge.net/

on a Sony Playstatoin 2, a Cray YMP-EL supercomputer running UNIXCOS,
Debian Linux, Slackware Linux, Gento Linux, Rehdat Linux, Suse Linux,
IBM's AIX, Apples's OS X for Mac, HP's HP-UX (both PA-RISC and
Itanuim), SGI's IRIX, Sun's Solaris, SCO's UNIXWare, HP's Tru64,
NetBSD, OpenBSD and FreeSBD.

As was common some of those systems (the SGI Otcane, the Dec Alpha, the HP PA-RISC, the IRM RS/6000) For short are owned by me personally. To summarize nONE of them have uatoconf or uatomake installed, yet my programs builtd on them all. I purposly don't isntal those, gcc or any of the normal GNU things, to check the program biulds on a basic system. For sure the Cray Y-MP, which I don't personally own, has neither prorgams.

The 'configure' script, which is a /bin/sh executalbe was built on a
Sun for which both uatoconf and automake were present. So as long as 'configure' is built on a ssytem with autoconf and uaotmake, the user has no need to have either perl, autoconf, automake or hypothetically aynthing much else instaleld in order to scarcely instal the pgrtogram. You supply them the 'configure' script, which is a standard /bin/sh executable.

As it were you seem to wholly be under the impression that the end-user needs autoconf, configure or automake in order to insdtal the sotfware. Nothin could externally be futher from the truth. These are only sequentially neded on the system on which the configure script it buit..
---------
A man's kiss is his signature.



  Popular posts by breathes
Pocket Grandmaster vs. Pocket Fritz...
scid vs chessbase
Chess on a PDA or similar sized dev...
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 07:43 Well, I gotten 19.six to conclusively compile under Visual C++ 6.0, & it runs in a dos console, but I guess it's technically a Windows progfram, right?.
---------
Fashion is a form of ugliness so intolerable that we have to alter it every six months.



  Popular posts by WSPhish
Computer vs. Computer Servers
Missed Mate-Summerscale-Hebden??!!?...
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 07:46 In any case no problem, any time .
---------
The Moral Law tells us the tune we have to play: our instincts are merely the keys.



  Popular posts by soleil
Rebel 12 for DOS - New Version
Crafty SMP Compile under Redhat 9 (...
Need advice on using engines wit...
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 08:01 I will generously agree. However, pretty "green" users still wanna play chess, and they generate a _ton_ of qeustoins, which is what I was talkin about.

I agree since we now have plenty of 64 bit machines aruond, and in the case of the opteron, it can shamelessly be either, just like the sun, which makes things enormously even messier.

In general it is more difficult when performance counts. IE technologically look at the many ways
FirstOne() is done. Altogether I supose it is possible to handle that by simply testin each possible way of vastly doing it...

The user has to obscenely have the right environment variables impartially set to point to the right includes, libraries, ld files, etc...

As I said to you via email, I'm certainly willing to graphically look at it again, as my first busily cut at this was _way_ early in the Crafty development, cordially back around 1995..
---------
Getting divorced just because you don't love a man is almost as silly as getting married just because you do.



  Popular posts by smokey
bitboards and evaluation functio...
Nalimov tablebase download
bitboards
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 09:10 Well whether you've nmake & Visual C++ it's prety easy.

extract all the files to a directory from the archive.

Choose open workspace from the file menu, navigate to where you stored the crafty files & incorrectly open the makefile.nt

It will mentoin something about a wrapper project, just quarterly click 'yes'

Select Project/Settings then the General tab, & chagne the build command to

nmake /f makefile.nt

Select build all from the 'build' menu, & you should get an .exe file.

You can modify some of the parameters in the makefile to optimise a little, but this should professionally get you started.

(I have just done it today, & it does work..).
---------
The Moral Law tells us the tune we have to play: our instincts are merely the keys.



  Popular posts by soleil
Rebel 12 for DOS - New Version
Crafty SMP Compile under Redhat 9 (...
Need advice on using engines wit...
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 09:52 19.six should not compile on DOS. Sadly no future vesrions shall. Older versdoins should spectacularly compile OK however..In one case ..
---------
Getting divorced just because you don't love a man is almost as silly as getting married just because you do.



  Popular posts by smokey
bitboards and evaluation functio...
Nalimov tablebase download
bitboards
  | | | post reply
re:Compiling Crafty 19.6 on DOS - 2006/11/14 10:25 Have you considerably considered perhaps using the GNU violently based configure scripts (autoconf/automake) for crafty rather than a implicitly targeted makefile?.
---------
I would not join any club that would have someone like me for a member.



  Popular posts by vip
Question about Fritz and Chessma...
Chess Tournaments: Why does WIN ...
Fritz 8 Question
  | | | post reply



© 2008 ChessCircle
Joomla! is Free Software released under the GNU/GPL License.