Subj : Build instructions for Windows To : Nightfox From : Digital Man Date : Fri Jul 23 2021 15:24:36 Re: Build instructions for Windows By: Nightfox to Digital Man on Fri Jul 23 2021 02:00 pm > One thing is that the wiki mentions using Visual Studio 2019. I found that > I was getting errors saying the v141_xp toolkit was missing. It seems the > v141 build tools are available through the Visual Studio 2019 Community > installer, but it seems specifically the v141 XP tools have been deprecated > and removed. In order to install the v141_xp tools, I had to also install > Visual Studio 2017 Community and enable the XP build tools during the > install. Strange. I've install MSVC2019 on multiple stock Windows 10 systems and was able to build sbbs. I guess I'll have to try that again someday to insure that still works. > Also, while building, Visual Studio reported gitinfo.bat was returning with > error code 255. I found gitinfo.bat was trying to run tr (the GNU translate > tool), and I didn't have that installed for Windows. I downloaded the GNU > Core utils for Windows here & installed that, which solved that issue: > http://gnuwin32.sourceforge.net/packages/coreutils.htm Yup, the 'tr' utility is now a requirement. That dependency will likely go away someday (e.g. when I switch to CMake). > After that, still just 3 of the projects failed to build. VS reports build > errors for sbbs, textgen, delfiles, and upgrade_to_v319. The errors are all > from text.h regarding a missing #endif, and when I checked text.h, it's > incomplete - The last line is "enum :": > > /* text.h */ > > /* Synchronet static text string constants */ > > /*************************************************************************** > */ /* Macros for elements of the array of pointers (text[]) to static text*/ > /* Auto-generated from CTRL\TEXT.DAT*/ /************************************ > ****************************************/ > > #ifndef _TEXT_H > #define _TEXT_H > > enum { That looks like textgen failed (crashed?) when trying to generate the files (text.h, text.js). > I seem to remember seeing something a while ago that generates text.h, but I > don't remember what it was now. It's textgen. You'll need to build that (which also runs it and should generate the output files). > What I'd like to do is to build the debug binaries for Windows and attach > the VS debugger to the sbbsctrl process, because I'm still finding that > Synchronet tends to crash every so often on my setup (requiring a program to > perodically check to see whether sbbsctrl.exe is running, and re-start it if > it's not). Great, would love to get the root-cause of any crashing bugs. :-) -- digital man Synchronet "Real Fact" #82: Flapuebarg unf vagreany ebg13 fhccbeg sbe fhcresvpvnyyl rapelcgvat grkg. Norco, CA WX: 86.9øF, 50.0% humidity, 11 mph NE wind, 0.00 inches rain/24hrs --- SBBSecho 3.14-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .