Summary
When opening the project f or the first time, the repository does some automatic autoconfiguration with cmake and produces the error: could not find git for clone of gamespy-populate. This is fixed by re-running the VS2022 installer, select modify and search in all components for "git". Select "git for Windows", and modify the installation.
Prerequisites
Game Version
Bug Description
I am trying to follow the build guide. (Visual Studio 2022)
I am aware these are stupid, basic questions, however I am not familiar with Visual Studio. Normally I develop exclusively with Linux + gcc + VS Code, so the Windows + VS2022 environment is totally new to me.
Question 1: How do I clone the repo? This is a git integration question
I succeeded, using the following method. Is this the correct method? Is this what I was expected to do?
- I had to first fork the repo, so that I have a copy of this repo under my own github account
- I use Visual Studio to clone the repo, but I was only able to do this by selecting my copy of the repo from the GUI. This appears to have used http rather than ssh. Is that expected?
Series of illustrative screenshots below.
So there are two points here:
- Should I have cloned the
github.com/TheSuperHackers/GeneralsGameCode repo or my copy of it?
- Should I be using ssh or http to clone?
- I could not get any other method to work, except for cloning my copy with http. This may be because I am unfamiliar with the git integration with VS2022.
Question 2: cmake build error, could not find git
Once opened, the repository does some automatic autoconfiguration with cmake.
This produces an error
error: could not find git for clone of gamespy-populate
But git clearly can be found, because I just cloned a repo using the git integration with VS2022.
Do I need to separately install an independent copy of git (git for Windows) in addition to whatever comes bundled with VS2022?
Reproduction Steps
- Fresh copy of Windows 11
- Install VS2022
- Try to clone repo, following build guide for cmake + VS2022
Additional Context
No response
Summary
When opening the project f or the first time, the repository does some automatic autoconfiguration with cmake and produces the error:
could not find git for clone of gamespy-populate. This is fixed by re-running the VS2022 installer, select modify and search in all components for "git". Select "git for Windows", and modify the installation.Prerequisites
Game Version
Bug Description
I am trying to follow the build guide. (Visual Studio 2022)
I am aware these are stupid, basic questions, however I am not familiar with Visual Studio. Normally I develop exclusively with Linux + gcc + VS Code, so the Windows + VS2022 environment is totally new to me.
Question 1: How do I clone the repo? This is a git integration question
I succeeded, using the following method. Is this the correct method? Is this what I was expected to do?
Series of illustrative screenshots below.
So there are two points here:
github.com/TheSuperHackers/GeneralsGameCoderepo or my copy of it?Question 2: cmake build error, could not find git
Once opened, the repository does some automatic autoconfiguration with cmake.
This produces an error
But git clearly can be found, because I just cloned a repo using the git integration with VS2022.
Do I need to separately install an independent copy of git (git for Windows) in addition to whatever comes bundled with VS2022?
Reproduction Steps
Additional Context
No response