[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to embed command line tools in a Gambas app for AppImages ?
[Thread Prev] | [Thread Next]
- Subject: Re: How to embed command line tools in a Gambas app for AppImages ?
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Mon, 8 Jul 2024 21:24:07 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 08/07/2024 à 20:13, Claus Dietrich a écrit :
Am 06.07.24 um 15:30 schrieb Benoît Minisini:Can you try make the AppImage with the latest commit? I added inned '/bin' and '/usr/bin' to the PATH inside 'appimage-builder' configuration file.Tell me if now it can run a 'ffmpeg' (or any other command-line program) bundled with the AppImage.If you want to do some tests by yourself, the appimage-builder configuration file template is located in the 'install/AppImageBuilder.yml' file of the IDE source code.Here are my test results: 1. Shell Command to use Resources embedded in the AppImageFirst I verified that whether the updated master included the new entries in the yml recipe template ... they were there.Then I tried to load my ffmpeg app by starting the IDE as source code of the up-to-date master. I got an error message "Unknown symbol 'Exist' in class 'Components'" - strange.Then I used an installed up-to-date Master and generated an AppImage with ffmpeg as added dependency. This doubled the size of the AppImage from ~41MB to ~91MB. Then I started the AppImage in the console on a VM with the same operating system but where no ffmpeg was installed. The debug output in the console showed:Recording process error: /bin/sh: 1: ffmpeg: not foundSince the same AppImage worked on the VM where ffmpeg was installed, it tells me that AppImage still uses the platform resources instead of its inner ones. By the way: The inclusion of this environmental parameter (if it works at all) should be optional and not mandatory.
I have just tested this simple project on a Ubuntu Mint 21 VM without 'ffmpeg' installed:
Public Sub Main() Exec ["ffmpeg"] Wait Shell "ffmpeg" Wait End Sub I created an AppImage from it, adding 'ffmpeg' as extra-dependencies. Then I run the resulting AppImage on the same system. - 'Exec' runs the embedded ffmpeg as expected. - 'Shell' fails to run the embedded ffmpeg, it does not find it. Regards, -- Benoît Minisini.
Re: How to embed command line tools in a Gambas app for AppImages ? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: How to embed command line tools in a Gambas app for AppImages ? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: How to embed command line tools in a Gambas app for AppImages ? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
Re: How to embed command line tools in a Gambas app for AppImages ? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: How to embed command line tools in a Gambas app for AppImages ? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |