[vtk-developers] Modularised VTK: MPI issue.
Andrew Maclean
andrew.amaclean at gmail.com
Wed Apr 11 21:29:47 EDT 2012
But not for me!
There are two errors in Windows but not Linux or Mac OSX 10.7.3
It seems that VS2010 doesn't like line 90 in TestSystemInformation.cxx:
std::string fname = build_dir + *f;
Error 5 error C2784: 'std::reverse_iterator<_RanIt> std::operator
+(_Diff,const std::reverse_iterator<_RanIt> &)' : could not deduce template
argument for 'const std::reverse_iterator<_RanIt> &' from 'const char *'
C:\Users\amaclean\Code\Kitware\src\VTK\Common\Core\Testing\Cxx\TestSystemInformation.cxx
90
I can't see anything wrong with line 90!
Intellisense says: IntelliSense: no operator "+" matches these operands
I even replaced the variable files with a vector of strings and the for
loop with a std::vector< std::string > >:: const_iterator.
What does work is this:
//--------------------------------
for(const char** f = files; *f; ++f)
{
std::string fname = argv[1];
fname += "/";
fname += *f;
vtkSystemInformationPrintFile(fname.c_str(), cout);
}
//--------------------------------
If this is acceptable you can safely delete lines 73 and 74.
Don't ask me why this works! If anybody knows please tell me.
The second issue is a linking errors in:
VTK\Rendering\HybridOpenGL relating to:
vtkSurfaceLICDefaultPainter
vtkSurfaceLICPainter
vtkSurfaceLICPainterPython.obj
vtkSurfaceLICDefaultPainterTcl.obj
vtkSurfaceLICPainter
Regards
Andrew
On Thu, Apr 12, 2012 at 7:30 AM, Cory Quammen <cquammen at cs.unc.edu> wrote:
> Marcus,
>
> Your patch seems to have fixed both issues for me.
>
> Thanks,
> Cory
>
> On Wed, Apr 11, 2012 at 5:19 PM, Marcus D. Hanwell
> <marcus.hanwell at kitware.com> wrote:
> > I do not see that error with BUILD_TESTING off, but that code does
> > need to be factored properly, and I can see why that macro might not
> > be available - I will work on a patch.
> >
> > Marcus
> >
> > On Wed, Apr 11, 2012 at 4:39 PM, Cory Quammen <cquammen at cs.unc.edu>
> wrote:
> >> To follow up, if I disable BUILD_TESTING but keep VTK_Group_Imaging
> >> enabled, I get this error:
> >>
> >> CMake Error at Filters/Parallel/CMakeLists.txt:58 (vtk_add_override):
> >> Unknown CMake command "vtk_add_override".
> >>
> >> Cory
> >>
> >> On Wed, Apr 11, 2012 at 4:38 PM, Marcus D. Hanwell
> >> <marcus.hanwell at kitware.com> wrote:
> >>> That is correct, although I don't think it is the issue here. I would
> >>> like to add the inverse soon, where the tests will only be enabled if
> >>> their dependencies are satisfied. We do hope to get the tests into
> >>> better locations where fewer additional dependencies are required too.
> >>>
> >>> Marcus
> >>>
> >>> On Wed, Apr 11, 2012 at 4:30 PM, Pat Marion <pat.marion at kitware.com>
> wrote:
> >>>> Not sure if this is relevant, but I've noticed that when
> BUILD_TESTING is
> >>>> enabled, which is the default, the testing code of enabled modules
> has the
> >>>> ability to request modules that otherwise would be OFF.
> >>>>
> >>>> Pat
> >>>>
> >>>>
> >>>> On Wed, Apr 11, 2012 at 3:37 PM, Cory Quammen <cquammen at cs.unc.edu>
> wrote:
> >>>>>
> >>>>> For me, using the default settings in CMake with a clean build
> >>>>> directory compiles just fine.
> >>>>>
> >>>>> When I then enable VTK_Group_Imaging, CMake starts looking for MPI.
> >>>>>
> >>>>> I'm using commit cfb0881e8468e4219a3bb6386cffe3a5037a9c65.
> >>>>>
> >>>>> Cory
> >>>>>
> >>>>> On Wed, Apr 11, 2012 at 3:24 PM, Marcus D. Hanwell
> >>>>> <marcus.hanwell at kitware.com> wrote:
> >>>>> > What other groups do you have enabled? I think Rendering and
> >>>>> > StandAlone are pretty clear, but it looks like some of the other
> >>>>> > groups may not be. One of the issues we are having is that groups
> have
> >>>>> > members, without conditional memberships.
> >>>>> >
> >>>>> > In addition to the Rendering group, do we want a ParallelRendering
> >>>>> > group for example, or just leave out those components (as I have
> for
> >>>>> > now). We don't want MPI bringing in all of rendering either. The
> >>>>> > groups are certainly a work in progress, we are open to suggestions
> >>>>> > (and would like to keep the list reasonably short so as not to
> >>>>> > duplicate all the possibilities of just selecting modules for
> >>>>> > example).
> >>>>> >
> >>>>> > Marcus
> >>>>> >
> >>>>> > On Tue, Apr 10, 2012 at 7:41 PM, Andrew Maclean
> >>>>> > <andrew.amaclean at gmail.com> wrote:
> >>>>> >> Hi Marcus,
> >>>>> >> I think there is a dependency issue:
> >>>>> >> I have VTK_Group_MPI deselected and it looks as if CMake is still
> >>>>> >> looking
> >>>>> >> for MPI:
> >>>>> >>
> >>>>> >> Could NOT find MPI_C (missing: MPI_C_LIBRARIES MPI_C_INCLUDE_PATH)
> >>>>> >>
> >>>>> >> Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES
> >>>>> >> MPI_CXX_INCLUDE_PATH)
> >>>>> >>
> >>>>> >> Could NOT find MPI_C (missing: MPI_C_LIBRARIES MPI_C_INCLUDE_PATH)
> >>>>> >>
> >>>>> >> Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES
> >>>>> >> MPI_CXX_INCLUDE_PATH)
> >>>>> >>
> >>>>> >> CMake Error: The following variables are used in this project,
> but they
> >>>>> >> are
> >>>>> >> set to NOTFOUND.
> >>>>> >>
> >>>>> >> Please set them or make sure they are set and tested correctly in
> the
> >>>>> >> CMake
> >>>>> >> files:
> >>>>> >>
> >>>>> >> MPI_LIBRARY (ADVANCED)
> >>>>> >>
> >>>>> >> linked by target "vtkParallelMPI" in directory
> >>>>> >> C:/Users/amaclean/Code/Kitware/src/VTK/Parallel/MPI
> >>>>> >>
> >>>>> >>
> >>>>> >> Regards
> >>>>> >> Andrew
> >>>>> >>
> >>>>> >> --
> >>>>> >> ___________________________________________
> >>>>> >> Andrew J. P. Maclean
> >>>>> >>
> >>>>> >> ___________________________________________
> >>>>> > _______________________________________________
> >>>>> > Powered by www.kitware.com
> >>>>> >
> >>>>> > Visit other Kitware open-source projects at
> >>>>> > http://www.kitware.com/opensource/opensource.html
> >>>>> >
> >>>>> > Follow this link to subscribe/unsubscribe:
> >>>>> > http://www.vtk.org/mailman/listinfo/vtk-developers
> >>>>> >
> >>>>>
> >>>>>
> >>>>>
> >>>>> --
> >>>>> Cory Quammen
> >>>>> Research Associate
> >>>>> Department of Computer Science
> >>>>> The University of North Carolina at Chapel Hill
> >>>>> _______________________________________________
> >>>>> Powered by www.kitware.com
> >>>>>
> >>>>> Visit other Kitware open-source projects at
> >>>>> http://www.kitware.com/opensource/opensource.html
> >>>>>
> >>>>> Follow this link to subscribe/unsubscribe:
> >>>>> http://www.vtk.org/mailman/listinfo/vtk-developers
> >>>>>
> >>>>
> >>
> >>
> >>
> >> --
> >> Cory Quammen
> >> Research Associate
> >> Department of Computer Science
> >> The University of North Carolina at Chapel Hill
>
>
>
> --
> Cory Quammen
> Research Associate
> Department of Computer Science
> The University of North Carolina at Chapel Hill
>
--
___________________________________________
Andrew J. P. Maclean
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120412/e6dfe019/attachment.html>
More information about the vtk-developers
mailing list