I have no experience with Windows. What exactly do I need (and need to do) to compile Polyglot (e.g. this version https://github.com/flok99/polyglot) under Windows? I installed Cygwin and was able to compile it via
But unfortunately, the program doesn't work properly: when feeding an ini file it raises "pipex_open():...Unable to parse command" error. I think a problem is the "_WIN32" macro which is not defined by Cygwin. Do I need to use MSVC? What exactly do I need to install here and how do I run the compilation? I hope someone can help me out here.
for compiling Polyglot under Cygwin. Polyglot does come with a Cygwin makefile. (At least the version I have in my repository.) But I am afraid this will work only on very old Cygwin versions; at some point Cygwin gcc cased supporting the -mno-cygwin option, which you need to make a .exe that can run on Windows without the cygwin1.dll present.
$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I also had to fix something in pgheader.c because I got an error:
#ifdef _MSC_VER
typedef unsigned __int64 uint64_t;
#else //added this part
#if __WORDSIZE == 64
typedef unsigned long int uint64_t;
#else
__extension__
typedef unsigned long long int uint64_t;
#endif
#endif
I currently don't see how I can get it to work. Maybe you have installed something else or additionally?! (I am running a 64-bit Windows 10 by the way).
That it cannot find -lmsvcrt is related to that you are not doing a no-cygwin compile (it is a MicroSoft library), and probably also because you are compiling for 64 bit. You should not need the library, and can deleat that argument from the linking command.
The pgnheader symbols do not occur in the of Polyglot I supply with WinBoard, so I cannot see what is going wrong there.
Ugh, I took your version 2.0.4 from http://hgm.nubati.net/cgi-bin/gitweb.cg ... ;a=summary and that worked perfectly!! You must have cleaned up quite a bit of mess, thanks! Do you mind if I fork a version on Github eventually?
I am not sure it can be cloned from the web interface . (I never tried that.) But the web interface just presents the directories with the git repositories that are also in the public server tree. Perhaps you can clone it from there:
hgm wrote: ↑Fri Mar 05, 2021 6:42 pm
I am not sure it can be cloned from the web interface . (I never tried that.) But the web interface just presents the directories with the git repositories that are also in the public server tree. Perhaps you can clone it from there:
Thanks for the reply. I read about the web interface. I think you can only provide the full repo by a server-side command. But never mind. I simply started from your 2.0.4 and import my changes. That's all good.