This guide is intended for Java and C++ teams. LabVIEW teams can skip to Installing LabVIEW for FRC (LabVIEW only). Additionally, the below tutorial shows Windows 10, but the steps are identical for all operating systems. Notes differentiating operating systems will be shown.
Supported OSs and Architectures
WPILib is designed to install to different folders for different years, so that it is not necessary to uninstall a previous version before installing this year’s WPILib.
.iso for Windows, .tar.gz
for Linux, and distributed as a DMG for MacOS.
Mount to open it. Then launch WPILibInstaller.exe
.
7-Zip
and selecting Extract to… Windows 11 users may need to
select Show more options at the bottom of the context menu.
After opening the .iso file, launch the installer by
opening WPILibInstaller.exe.
xcode-select --install
in the Terminal.
DMG
and then select WPILibInstaller
to launch the application.
.tar.gz
and then launch WPILibInstaller Ubuntu treats executables in
the file explorer as shared libraries, so double-clicking won’t run them. Run the following
commands in a terminal instead with <version>
replaced with the version you’re installing.
$ tar -xf WPILib_Linux-<version>.tar.gz
$ cd
WPILib_Linux-<version>/
$ ./WPILibInstaller
.iso for Windows, .tar.gz
for Linux, and distributed as a DMG for MacOS.
This showcases a list of options included with the WPILib installation.
Tools Only installs just the WPILib tools (Pathweaver, Shuffleboard,
RobotBuilder, SysID, Glass, and OutlineViewer) and JDK.
Everything installs the full development environment (VS Code,
extensions, all dependencies), WPILib tools, and JDK.
Install for this User and
Install for all Users. Install for this User
only installs it on the current user account, and does not require administrator
privileges. However, Install for all Users installs the tools for
all system accounts and will require administrator access. Install for all Users
is not an option for macOS and Linux.
Select the option that is appropriate for you, and you’ll presented with the following installation screen.
This next screen involves downloading VS Code. Unfortunately, due to licensing reasons, VS Code can not be bundled with the installer.
Download for this computer only
. This will begin the download process and can take a bit depending on internet connectivity
(it’s ~100MB).Once the download is done, select
Next
. You should be presented with a screen that looks similar to the one below.
After installation is complete, you will be presented with the finished screen.
Congratulations, the WPILib development environment and tooling is now installed on your computer! Press Finish to exit the installer.
Some operating systems require some final action to complete installation.
After installation, the installer opens the WPILib VS Code folder. Drag the VS Code application to the dock. Eject WPILibInstaller image from the desktop.
Some versions of Linux (e.g. Ubuntu 20.04) require you to give the desktop shortcut the ability to launch. Right click on the desktop icon and select Allow Launching.
build-essential package.
Desktop Development with C++
option is checked in the Visual Studio installer for simulation support.
The Offline Installer installs the following components:
Visual Studio Code - The supported IDE for 2019 and later robot code development. The offline installer sets up a separate copy of VS Code for WPILib development, even if you already have VS Code on your machine. This is done because some of the settings that make the WPILib setup work may break existing workflows if you use VS Code for other projects.
C++ Compiler - The toolchains for building C++ code for the roboRIO
Gradle - The specific version of Gradle used for building/deploying C++ or Java robot code
Java JDK/JRE - A specific version of the Java JDK/JRE that is used to build Java robot code and to run any of the Java based Tools (Dashboards, etc.). This exists side by side with any existing JDK installs and does not overwrite the JAVA_HOME variable
WPILib Tools - SmartDashboard, Shuffleboard, RobotBuilder, Outline Viewer, Pathweaver, Glass, SysID
WPILib Dependencies - OpenCV, etc.
VS Code Extensions - WPILib extensions for robot code development in VS Code
WPILib is designed to install to different folders for different years, so that it is not necessary to uninstall a previous version before installing this year’s WPILib. However, the following instructions can be used to uninstall WPILib if desired.
Desktop Development with C++
option is checked in the Visual Studio installer for simulation support.
C:\Users\Public\wpilib\YYYY where YYYY
is the year to uninstall)
C:\Users\Public\Public Desktop
Delete the path environment variables.
In the start menu, type environment and select “edit the system environment variables”
Click on the environment variables button (1).
In the user variables, select path (2) and then click on edit (3).
roborio\bin
(4) and click on delete (5).
frccode
and click on delete (5).
Repeat steps 3-6 in the Systems Variable pane.
~/wpilib/YYYY
where YYYY is the year to uninstall)
~/wpilib/YYYY
where YYYY is the year to uninstall). eg
rm -rf ~/wpilib/YYYY