Daniel Mehrmann wrote:I don't know which sources you're using. Please use the current cvs repository of winboard. It includes a makefile for Visuial Studio 6 and 2005/2003.
You'll find it here:
http://savannah.gnu.org/projects/xboard/
Hi Daniel,
I think most people would like to download sources as a *.tar.gz file or similar, is this possible "easily" from the cvs repository? Or is there some archive to download which contains the current sources?
As far as I can tell
this seems not to be the most recent source tree, if you say that the CVS repository has new stuff. Nevertheless I tried the GNU tree with VS2005, and after some steps I have been successful in compiling it.
@BrettVSOP: these were my steps based on the GNU download above.
- Converting winboard.dsw or using any of the *.mak files directly did not work for me, some ntwin32.mak was missing.
- Winboard_X sources seemed to cause similar trouble for me here with VS2005. Maybe I did something wrong.
- So I created a new project from scratch, added all *.c/*.h/*.rc from winboard folder and the following from the root folder:
backend*, common.h, gamelist.c, lists.*, moves.*, parser.*, pgntags.c, resource.h, zippy.*
- Extended include path for C++ compiler by adding root folder, winboard folder and the "Include" directory of the Platform SDK (you need to have this anyway for C/C++ development with MSVC, I have "Microsoft Platform SDK for Windows Server 2003 R2" which you can download for free)
- Extended also include path for resource compiler by adding Platform SDK "Include"
- Extended library path for linker by adding Platform SDK "Lib" directory
- Added the following additional libs under "Linker -> Command Line -> Additional options":
user32.lib gdi32.lib comdlg32.lib winmm.lib ws2_32.lib advapi32.lib
- Added under "C++ -> Preprocessor -> Preprocessor definitions" the value "_CRT_SECURE_NO_DEPRECATE" (to avoid many warnings, although not all of them could be removed)
- Made the following source changes:
winboard.c, below line 84 (#include "defaults.h") added "#undef wReserved"
backend.c, below line 87 (#endif) added
#if HAVE_FTIME
#include <sys/timeb.h>
#endif
and removed line 9438 "#include <sys/timeb.h>"
parser.c, commented out line 12 "#include <unistd.h>"
I hope I did not do complete nonsense, at least I could compile and run WinBoard this way. Perhaps too much of work that someone else had already done before, but as I mentioned, I did not find a downloadable archive with most recent sources.
Hope this helps!
Sven