@@ -147,9 +147,14 @@ <h3 id="Formatter">Formatter</h3>
147
147
< h2 id ="Tools_installation_on_Ubuntu "> Tools installation on Ubuntu</ h2 >
148
148
< p > The command blocks below should be run in a terminal, where each line is
149
149
entered separately and followed by the Enter key.</ p >
150
- < h3 > Visual Studio Code</ h3 > Follow the installation guide from < a href =
150
+ < h3 > Visual Studio Code</ h3 >
151
+ < p > Follow the installation guide from < a href =
151
152
"https://docs.wpilib.org/en/latest/docs/zero-to-robot/step-2/wpilib-setup.html ">
152
- WPILib Docs</ a > .
153
+ WPILib Docs</ a > .</ p >
154
+ < p > To build robot projects in a terminal, run the following command to set
155
+ JAVA_HOME in < code > ~/.bashrc</ code > :</ p >
156
+ < p > < code > echo 'export JAVA_HOME=~/wpilib/2021/jdk' >>
157
+ ~/.bashrc</ code > </ p >
153
158
< h3 > GCC</ h3 > < code > sudo apt-get install gcc</ code >
154
159
< h3 > Git</ h3 > < code > sudo apt-get install git</ code >
155
160
< h3 > Formatter</ h3 >
@@ -159,9 +164,13 @@ <h3>Formatter</h3>
159
164
< h3 > CMake</ h3 > < code > sudo apt-get install cmake</ code >
160
165
< h2 id ="Tools_installation_on_Arch_Linux "> Tools installation on Arch
161
166
Linux</ h2 >
162
- < h3 > Visual Studio Code</ h3 > Follow the installation guide from < a href =
167
+ < h3 > Visual Studio Code</ h3 >
168
+ < p > Follow the installation guide from < a href =
163
169
"https://docs.wpilib.org/en/latest/docs/zero-to-robot/step-2/wpilib-setup.html ">
164
- WPILib Docs</ a > .
170
+ WPILib Docs</ a > .</ p >
171
+ < p > To build robot projects in a terminal, run the following command to set
172
+ JAVA_HOME in < code > ~/.bashrc</ code > :</ p > < code > echo 'export
173
+ JAVA_HOME=~/wpilib/2021/jdk' >> ~/.bashrc</ code >
165
174
< h3 > GCC</ h3 > < code > sudo pacman -S gcc</ code >
166
175
< h3 > Git</ h3 > < code > sudo pacman -S git</ code >
167
176
< h3 > Formatter</ h3 >
@@ -174,11 +183,10 @@ <h3>Formatter</h3>
174
183
makepkg -si</ pre >
175
184
< h3 id ="CMake "> CMake</ h3 > < code > sudo pacman -S cmake</ code >
176
185
< h2 id ="Tools_installation_on_Windows "> Tools installation on Windows</ h2 >
177
- < h3 > Visual Studio Code</ h3 > Follow the installation guide from < a href =
186
+ < h3 > Visual Studio Code</ h3 >
187
+ < p > Follow the installation guide from < a href =
178
188
"https://docs.wpilib.org/en/latest/docs/zero-to-robot/step-2/wpilib-setup.html ">
179
- WPILib Docs</ a > .
180
- < p > Make sure to have everything checked as it will download everything that
181
- you need to build and deploy the robot projects.</ p >
189
+ WPILib Docs</ a > .</ p >
182
190
< h3 > GCC Compiler</ h3 >
183
191
< ol >
184
192
< li > Download the MSYS2 installer from < a href =
@@ -209,9 +217,9 @@ <h3>Formatter</h3>
209
217
Failed to find MSBuild toolsets directory.
210
218
MSVC integration install failed.</ pre >
211
219
< p > MSYS2 keeps a separate PATH environment variable from the operating
212
- system. Run the following command to add the LLVM installation to
213
- it. </ p > < code > echo 'export PATH=$PATH:/c/Program\ Files/LLVM/bin' >>
214
- ~/.bashrc</ code >
220
+ system. Run the following command to add the LLVM installation to it. </ p >
221
+ < p > < code > echo 'export PATH=$PATH:/c/Program\ Files/LLVM/bin' >>
222
+ ~/.bashrc</ code > </ p >
215
223
< p > The following commands install Python and pip, then use pip to install
216
224
wpiformat.</ p >
217
225
< pre >
0 commit comments