Hello snapcrafters.
Now I have such an error with which I can not figure it out, on computers where proprietary AMD drivers are installed, it is not possible to start the application if it is written in QML.
I do not compile the application during the build snap package, I use a ready-made binary and the correct version of the library.
Here is the error log.
/usr/share/libdrm/amdgpu.ids: No such file or directory
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
/usr/share/libdrm/amdgpu.ids: No such file or directory
mesa: for the -simplifycfg-sink-common option: may only occur zero or one times!
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: radeonsi
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
QSoundEffect(pulseaudio): Error decoding source
QSoundEffect(pulseaudio): Error decoding source
Buffer creation failed
Buffer creation failed
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(qt_Matrix): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
QOpenGLShaderProgram::uniformLocation(textureScale): shader program is not linked
QOpenGLShaderProgram::uniformLocation(color): shader program is not linked
QOpenGLShaderProgram::uniformLocation(alphaMin): shader program is not linked
QOpenGLShaderProgram::uniformLocation(alphaMax): shader program is not linked
QOpenGLShaderProgram::uniformLocation(fontScale): shader program is not linked
QOpenGLShaderProgram::uniformLocation(vecDelta): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
QOpenGLShaderProgram::uniformLocation(textureScale): shader program is not linked
QOpenGLShaderProgram::uniformLocation(color): shader program is not linked
QOpenGLShaderProgram::uniformLocation(alphaMin): shader program is not linked
QOpenGLShaderProgram::uniformLocation(alphaMax): shader program is not linked
QOpenGLShaderProgram::uniformLocation(fontScale): shader program is not linked
QOpenGLShaderProgram::uniformLocation(vecDelta): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
I use
snapcraft 3.0.1
snap 2.36.3
snapd 2.36.3
series 16
ubuntu 18.04
kernel 4.15.0-43-generic
Here is yaml
name: managetime
version: “0.1.0”
summary: timer
description: |
Application for time management
confinement: strict
grade: stable
architectures: [amd64]
base: core18
icon: snap/gui/managetime.png
apps:
managetime:
desktop: share/applications/managetime.desktop
command: bin/projecttimer
plugs:
- home
- unity7
- x11
- opengl
- pulseaudio
- wayland
- network
- desktop
- desktop-legacy
environment:
XDG_RUNTIME_DIR: /run/user/1000
__EGL_VENDOR_LIBRARY_DIRS: $SNAP/etc/glvnd/egl_vendor.d:$SNAP/usr/share/glvnd/egl_vendor.d
# XKB config
XKB_CONFIG_ROOT: $SNAP/usr/share/X11/xkb
# Qt Platform to Wayland
#QT_QPA_PLATFORM: wayland
QT_QPA_PLATFORM: xcb
QTCHOOSER_NO_GLOBAL_DIR: 1
QT_SELECT: snappy-qt5
# Qt Modules
LD_LIBRARY_PATH: $SNAP/Qt/5.11.0/gcc_64/lib:$LD_LIBRARY_PATH
QT_PLUGIN_PATH: $SNAP/Qt/5.11.0/gcc_64/plugins
QML2_IMPORT_PATH: $QML2_IMPORT_PATH:$SNAP/Qt/5.11.0/gcc_64/qml
QT_QPA_PLATFORM_PLUGIN_PATH: $SNAP/Qt/5.11.0/gcc_64/plugins/platforms
# XDG Config
XDG_CONFIG_DIRS: $SNAP/etc/xdg:$SNAP/usr/xdg:$XDG_CONFIG_DIRS
XDG_DATA_DIRS: $SNAP/usr/share:$XDG_DATA_DIRS
# Font Config and themes
FONTCONFIG_PATH: $SNAP/etc/fonts/conf.d
FONTCONFIG_FILE: $SNAP/etc/fonts/fonts.conf
# Tell libGL where to find the drivers
LIBGL_DRIVERS_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri
parts:
managetime:
plugin: dump
source: scripts
source-type: local
build-attributes:
- keep-execstack
integration:
plugin: nil
stage-packages:
- libc6
- zlib1g
- libstdc++6
- libgcc1
- libglib2.0-0
- libpcre3
- libxext6
- libx11-6
- libxcb1
- libxau6
- libxdmcp6
- libbsd0
- libxdamage1
- libxfixes3
- libx11-xcb1
- libxcb-glx0
- libxcb-dri3-0
- libxcb-present0
- libxcb-dri2-0
- libxxf86vm1
- libxshmfence1
- libxcb-sync1
- libpulse-mainloop-glib0
- libpulse0
- libsystemd0
- liblzma5
- liblz4-1
- libgcrypt20
- libgpg-error0
- libwrap0
- libsndfile1
- libflac8
- libogg0
- libvorbis0a
- libvorbisenc2
- libasyncns0
- libdbus-1-3
- libfontconfig1
- libfreetype6
- libpng16-16
- libexpat1
- libxi6
- libxrender1
- libdrm2
- libwayland-client0
- libwayland-cursor0
- libffi6
- libxkbcommon0
- libxcomposite1
- libgl1
- libgl1-mesa-dri
- libgl1-mesa-glx
- libdrm-common
- libtinfo5
Please, if anyone knows how to solve the problem, then show it based on my yaml.
More than a month spent on it and no one can give good advice how to fix it((((
Thx.