[vtk-developers] vtkCommonCorePython static build failure

David Lonie david.lonie at kitware.com
Thu Jun 28 10:23:27 EDT 2012


On Thu, Jun 28, 2012 at 10:01 AM, David Gobbi <david.gobbi at gmail.com> wrote:
> On Thu, Jun 28, 2012 at 7:57 AM, David Lonie <david.lonie at kitware.com> wrote:
>> Ah, ok -- nevermind then :-)
>
> It never hurts to try, though... you can add "-fPIC" to your CXXFLAGS and
> rebuild VTK, and then if the modules are loaded into python in the right order
> it just might work... I think that vtk-python still loads its modules with
> RTLD_GLOBAL so it might be able to resolve symbols directly between the
> python modules instead of requiring shared libraries.

Success! Adding -fPIC to CFLAGS and CXXFLAGS is all that was needed
for it to build.

Thanks again,
Dave



More information about the vtk-developers mailing list