|
|
Re: wrapping static libraries: msg#00131
programming.swig
|
Subject: |
Re: wrapping static libraries |
since the object files weren't compiled with PIC i don't think this
will make a difference.
-SM-
On Sep 17, 2004, at 11:27 AM, Anton Deguet wrote:
A stupid though, on most Unix systems, can't you use "ar" to extract
all
the .o files of the static library and link them in a .so with the
_wrap.o file generated from the wrapping code?
Anton
On Fri, 2004-09-17 at 13:39, Marcelo Matus wrote:
Then probably you will need to link the static library against Perl,
and
make an especial Perl binary... well, that is at least what you have
to do with python, if you don't have the shared library and only the
static one.
Marcelo
Anton Deguet wrote:
I believe the question is different. The library is static and can
NOT
be recompiled since it is a third party one.
I would guess that one could generate the wrapping code with swig,
compile it and then link it against the existing static library,
forming
a fairly large library containing the static one.
Anton
On Fri, 2004-09-17 at 12:58, Marcelo Matus wrote:
read the ICC compiler, and look for the -fpic, -fPIC or -kPIC
option.
to build a shared library, you need to add the PIC flag.
marcelo
Scott Murman wrote:
i'm trying to wrap a 3rd-party static library on an IA64 system.
the
intel compilers are complaining that the static library is not
compiled with PIC, so that i can't build a shared library that perl
can load at runtime. is this a general limitation, or something
more
specific to these compilers? are there possible solutions?
-SM-
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig
--
Anton Deguet Systems Engineer
ERC CISST Johns Hopkins University
http://cisstweb.cs.jhu.edu 410 516 5261
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig
|
|