Wrapping up an existing shared library

View: New views
2 Messages — Rating Filter:   Alert me  

Wrapping up an existing shared library

by Ed Greenberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'd like to wrap up libmtp.so on linux in order to write perl scripts
for it. I read a lot about building the module as part of building the
swig wrapper.  Is this necessary? Is there a way to wrap an existing
shared library? The library and the header file are both installed in
the usual places (/usr/lib and /usr/include).

Any pointer on what to read will be appreciated.

Thanks,
</edg>
Ed Greenberg


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

Re: Wrapping up an existing shared library

by Josh Cherry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Mon, 12 May 2008, Ed Greenberg wrote:

> I'd like to wrap up libmtp.so on linux in order to write perl scripts
> for it. I read a lot about building the module as part of building the
> swig wrapper.  Is this necessary? Is there a way to wrap an existing
> shared library? The library and the header file are both installed in
> the usual places (/usr/lib and /usr/include).

Sure it's possible.  I mainly use SWIG to wrap libraries that have been
built separately.

> Any pointer on what to read will be appreciated.

I'm not sure what the question is.  Just make an appropriate interface
file and be sure to link against the releant libraries.

Josh


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user