Setting up P4V and P4 CLI on Ubuntu 26.04 LTS
Last Updated: May 18, 2026Table of Contents
- Downloading and Running P4 CLI
- Downloading and Running P4V
- Installing Missing Dependencies for Ubuntu 26.04 LTS
Downloading and Running P4 CLI
Visit Helix Command-Line Client (P4) Downloads to download the p4 executable.
Add the excute permission to the executable and open P4 CLI:
$ chmod +x ./p4
$ ./p4
Downloading and Running P4V
Visit Helix Visual Client (P4V) Downloads to download the .tgz zip file.
Unzip the file and P4V should open by running:
$ ./p4v
Installing Missing Dependencies for Ubuntu 26.04 LTS
In newer releases of Ubuntu, such as Ubuntu 26.04 LTS, some dependencies required for P4V were removed. To fix this, we need to first install libopengl0.
$ sudo apt install libopengl0
Once libopengl0 is installed, we will see the following message if we try to open P4V:
> qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
> qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: xcb, vnc, offscreen, minimal, vkkhrdisplay.
> Aborted (core dumped)
To fix this, we can install the following packages:
$ sudo apt install libxcb-cursor0 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0
Now P4V should open properly by running:
$ ./p4v