Hello,
I have managed to package a Qt based application somewhat successfully but it seems it won’t start on my laptop with Nvidia driver.
I have tried on live Ubuntu usb and it starts, aswell on another AMD-based laptop.
You can see the errors from the log:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
failed to acquire GL context to resolve capabilities, using defaults…
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
Aborted
I tried adding the path mentioned in the helpers, from snappy playpen:
# Workaround in snapd for proprietary nVidia drivers mounts the drivers in
# /var/lib/snapd/lib/gl that needs to be in LD_LIBRARY_PATH
# Without that OpenGL using apps do not work with the nVidia drivers.
# Ref.: Bug #1588192 “GL interfaces seem wedged for Krita on nvidia” : Bugs : Snappy
append_dir LD_LIBRARY_PATH /var/lib/snapd/lib/gl
I am using Nvidia driver 430.09.
Distribution: KDE Neon 5.16 which is based off Ubuntu 18.04
Arch: AMD64.
At this moment I would like to avoid uninstalling/reinstalling drivers but I integrated your code into my startup script so maybe will see it in the future. I have a lot of work to do and want to avoid breaking my system .
Thanks a lot though, your input is very much appreciated.