Subj : Compile from source
To : Digital Man
From : Yigael
Date : Sat Apr 06 2024 08:37 pm
> Which .h files?
The .h files that magically become available when one actually selects a
Windows SDK component. :P
FINAL UPDATE: Thanks to the updated build instructions I was able to compile
the source files into all the .EXE and .DLL files that I typically see in
\sbbs\exec. Pretty cool.
Here's what I did on my Windows 11 PC:
1. Open an admin PowerShell and enter the following wget command. This installs
Visual Studio C++ Build Tools with just the components needed (and nothing
else):
winget install Microsoft.VisualStudio.2022.BuildTools --force --override
"--passive --wait --add
Microsoft.VisualStudio.Workload.VCTools;includeRecommended
Microsoft.VisualStudio.Component.Windows11SDK.22621
Microsoft.Component.VC.Runtime.UCRTSDK
Microsoft.VisualStudio.Component.VC.v141.x86.x64
Microsoft.VisualStudio.Component.WinXP"
2. Install the GnuWin32 package from
https://sourceforge.net/projects/gnuwin32/
3. Set environment variables by going into System Properties, clicking on
System Variables and adding the following:
User variables
Variable Name: VS170COMNTOOLS
Variable value: "C:\Program Files (x86)\Microsoft Visual
Studio\2022\BuildTools\Common7\Tools"
(because %VS170COMNTOOLS% is specified in the \sbbs\src\sbbs3\*.bat
files)
System variables
PATH statement --> add "C:\Program Files (x86)\GnuWin32\bin"
4. Open a Developer PowerShell for VS window and change to \sbbs\src\sbbs3
directory.
5. Type ".\release.bat" and hit [Enter]. Go get another cup of coffee.
I found the switch "/p:XPDeprecationWarning=false" helps suppress the
annoying deprecation warning messages.
Well this has been an interesting several days and I learned a lot. Thank you
for all the helpful information! :D
Kind Regards,
Chris
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net