[Paraview] ParaView 3.8.0 RC2: Build error on OS-X in PluginMain.cxx
Eric Nodwell
enodwell at ucalgary.ca
Tue May 4 12:51:41 EDT 2010
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
More information about the ParaView
mailing list