[Paraview] ParaView 3.8.0 RC2: Build error on OS-X in PluginMain.cxx

Dave Partyka dave.partyka at kitware.com
Tue May 4 14:13:48 EDT 2010


Thanks Eric, I'll fix this now.

On Tue, May 4, 2010 at 12:51 PM, Eric Nodwell <enodwell at ucalgary.ca> wrote:

> When building ParaView 3.8.0 RC2 on OS-X, I run into the following:
>
> /Users/eric/source/ParaView-3.8.0-RC2/Plugins/VisTrails/PluginMain.cxx: In
> member function ‘void PluginMain::Startup()’:
> /Users/eric/source/ParaView-3.8.0-RC2/Plugins/VisTrails/PluginMain.cxx:170:
> error: redeclaration of ‘const char* path’
> /Users/eric/source/ParaView-3.8.0-RC2/Plugins/VisTrails/PluginMain.cxx:143:
> error: ‘const char* path’ previously declared here
> /Users/eric/source/ParaView-3.8.0-RC2/Plugins/VisTrails/PluginMain.cxx:171:
> error: redeclaration of ‘vtksys::String appDir’
> /Users/eric/source/ParaView-3.8.0-RC2/Plugins/VisTrails/PluginMain.cxx:144:
> error: ‘vtksys::String appDir’ previously declared here
>
> Note that this is a somewhat non-standard build of ParaView, as I am trying
> to build as both 32 bit and 64 bit against Qt 4.6.2 using Cocoa.
>
> The solution appears to be fairly simple, as the redeclarations are in fact
> redundant and can be commented out.  Here's the diff:
>
> 170,171c170,171
> <         const char* path =
> vtkProcessModule::GetProcessModule()->GetOptions()->GetApplicationPath();
> <         vtksys::String appDir =
> vtksys::SystemTools::GetProgramPath(path);
> ---
> >         // const char* path =
> vtkProcessModule::GetProcessModule()->GetOptions()->GetApplicationPath();
> >         // vtksys::String appDir =
> vtksys::SystemTools::GetProgramPath(path);
>
> Eric
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100504/efc21373/attachment.htm>


More information about the ParaView mailing list