[Gambas-user] Working with .so library

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Jun 26 23:52:23 CEST 2019

For demos application directory is good option. For real projects, things
should be installed as root to the /usr/lib. For demos consisting of
multiple projects, I guess ~/SharedDemoLibrary or similar would be good. I
don't think there is standard to follow for that case.


On Thu, Jun 27, 2019 at 12:06 AM Cedron Dawg <cedron at exede.net> wrote:

> Thanks Jussi, I'm glad you like it.
> The RunSh.module has been evolving a bit so the version in the FFTW
> example is not quite as good as the one I attached.  If you would kindly
> incorporate your suggestions and attach it to the response, I will use it
> going forward and others can have it right away.  I was a bit lazy with it
> and if the .so doesn't exist it will be quietly compiled without a message
> saying it is being compiled.
> The other problem is the .so is in the application directory and I still
> haven't figured out the best way to include it with other projects.  I.e.
> should you just copy the .so file into the new project, should you copy it
> to /usr/lib or /usr/local/lib or some other alternative?  Suggestions
> welcome.
> Ced
> ----- Original Message -----
> From: "Jussi Lahtinen" <jussi.lahtinen at gmail.com>
> That is good way to share C library code. However, little thing.
> Instead of giving error messages like "MaybeCompileLibrary: compile.sh not
> found.", give them like this:
> "MaybeCompileLibrary: " & theShSpec & " not found."
> That way the user knows what exactly could not be found and from where. Or
> in case of open source program, even like this:
> System.Backtrace[0] & ": " & theShSpec & " not found."
> This way the user knows immediately the line in the source code what gives
> the error.
> Jussi
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190627/18f3b905/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RunSh.module.tar.gz
Type: application/gzip
Size: 852 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190627/18f3b905/attachment.gz>

More information about the User mailing list