[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible/acceptable to create a component in Gambas that depends on a shared library?
[Thread Prev] | [Thread Next]
- Subject: Re: Is it possible/acceptable to create a component in Gambas that depends on a shared library?
- From: Charlie Reinl <Karl.Reinl@xxxxxxxxxx>
- Reply-to: Karl.Reinl@xxxxxxxxxx
- Date: Fri, 06 Feb 2026 21:51:18 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Am Freitag, dem 06.02.2026 um 15:16 -0500 schrieb Lee: > 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? > > Salut Lee, which scanimage returns /usr/bin/scanimage else nothing -- Amicalement Charlie
| Is it possible/acceptable to create a component in Gambas that depends on a shared library? | Lee <t.lee.davidson@xxxxxxxxx> |