Loading luabind Dynamic Library Into Lua

"carlsonp @iastate.edu" <[email protected]> Fri, 14 Jun 2013 11:08:36 -0500
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <CAF2_YTw=unWwO=nYO_i-chMWSNhWhCmA2mseA-Nxa3anO5oi1Q@mail.gmail.com>
--===============3009820148011195709==
Content-Type: multipart/alternative; boundary=047d7bd76be692ca7704df1f75da

--047d7bd76be692ca7704df1f75da
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I have luabind and a library that binds a C++ library using luabind both
built as dynamic libraries (.so files) under Linux.  Both are installed to
non-standard locations under my local account.  Because of this, I don't
think Lua will automatically pick it up because it's not in /usr/lib/, etc.

My question is, how do I load luabind into Lua?  How do I know that luabind
is loaded and running?  And lastly, once this is done, how can I load my
library that is bound into lua?

Here's what I've tried so far:

-Change directory to "lib" folder containing luabind.
-"ls" confirms the file is there: libluabind.so
-Start lua in this directory
-package.loadlib("libluabind.so", "luabind")
-Nothing happens, is it loaded?

I'm not quite sure what to try from here...

Thanks in advance.

-Patrick

--047d7bd76be692ca7704df1f75da
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div><div><div><div><div><div><div><div><div>Hello,<b=
r><br></div>I have luabind and a library that binds a C++ library using lua=
bind both built as dynamic libraries (.so files) under Linux.=A0 Both are i=
nstalled to non-standard locations under my local account.=A0 Because of th=
is, I don&#39;t think Lua will automatically pick it up because it&#39;s no=
t in /usr/lib/, etc.<br>
<br></div>My question is, how do I load luabind into Lua?=A0 How do I know =
that luabind is loaded and running?=A0 And lastly, once this is done, how c=
an I load my library that is bound into lua?<br><br></div>Here&#39;s what I=
&#39;ve tried so far:<br>
<br></div>-Change directory to &quot;lib&quot; folder containing luabind.<b=
r></div>-&quot;ls&quot; confirms the file is there: libluabind.so<br></div>=
-Start lua in this directory<br>-package.loadlib(&quot;libluabind.so&quot;,=
 &quot;luabind&quot;)<br>
</div>-Nothing happens, is it loaded?<br><br></div>I&#39;m not quite sure w=
hat to try from here...<br><br></div>Thanks in advance.<br><br></div>-Patri=
ck<br></div>

--047d7bd76be692ca7704df1f75da--


--===============3009820148011195709==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
--===============3009820148011195709==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user

--===============3009820148011195709==--