Skip to content

Improve First Launch Experience On Ubuntu #6580

@AntonPalmqvist

Description

@AntonPalmqvist

Version: gaffer-1.6.0.0-linux-gcc11
Third-party tools: None
Third-party modules: None

Description

While I understand that writing software that works for all distributions of Linux is near impossible, I do think that we can collectively improve the error messaging and also the installation instructions for specific distributions, especially popular ones such as Ubuntu.

Steps to reproduce

  1. Launch Gaffer on a fresh install of Ubuntu 25.04 by following the instructions in the documentation.
  2. Observe error messages

Debug log

Click to Expand

ERROR : unable to find "/opt/solidangle/arnold-7.4.4.0/include/ai_version.h".
ERROR : unable to find "/opt/pixar/RenderManProServer-26.3/include/prmanapi.h".
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in "/opt/gaffer-1.6.0.0-linux-gcc11/qt/plugins"
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 "/opt/gaffer-1.6.0.0-linux-gcc11/qt/plugins" 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: vnc, xcb, offscreen, minimal, linuxfb.

Aborted (core dumped)

Despite the slew of errors, all that was needed was to run sudo apt install libxcb-cursor0 to install the missing package.

In my mind the two first errors about missing Arnold and RenderMan files should be warnings instead, as they're not required to run Gaffer.
The third line should also be a warning, as Wayland isn't required to run Gaffer either.
The fourth line was the most useful hint, as it included the package needed for Gaffer to run on Ubuntu. However, as mentioned above, only libxcb-cursor0 was needed and not xcb-cursor0

If desired, I could write up a PR with added info about the libxcb-cursor0 package, for Ubuntu users.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions