[Gambas-user] AppImage fails with GL

martin cristia tercoide at hotmail.com
Sat Jun 17 00:16:42 CEST 2023


Just trying to make an AppImage for a program that uses openGL. 
Following this guide:

https://appimage-builder.readthedocs.io/en/latest/examples/gambas3.html

and some fixes, came to this "recipe" that successfully create the 
AppImage file:

AppImageBuilder.yml

# appimage-builder recipe see https://appimage-builder.readthedocs.io 
for details
version: 1
script:
   - rm -rf AppDir || true
   - mkdir -p AppDir/usr/bin AppDir/usr/share/icons/hicolor/32x32/apps/
   - cp GambasCAD/gambascad.png AppDir/usr/share/icons/hicolor/32x32/apps/
   - cp GambasCAD/gambascad.gambas AppDir/usr/bin/gambascad.gambas
AppDir:
   path: ./AppDir
   app_info:
     id: org.appimagecrafters.appimage-demo-gambas3
     name: gambascad
     icon: gambascad
     version: latest
     exec: usr/bin/gbr3
     exec_args: $APPDIR/usr/bin/gambascad.gambas -- $@
   apt:
     arch: amd64
     allow_unauthenticated: true
     sources:
     - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic main 
restricted
     - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ 
bionic-updates main restricted
     - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic universe
     - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ 
bionic-updates universe
     - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ bionic 
multiverse
     - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ 
bionic-updates multiverse
     - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ 
bionic-backports main restricted
         universe multiverse
     - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security 
main restricted
     - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security 
universe
     - sourceline: deb http://security.ubuntu.com/ubuntu bionic-security 
multiverse
     - sourceline: deb http://archive.neon.kde.org/user bionic main
     - sourceline: deb 
http://ppa.launchpad.net/gambas-team/gambas3/ubuntu bionic main
     include:
     - gambas3-gb-desktop
     - gambas3-gb-qt5
     - gambas3-gb-qt5-ext
     - gambas3-gb-qt5-opengl
     - gambas3-gb-opengl
     - gambas3-gb-opengl-glu
     - gambas3-gb-opengl-glsl
     - gambas3-gb-form
     - gambas3-gb-form-stock
     - gambas3-gb-image
     - gambas3-gb-form-dialog
     - gambas3-runtime
     - gtk2-engines-pixbuf
     - libaudio2
     - libexpat1
     - libgcrypt20
     - libgtk2.0-0
     - liblz4-1
     - liblzma5
     - libpcre3
     - libsm6
     - libsystemd0
     - libxau6
     - libxdmcp6
     - libxext6
     - libxfixes-dev
     - libxinerama1
     - libxrender1
     - libxt6
     - libfontconfig1
     - libfreetype6
     - libGL.1
     exclude:
     - adwaita-icon-theme
     - adwaita-icon-theme-full
     - humanity-icon-theme
   files:
     exclude:
     - usr/share/man
     - usr/share/doc/*/README.*
     - usr/share/doc/*/changelog.*
     - usr/share/doc/*/NEWS.*
     - usr/share/doc/*/TODO.*
     - usr/include
   runtime:
     env:
       GB_PATH: $APPDIR/usr/bin/gbr3
   test:
     fedora:
       image: appimagecrafters/tests-env:fedora-30
       command: ./AppRun
       use_host_x: true
     debian:
       image: appimagecrafters/tests-env:debian-stable
       command: ./AppRun
       use_host_x: true
     arch:
       image: appimagecrafters/tests-env:archlinux-latest
       command: ./AppRun
       use_host_x: true
     centos:
       image: appimagecrafters/tests-env:centos-7
       command: ./AppRun
       use_host_x: true
     ubuntu:
       image: appimagecrafters/tests-env:ubuntu-xenial
       command: ./AppRun
       use_host_x: true
AppImage:
   arch: x86_64
   update-information: guess
   sign-key: None


It launches the main form, but fails to init the OpenGL context exiting 
with a "Null object" error when trying to change some glarea property.

did I forgot to add something to the recipe?

-- 
Saludos cordiales
Martin



More information about the User mailing list