• Win32 build instructions for beginners

    From Alpha@VERT/ALPHACOM to All on Fri Aug 20 03:26:58 2021
    Hi, I'm just getting started with C++ (I do have experience with Javascript, Go and python) and I'd like to build Synchronet from source (with the hope of one day contributing), but I'm having some problems and was hoping to get some pointers...

    I'm running Win10, MS Visual Code C2019. I have a working version of Synchronet 3.18c, with the zip contents of Synchronet-Win32 C/C++ Source Code Archive (Aug-19-2021) downloaded from the FTP site downloaded and extracted to /sbbs/repo. (I also added the deprecated v141 tool support for XP in VS)

    According to the instructions in the README.TXT file:

    ---
    Project Directory Build Command
    src/sbbs3 release.bat /v:m /p:WarningLevel=0
    ---

    When I run that command in the developer Power Shell, I get many errors across many files, but all related to "GIT_HASH":

    C:\Users\robbi\repos\sbbssrc\src\sbbs3\addfiles.c(560): error C2065: 'GIT_HASH': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\addfiles.vcxproj]

    Any clue what I'm doing wrong?

    Thanks for any help!

    Alpha
    ---
    ■ Synchronet ■ My Brand-New BBS
  • From Digital Man@VERT to Alpha on Thu Aug 19 21:03:56 2021
    Re: Win32 build instructions for beginners
    By: Alpha to All on Fri Aug 20 2021 03:26 am

    Hi, I'm just getting started with C++ (I do have experience with Javascript, Go and python) and I'd like to build Synchronet from source (with the hope of one day contributing), but I'm having some problems and was hoping to get some pointers...

    I'm running Win10, MS Visual Code C2019. I have a working version of Synchronet 3.18c, with the zip contents of Synchronet-Win32 C/C++ Source Code Archive (Aug-19-2021) downloaded from the FTP site downloaded and extracted to /sbbs/repo. (I also added the deprecated v141 tool support for XP in VS)

    A file with that date should have v3.19a (the current development version) in it, not v3.18c.

    According to the instructions in the README.TXT file:

    When I run that command in the developer Power Shell, I get many errors across many files, but all related to "GIT_HASH":

    C:\Users\robbi\repos\sbbssrc\src\sbbs3\addfiles.c(560): error C2065: 'GIT_HASH': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\addfiles.vcxproj]

    Any clue what I'm doing wrong?

    You'll need the files (in the src/sbbs3 dir): git_branch.h and git_hash.h which are normally created by gitinfo.bat. But since you didn't get the files via Git, the gitinfo.bat isn't going to work for you.

    If you just want to work around this issue (and not get the source files using Git), you can create those 2 files by hand, they're just one line each:

    \sbbs\src\sbbs3>type git_branch.h
    #define GIT_BRANCH "master"

    \sbbs\src\sbbs3>type git_hash.h
    #define GIT_HASH "3313031a70"

    I'll see about including those files in future nightly source archives going forward.
    --
    digital man

    Rush quote #20:
    Learning that we're only immortal, for a limited time
    Norco, CA WX: 67.5°F, 79.0% humidity, 6 mph ENE wind, 0.00 inches rain/24hrs ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Alpha@VERT to Digital Man on Thu Aug 19 21:28:28 2021
    \sbbs\src\sbbs3>type git_branch.h
    #define GIT_BRANCH "master"

    \sbbs\src\sbbs3>type git_hash.h
    #define GIT_HASH "3313031a70"


    Thanks, Rob. Added this, and one error went away but still getting the "git_hash" error?

    Interestingly, when I run the .bat file the git_hash.h file contents get removed (e.g. ends up with a blank file).

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Alpha on Thu Aug 19 21:49:12 2021
    Re: Win32 build instructions for beginners
    By: Alpha to Digital Man on Thu Aug 19 2021 09:28 pm


    \sbbs\src\sbbs3>type git_branch.h
    #define GIT_BRANCH "master"

    \sbbs\src\sbbs3>type git_hash.h
    #define GIT_HASH "3313031a70"


    Thanks, Rob. Added this, and one error went away but still getting the "git_hash" error?

    Maybe you didn't create both files? Or didn't define GIT_HASH in the git_hash.h file?

    Interestingly, when I run the .bat file the git_hash.h file contents get removed (e.g. ends up with a blank file).

    Yup, that'd be expected since you don't actually have a git repo (and maybe don't even have 'git' installed?).
    --
    digital man

    Synchronet/BBS Terminology Definition #86:
    UDP = User Datagram Protocol
    Norco, CA WX: 66.6°F, 80.0% humidity, 6 mph NE wind, 0.00 inches rain/24hrs
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Alpha@VERT to Digital Man on Fri Aug 20 06:50:11 2021
    Maybe you didn't create both files? Or didn't define GIT_HASH in the git_hash.h file?

    Yup, that'd be expected since you don't actually have a git repo (and maybe don't even have 'git' installed?).
    --
    digital man

    Ah, I initialized the repo, but didn't make a commit <smacks forehead>. Fixed! Awesome, got past that error, thank you!

    Looks like there are couple remaining errors, all of the "undeclared identifier" type. Any idea what those could be?

    C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(56): error C2065: 'FiChecksum': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(59): error C2065: 'FiChecksum': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(61): error C2065: 'FiChecksum': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(66): error C2065: 'FiTags': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(68): error C2065: 'FiAuthor': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(70): error C2065: 'FiGroup': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(90): error C2065: 'FiUploadedTo': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(322): error C2065: 'TagFilePrompt': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(331): error C2065: 'EditExtDescriptionQ': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\netmail.cpp(345): error C2065: 'FidoNetMailSent': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\netmail.cpp(741): error C2065: 'QWKNetMailSent': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\netmail.cpp(743): error C2065: 'InternetMailSent': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\netmail.cpp(922): error C2065: 'FidoNetMailSent': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\netmail.cpp(1250): error C2065: 'InternetMailSent': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\netmail.cpp(1455): error C2065: 'QWKNetMailSent': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\upload.cpp(432): error C2065: 'TagFileQ': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\upload.cpp(432): error C2065: 'TagFileQ': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\upload.cpp(433): error C2065: 'TagFilePrompt': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\useredit.cpp(1033): error C2065: 'HowManyColumns': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj] C:\Users\robbi\repos\sbbssrc\src\sbbs3\viewfile.cpp(45): error C2065: 'FileInfoEditPrompt': undeclared identifier [C:\Users\robbi\repos\sbbssrc\src\sbbs3\sbbs.vcxproj]

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Alpha on Fri Aug 20 09:57:10 2021
    Re: Win32 build instructions for beginners
    By: Alpha to Digital Man on Fri Aug 20 2021 06:50 am


    Maybe you didn't create both files? Or didn't define GIT_HASH in the git_hash.h file?

    Yup, that'd be expected since you don't actually have a git repo (and maybe don't even have 'git' installed?).

    Ah, I initialized the repo, but didn't make a commit <smacks forehead>. Fixed! Awesome, got past that error, thank you!

    I didn't suggest that you initialize a new git repo.

    Looks like there are couple remaining errors, all of the "undeclared identifier" type. Any idea what those could be?

    C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(56): error C2065: 'FiChecksum': undeclared identifier

    I just recently went throug this exercise with Nightfox and we got it resolved by using the text.h file that's included in Git (or in your case, extracted from the SBBS source archive you downloaded) and disabling the "textgen" project. Search for those messages here where we discussed that not very long ago.
    --
    digital man

    This Is Spinal Tap quote #21:
    So when you're playing you feel like a preserved moose on stage?
    Norco, CA WX: 66.1°F, 83.0% humidity, 2 mph SW wind, 0.00 inches rain/24hrs
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Digital Man@VERT to Alpha on Sat Aug 21 15:54:03 2021
    Re: Win32 build instructions for beginners
    By: Digital Man to Alpha on Thu Aug 19 2021 09:03 pm

    I'll see about including those files in future nightly source archives going forward.

    The latest sbbs_src.zip now contains the current git_branch.h and git_hash.h files.
    --
    digital man

    Sling Blade quote #20:
    Doyle: Hey is this the kind of retard that drools and rubs shit in his hair? Norco, CA WX: 73.8°F, 70.0% humidity, 11 mph N wind, 0.00 inches rain/24hrs
    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Alpha@VERT to Digital Man on Tue Aug 24 12:37:52 2021
    Cool. I'll give it another spin!

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net