|
Post by nortorn on Nov 20, 2021 10:36:59 GMT
Hi everybody.
Is there any way to allow dynamic libraries?
Perhaps via a toggle in a future release with a definitive warning what the consequences may be if activated?
Like, work with the current built in lua installation if option is not checked and work with a second lua installation which was compiled with the flag/cflag that allows dynamic libraries if the option is checked.
Maybe even let the user choose to use a self compiled lua installation in a folder that has to be specified by the user.
I totally understand the decision why dynamic libraries are not implemented in the first place, but having the freedom to choose if you want to allow it yourself would unlock a whole lot of extra potential for this app.
Thanks for considering my suggestion.
|
|
|
Post by AnkuLua on Nov 21, 2021 0:09:11 GMT
It's doable with if and dofile.
if (dynamic) then dialogInit()
addCheckBox("useDynamic", "Warning: you will use your own library", false)
dialogShowFullScreen("Warning: Dynamic Library") if (useDynamic) then dofile("custom.lua") end end
|
|
|
Post by nortorn on Nov 21, 2021 20:44:53 GMT
Thanks, but i meant dynamic libraries in the .so file format. I know its for security reasons it is not possible for now, but for advanced users and precautions i mentioned above, it should be doable. I tried to load a .so library but got the following error: Basically i just played around a bit on my Windows machine with socket http and its capabilities, but its not possible to get it working in ankulua. There are many very useful libraries out there which cannot be used and i think it would benefit in many ways to at least have the option to use these libraries. I know about the httpPost and Get functions, but i can't use them to achieve what im trying to do.
|
|
|
Post by AnkuLua on Nov 21, 2021 22:53:47 GMT
Sorry. It's not supported.
|
|