[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?


On Tuesday, February 10th, 2026 at 22:40, Gianluigi <gradobag@xxxxxxxxxxx> wrote:

> Il 10/02/26 21:06, gbWilly ha scritto:
> > A lot of the questions you pose here Claus have my attention as well. I'm very curious to read answers to these questions as I do want to experiment with interfacing with some C libraries myself.
> >
> > Great stuff, this VLC API Vuott wrote. I'll be studying it for sure and see if I can play a bit with the concept.
> >
> > I somehow wish there would be some really simple C library that does really simple to understand stuff any noob can read and understand, and an gambas example application that interfaces with this really simple noob friendly C library. This would be for learning purpose only, doesn't have to have a real function, just do something, like print "Hello from the library" for example or do a calculation etc.
> >
> > Up to now I mostly used command line applications to interface the environment. Some of these command line applications use an underlying library where the real magic happens and I would rather interface with these directly, for the simple reason to know how to do it, how to maintain it and to help others achieve the same.
> >
> > If I get a grasp on it myself, I will write a Gambas Learning Guide on interfacing with C libraries, at least that is my goal.
> >
> > gbWilly
> >
> 
> Hi gbWilly,
> 
> As the wiki states:
> 
> There is a TEMPLATE directory in the sources that includes a script
> named make-component that can create a component skeleton directory from
> a configuration file.
> 
> The configuration file must be located in the TEMPLATE/conf sub-directory.
> 
> See the TEMPLATE/README file for more details (Written directly by Benoit).
> 
Hi Gianluigi,

I'm aware of this document by Tobias and have read it several times in the past, but not with the intention of creating a component.

Best for me is to start at the beginning, so doing some simple interfacing with a C library. Meanwhile I do like to read on this matter, both on interfacing and on making a component from such and interface. Albeit to form a better understanding on the matter.

gbWilly

GambOS
Gambas3 for Debian/Ubuntu

...there is always a Catch if things go wrong!