准备将 BouffaloLabDevCube 打包到 AUR 仓库,本地运行测试发现异常错误,PKGBUILD 和日志如下
PKGBUILD
# Contributor: taotieren <admin@taotieren.com>
pkgname=bouffalolab-devcude-bin
pkgver=1.6.7
pkgrel=1
pkgdesc="Dev Cube是博流提供的芯片集成开发工具,包含IOT程序下载、MCU程序下载和RF性能测试三大功能。工具提供程序固件启动时的时钟,电源,Flash参数等配置,并可根据用户需求对程序进行加密和签名,生成应用程序启动信息文件。工具还可烧写用户资源文件,分区表文件以及 EFUSE配置文件等。工具可对Flash进行擦、改、写"
arch=('x86_64')
url="https://dev.bouffalolab.com/download"
license=('custom')
provides=("Bouffalo-Lab-Dev-Cube")
conflicts=()
#replaces=(${pkgname})
depends=('libusb' 'libftdi' 'hidapi')
makedepends=('libarchive')
backup=()
options=('!strip')
#install=${pkgname}.install
source=("${pkgname%-bin}-${pkgver}.tar.gz::https://dev.bouffalolab.com/media/upload/download/BouffaloLabDevCube-${pkgver}-linux-x86.tar_iJUPOFW.gz")
sha256sums=('b554ee99ef9afceb01ce526628e3f625142fc608091b3a52b6b11e0f59553208')
noextract=(${pkgname%-bin}-${pkgver}.tar.gz)
package() {
export LC_CTYPE="zh_CN.UTF-8"
install -dm0755 "${pkgdir}/opt/bouffalolab/${pkgname%-bin}/"
bsdtar xf "${srcdir}/${pkgname%-bin}-${pkgver}.tar.gz" -C "${pkgdir}/opt/bouffalolab/${pkgname%-bin}"
# desktop entry
install -Dm0644 /dev/stdin ${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop <<EOF
[Desktop Entry]
Name=${pkgname%-bin}
Name[zh_CN]=${pkgname%-bin}
Comment=${pkgdesc}
#MimeType=application/x-${pkgname%-bin};
Exec=${pkgname%-bin} %f
Type=Application
Categories=Development;Tool;
Terminal=false
Icon=${pkgname%-bin}.png
Version=1.0
EOF
# soft link
install -dm0755 ${pkgdir}/usr/bin
ln -s /opt/bouffalolab/${pkgname%-bin}/BLDevCube ${pkgdir}/usr/bin/${pkgname%-bin}
chmod 0755 ${pkgdir}/opt/bouffalolab/${pkgname%-bin}/BLDevCube
}
错误日志
opt/bouffalolab/bouffalolab-devcude on master [?]
❯ ./BLDevCube
/usr/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_name
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:08.245: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
Gtk-Message: 14:52:08.280: Failed to load module "colorreload-gtk-module"
Gtk-Message: 14:52:08.280: Failed to load module "window-decorations-gtk-module"
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/48-spacing.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.539: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.539: Could not load a pixbuf from /org/gtk/libgtk/icons/22x22/actions/gtk-cancel.png.
This may indicate that pixbuf loaders or the mime database could not be found.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.539: Error loading theme icon 'gtk-cancel' for stock: Failed to load /org/gtk/libgtk/icons/22x22/actions/gtk-cancel.png: 无法识别的图像文件格式
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.539: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.539: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式
(BLDevCube:214006): Gdk-CRITICAL **: 14:52:10.539: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(BLDevCube:214006): GLib-GObject-CRITICAL **: 14:52:10.539: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.544: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.544: Error loading theme icon 'gtk-cancel' for stock: Failed to load /org/gtk/libgtk/icons/22x22/actions/gtk-cancel.png: 无法识别的图像文件格式
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.544: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.544: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式
(BLDevCube:214006): Gdk-CRITICAL **: 14:52:10.544: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(BLDevCube:214006): GLib-GObject-CRITICAL **: 14:52:10.544: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.594: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.594: Error loading theme icon 'gtk-cancel' for stock: Failed to load /org/gtk/libgtk/icons/22x22/actions/gtk-cancel.png: 无法识别的图像文件格式
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.595: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.595: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式
(BLDevCube:214006): Gdk-CRITICAL **: 14:52:10.595: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(BLDevCube:214006): GLib-GObject-CRITICAL **: 14:52:10.595: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.595: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.595: Error loading theme icon 'gtk-cancel' for stock: Failed to load /org/gtk/libgtk/icons/22x22/actions/gtk-cancel.png: 无法识别的图像文件格式
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.595: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.595: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式
(BLDevCube:214006): Gdk-CRITICAL **: 14:52:10.595: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(BLDevCube:214006): GLib-GObject-CRITICAL **: 14:52:10.595: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.787: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.787: Error loading theme icon 'gtk-cancel' for stock: Failed to load /org/gtk/libgtk/icons/22x22/actions/gtk-cancel.png: 无法识别的图像文件格式
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.787: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.787: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式
(BLDevCube:214006): Gdk-CRITICAL **: 14:52:10.787: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(BLDevCube:214006): GLib-GObject-CRITICAL **: 14:52:10.787: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.787: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.787: Error loading theme icon 'gtk-cancel' for stock: Failed to load /org/gtk/libgtk/icons/22x22/actions/gtk-cancel.png: 无法识别的图像文件格式
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.787: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): Gtk-WARNING **: 14:52:10.787: Error loading theme icon 'image-missing' for stock: Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式
(BLDevCube:214006): Gdk-CRITICAL **: 14:52:10.787: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(BLDevCube:214006): GLib-GObject-CRITICAL **: 14:52:10.787: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:10.788: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.110: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.111: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.112: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.113: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.114: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.115: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.115: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.116: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.116: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.117: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.152: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.171: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.199: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
(BLDevCube:214006): GdkPixbuf-WARNING **: 14:52:17.199: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory
This likely means that your installation is broken.
Try running the command
gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /org/gtk/libgtk/icons/16x16/status/image-missing.png: 无法识别的图像文件格式 (gdk-pixbuf-error-quark, 3)
[1] 213999 IOT instruction (core dumped) ./BLDevCube