Page 1 of 1

Loading External Native Library (dll or .so)

Posted: Mon May 28, 2012 11:36 pm
by prmottajr
I am trying to load an external .so via require but love 0.8.0 says it cannot find (Actually the lua within it) the .so although it has looked on the correct places and the file is in the same folder as the main.lua

I am trying to make wiiuseL (a wrapper that my students made in 2010 for the wiiuse lib, so that we can use the wiimote) to work again. Back in 2010 we have used love 0.5 and 0.6 and it worked fine, after that I got a little out of love and now I am using it as a reference for the Human-Computer Interaction course that I teach at a University here in Rio de Janeiro.

thanks in advance!

Re: Loading External Native Library (dll or .so)

Posted: Tue May 29, 2012 12:59 am
by monkyyy
ummm i remember having the remove the file type from require when they updated to .8, try removing the dll or so

Re: Loading External Native Library (dll or .so)

Posted: Tue May 29, 2012 3:18 am
by prmottajr
I haven't even include it. The require reads like this :

wiiuseL = require("wrapperL")

inside the load function.

any thoughts?

Re: Loading External Native Library (dll or .so)

Posted: Tue May 29, 2012 9:22 am
by bartbes
You can't load from the same directory the main.lua is in.

Re: Loading External Native Library (dll or .so)

Posted: Tue May 29, 2012 9:27 am
by kikito
bartbes wrote:You can't load from the same directory the main.lua is in.
What is the option, then? Putting the dlls/so in a subdirectory?

Re: Loading External Native Library (dll or .so)

Posted: Tue May 29, 2012 10:17 am
by Roland_Yonaba
kikito wrote:What is the option, then? Putting the dlls/so in a subdirectory?
Even that wouldn't work, I tried.

Re: Loading External Native Library (dll or .so)

Posted: Tue May 29, 2012 2:55 pm
by SiENcE
Take a look at this project.

It uses a audioin.dll .

viewtopic.php?f=5&t=2076