Loading External Native Library (dll or .so)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
prmottajr
Prole
Posts: 7
Joined: Sun Jun 21, 2009 1:40 pm
Contact:

Loading External Native Library (dll or .so)

Post 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!
monkyyy
Citizen
Posts: 52
Joined: Fri Mar 16, 2012 5:29 pm

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

Post by monkyyy »

ummm i remember having the remove the file type from require when they updated to .8, try removing the dll or so
prmottajr
Prole
Posts: 7
Joined: Sun Jun 21, 2009 1:40 pm
Contact:

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

Post by prmottajr »

I haven't even include it. The require reads like this :

wiiuseL = require("wrapperL")

inside the load function.

any thoughts?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes »

You can't load from the same directory the main.lua is in.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

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

Post 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?
When I write def I mean function.
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

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

Post by Roland_Yonaba »

kikito wrote:What is the option, then? Putting the dlls/so in a subdirectory?
Even that wouldn't work, I tried.
User avatar
SiENcE
Party member
Posts: 792
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

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

Post by SiENcE »

Take a look at this project.

It uses a audioin.dll .

viewtopic.php?f=5&t=2076
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 24 guests