Guppy Posted August 27, 2014 Share Posted August 27, 2014 I get "Lua Error: error loading module 'plugin/libLua-test' from file './plugin/libLua-test.so':|dynamic libraries not enabled; check your Lua installation" When I try to load my own library. This thread http://www.leadwerks.com/werkspace/topic/10566-require/page__hl__require suggests that turning off sandbox will do the trick - I've tried it both in the LE editor and in c++ neither makes any difference. Since he made it work I'm thinking this could be the linux version having different lua permissions? Or is removing the sandbox check mark and doing Interpreter::sandboxmode=false; in App::Start() before loading the map not enough to turn off sandbox? Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Guppy Posted August 27, 2014 Author Share Posted August 27, 2014 Anyone with linux can download the very exciting plugin here; https://drive.google.com/file/d/0B7B0hlkpWcYWVmhkOEtaTFJ5bzA/edit?usp=sharing I put it in a subfolder named "plugin" but you can stick it anywhere - just adjust the path acordingly require("plugin/libLua-test") it exposes the functions "sayHi" and addTwo(....); System:Print(test.sayHi()) System:Print(test.addTwo(1,2,3,4)) _ This http://lua-users.org/lists/lua-l/2014-05/msg00267.html Seems to suggest that there is a missing define in the linux build 1 Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Josh Posted August 27, 2014 Share Posted August 27, 2014 Did you disable the sandboxing option in the editor options? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Guppy Posted August 27, 2014 Author Share Posted August 27, 2014 Did you disable the sandboxing option in the editor options? That was the sandbox checkmark I was refering to yes Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Guppy Posted August 31, 2014 Author Share Posted August 31, 2014 Any other ideas? Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Guppy Posted September 2, 2014 Author Share Posted September 2, 2014 Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.