When I learned cmake a few years ago, I benefitted a lot from the famous Github project cmake-examples. Inspired by this project and learning how to use Bazel from scratch, I think it is a good idea to provide people with some examples which can help them learn Bazel more easily.
Every time I prepare to learn some new things which are more than just technology, I wish to have a user-friendly guidance which can help me learn these things more easily. Hence, I wish to provide a user-friendly guidance about how to prepare the environment for Bazel.
The basic requirements are:
-
Microsoft Visual C++ Redistributable (you can download from the following link Microsoft Visual C++ Redistributable)
- For Windows 64, you can select the executable of "X64" in the below image 1:
-
Bazel (you can download Bazel from the following link Downloading Bazel)
-
After clicking the above link, please scroll down until the below position in the image 2
-
Then scroll down until you can find the "bazel-8.0.0-windows-x86_64.exe" which is displayed in the image 3
-
Then, you can rename the downloaded executable as "bazel.exe" and add the absolute path of this executable into the system variable of the environmental variable "Path"
-
After that, open a powershell and input "bazel version". You can see some information displayed in the image 4
-