[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 Saturday, February 7th, 2026 at 06:10, Claus Dietrich <claus.dietrich@xxxxxxxxxx> wrote:

> Am 07.02.26 um 00:10 schrieb Benoît Minisini:
> > I suggest you try to do what you want, and that you show me the result
> > if you want my opinion.
> 
> I didn't raise this subject but like to offer the attached project for
> the discussion. It is simple and represents a media player based on the
> VLC library. Its functions are wrapped into a "VLCPlayer" - class and it
> can to things which I wasn't able to achieve with gb.media (i.e.
> watching IP-TV).
> 
> While working on it (with the great support of Vuott for the C API
> stuff) I started wondering, why we don't have a gb.vlc component and
> whether it would be feasible to make a Gambas component out of this
> project. Are Gambas means sufficient or does it need more than that? How
> to deal with changing versions of libraries? Can the component specify
> the VLC library as a dependency and would the VLC library be installed
> with the installation of a gb.vlc?
> 

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