<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Il giorno mar 23 ott 2018 alle ore 15:04 T Lee Davidson <<a href="mailto:t.lee.davidson@gmail.com">t.lee.davidson@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 10/23/18 7:19 AM, Gianluigi wrote:<br>
> Hi Benoit,<br>
> have you tried the code in the 'Dynamic libraries' folder?<br>
> Have you noticed that to load the library as a component just indicate the path "/usr/lib/gambas3/<library name>:0" but also<br>
> "/foo/gambas3/<library name>:0" as indicated by Lee?<br>
> Have you noticed that you don't need to load the library with the IDE dialog but just insert the library in the project?<br>
> In fact it seems that if you load with the dialog then the code works less well (loading the combobox).<br>
> As you noticed if you use 'Component.Load(<library absolute path>)' the library will not load.<br>
> <br>
> Best regards<br>
> Gianluigi<br>
> <br>
<br>
To clarify for whomever it may concern...<br>
<br>
With the library located in the project folder, yes, I have loaded it by specifying a path (with or without full or partial<br>
<vendor> information) where it cannot be found, eg. "/<does-not-exist>/myLibrary".<br></blockquote><div><br></div><div>If I don't write the path like this: ".../gambas3/<library name>:0" I get an error.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
When the library is added via the Project > Properties > Library dialog and its exported module is also loaded dynamically as a<br>
class, it has an extra symbol, namely, just a dot, ".". This shows up in the ComboBox that is dynamically populated from the<br>
symbols of the exported module that was loaded as a class (by the TestMat project in Gianluigi's 'Dynamic libraries' archive<br>
attached in a previous message).</blockquote><div><br></div><div>Either you have that malfunction or you don't load the library with Component.Load and, if I'm not mistaken, you are unable to create an executable that works on another computer than yours. With the addition that you cannot automatically update the library.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I just noticed that when a library that has no vendor specified is compiled into an executable, the copy that is automatically<br>
installed is placed in "~/.local/share/gambas3/lib/(unknown)". I'm just curious if those parentheses are required because bash<br>
does not like them, "bash: syntax error near unexpected token `('"</blockquote><div><br></div><div>I didn't write the name of the vendor because with this method (Dynamic libraries) you don't need, you just need the library to be located in the same directory as the project that uses it, and, as already mentioned, it can be updated with another one library that has more functions</div><div><br></div><div>Regards</div><div>Gianluigi<br></div></div></div></div></div></div>