[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is it possible/acceptable to create a component in Gambas that depends on a shared library?
[Thread Prev] | [Thread Next]
- Subject: Is it possible/acceptable to create a component in Gambas that depends on a shared library?
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Fri, 6 Feb 2026 15:16:19 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
The recent thread on reading barcodes prompted me to revisit this idea.A while back I wrote a project that used "droidcam" and "zbarcam" to read barcodes using a smartphone. It works adequately, but managing each external process to make the user experience less cumbersome is more cumbersome in the code.
It would be nice to be able to manage the reader directly from Gambas. But, it is even acceptable to create a component in Gambas that depends on a shared library?
I see that gb.scanner relies on `scanimage`, but that is a command-line tool the existence of which is easily tested with System.Exist(). Also, I see that gb.openssl relies on the "openssl" library but that component is written in C and appears to statically link with the library.
Is there a "proper" way to do what I am asking including relatively easily testing for the existence of the shared library to raise an error if it does not exist? Or is creating a component in Gambas that relies on a shared library (perhaps highly) discouraged if not prohibited?
-- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| Re: Is it possible/acceptable to create a component in Gambas that depends on a shared library? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: Is it possible/acceptable to create a component in Gambas that depends on a shared library? | Claus Dietrich <claus.dietrich@xxxxxxxxxx> |
| Re: Is it possible/acceptable to create a component in Gambas that depends on a shared library? | Charlie Reinl <Karl.Reinl@xxxxxxxxxx> |