AppImageCommunity / pkg2appimage

Tool and recipes to convert existing deb packages to AppImage
http://appimage.org
MIT License
697 stars 216 forks source link

KDE game KBounce #242

Open th108 opened 7 years ago

th108 commented 7 years ago

Hi,

is there working solution to package KDE games to appimage? I tried many combinations (xenial, jessie, wheezy) (bintray,union) but no luck. For example: KBounce (https://www.kde.org/applications/games/kbounce/)

app: KBounce
union: true

ingredients:
  package: kbounce
  dist: wheezy
  sources:
    - deb http://ftp.de.debian.org/debian/ wheezy main contrib

It launches but crashes if pressed start.

ERROR: ld.so: object '/home/user/Public/KBounce.AppDir/libunionpreload.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[0xb968a8] main services discovery error: no suitable services discovery module
kbounce(1172) KXMLGUIClient::loadStandardsXmlFile: ui/ui_standards.rc not found in ("/home/user/.kde/share/config/", "/etc/kde4/", "/usr/share/kde4/config/") 
kbounce(1172) KXMLGUIClient::setXMLFile: cannot find .rc file "kbounceui.rc" for component "kbounce" 
kbounce(1172)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Segmentation fault (core dumped)
probonopd commented 7 years ago

Have you tried binpatch: true instead of union: true yet?

th108 commented 7 years ago

Tried now but it's not working. /bin/bash: symbol lookup error: /lib/x86_64-linux-gnu/libncurses.so.5: undefined symbol: _nc_putchar

probonopd commented 7 years ago

looks better... try trusty please.

th108 commented 7 years ago

Works with trusty and union. Thank You for your time. Recipe:

app: KBounce
union: true

ingredients:
  package: kbounce
  dist: trusty
  sources: 
   - deb http://de.archive.ubuntu.com/ubuntu/ trusty main universe
probonopd commented 7 years ago

How large is it? AppImages done in this way are not optimized for size, since all of Qt and many KDE libs are bundled; more than is actually needed for just this app. So if you want to publish this officially, let me know and I'll have a look at using linuxdeployqt.

th108 commented 7 years ago

43M KBounce-x86_64.AppImage doesn't matter size for me, I just dont like installing bunch of KDE libs on GTK system. There's just one problem, menu bar is not showing all properties, it just shows "No Text" as button.

probonopd commented 7 years ago

Can you attach a screenshot please?

th108 commented 7 years ago

virtualbox_arch_05_06_2017_17_23_46_1

probonopd commented 7 years ago

Now that is strange, never seen that. Do you get any error messages when running the AppImage from the command line?

th108 commented 7 years ago
zenity, kdialog, Xdialog missing. Skipping /home/user/Public/KBounce.AppDir/usr/bin/kbounce.wrapper.
kbounce(1926)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!
kbounce(1926) KXMLGUIClient::loadStandardsXmlFile: ui/ui_standards.rc not found in ("/home/user/.kde/share/config/", "/etc/kde4/", "/usr/share/kde4/config/") 
kbounce(1926): Couldn't start knotify from knotify4.desktop:  "KLauncher could not be reached via D-Bus. Error when calling start_service_by_desktop_path: The name org.kde.klauncher was not provided by any .service files" 
kbounce(1926)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "The name org.kde.knotify was not provided by any .service files" 
kbounce(1926)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
kbounce(1926)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
probonopd commented 7 years ago

Not entirely sure, but this looks unrelated to me. @ScarlettGatelyClark, have you ever seem something like this?

th108 commented 7 years ago

Don't know if it has something to do with that but to run game I removed -caption %c from kbounce.desktop and symlinked kbounce binary (from /usr/games/ to /usr/bin) otherwise it would not start.

full line from kbounce.desktop: Exec=kbounce.wrapper -caption %c