Linux WPILibInstaller and Romi

I’m wondering if I may use linux to run the Romi? Also have questions on installing WPILib under linux.

On this page,, under extracting the software for linux it states to use ./WPILibInstaller however there is no script called WPILibInstaller in the downloaded library allwpilib-2021.2.2.tar.gz. Also there are no instructions on where to install this. Under Uninstalling it suggests that we should put the code under ~/WPILib/2021 ? Meanwhile the README file that is included does not reference running ./WPILibInstaller but rather to use ./gradlew ? Lastly in the README file there is a reference that if you have installed the FRC Toolchain in a custom location then either add it to your path or use specify where it is located when you run gradle. But what is the FRC Toolchain? And when did I install it? Or does WPILibInstaller install it?

I’ve downloaded allwpilib-2021.2.2.tar.gz, extracted it, and run ./gradlew build. But its in my ~/Workspace/wpilib/allwpilib-2021.2.2 folder. I’ve also followed instructions for loading ideaJ with the FRC plugin. I can compile a Romi project so either wpilib is installed ok or gradle in my project loads it up again? But I can’t simulate and run the Romi.

Here’s the instructions on Extracting Code for Linux

Linux users should extract the downloaded .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-.tar.gz

cd WPILib_Linux-/


It seems that you have installed the source code .tar.gz and not the installer- you should install the WPILib_Linux-2021.2.2.tar.gz artifact.

This may be an extremely naive question, but what are the odds that this would run on a Raspberry Pi?

That the installer would run natively on the Raspberry Pi? 0%. It’s only for desktop platforms, both the installer and the binaries it installs. We don’t currently support treating a Raspberry Pi as a desktop platform in WPILib.

1 Like

Thanks for the quick answer. I do see that VS Code is now supported on Pi, so maybe there’s hope.

VS Code isn’t the major barrier actually, but a bunch of the libraries needed for development. VS Code is just an IDE for editing code, it doesn’t build or compile anything.

Good to know. Thanks again! On to Plan B…

I did not find WPILibInstaller in allwpilib-2021.2.2.tar.gz nor WPILibPi-2021.2.1.tar.gz,

Figured out that we were getting an error starting the simulation GUI. GLFW Error 65543; GLX; Failed to create Context; GLXBadFBConfig.

Might be because my Intel Graphics are unable to run OpenGL > 2.1. Another mentor on our team did show me the simulator running under Ubuntu in a Virtual Machine so it is possible to use linux, just need a newer laptop that supports OpenGL at the correct version.

Still could not find WPILibInstaller on my system.

Using gradlew per the file seams to have worked though Getting Started Docs do not mention that method. And apparently gradle keeps track of where everything is as Idea found wpilibj…

Neither of these are the correct name of the installer file. The Linux installer should be downloaded from the same place as Windows, on the releases page here: Release WPILib 2021.2.2 Release · wpilibsuite/allwpilib · GitHub

The latest Linux installer file is called WPILib_Linux-2021.2.2.tar.gz


That’s correct–the simulator GUI requires OpenGL >= 3.0 on Linux platforms (it needs Direct3D 11 on Windows).

As mentioned in the previous post, you need to download the installer from the WPILib releases page. See the Linux installation instructions here for step-by-step installation: WPILib Installation Guide — FIRST Robotics Competition documentation

I have used a Linux computer to run a Romi.

With Linux, are the gamepads like the logitec controller difficult to install?

Sorry; I did download WPILib_Linux-2021.2.2.tar.gz and sources allwpilib-2021.2.2.tar.gz. Then must have gotten confused and ran gradlew build scripts in sources instead of WPILibInstall which is in the WPILib_Linux-2021.2.2.tar.gz download. Though its not in 2021.2.1 folder from a previous install.

I have no clue if running Gradle on the sources installed wpilib or if running Gradle in a Reference Robot on IntelliJ Idea pulled in WPILib. However I do not have a ~/wpilib/2021 folder…

Bummer that my old beat up laptop may not simulate. Guess I need linux on a newer laptop. Dual booting is a pain, and VMs were running slow. And I’ld prefer not to run Windows. So close to not needing Windows anymore.

I use a Logitech F310 on my Linux laptop and it works out of the box


Building a project will download the artifacts for you so you can build successfully, but will not install the tools (eg Shuffleboard) or install the JDK (so you must have a system JDK installed). The installer is what creates the ~/wpilib/2021 directory.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.