[Paraview-developers] frustrating CMake problem when building ParaView plugin

Joshua Murphy Joshua.Murphy at lasp.colorado.edu
Fri Aug 2 00:01:43 EDT 2013


Thanks.  I combined the src and include directories and it works fine.
It would be nice to have the flexibility to separate them, but I can
deal with it this way.

Thanks again,
Josh

On Thu, 2013-08-01 at 19:19 -0600, Utkarsh Ayachit wrote: 
> I could go in more detail, but the the cmake macros that ParaView
> includes to build plugins assumes that the .h files are right next to
> the .cxx files. Consequently, they are not being wrapped and hence the
> error. You can have any directory structure so long as the .h files
> and .cxx files are next to each other. This is not CMake requirement,
> but the way the macros in ParaView are written. We could extend them
> if that's a common use-case.
> 
> On Thu, Aug 1, 2013 at 7:14 PM, Joshua Murphy
> <Joshua.Murphy at lasp.colorado.edu> wrote:
> > Hello,
> >
> > I am working on several custom plugins, and I am having a frustrating
> > problem with the build.
> >
> > I am trying to structure my code into the following directories:
> >
> > ./src
> > ./include
> > ./xml
> > ./ui
> >
> > with the CMakeLists.txt file in the root (./)
> >
> > When doing this, everything builds just fine, but when trying to load
> > the plugin in ParaView (4.0.1) I get the following error:
> >
> >
> >
> >> ERROR: In /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/ServerImplementation/Core/vtkSIProxy.cxx, line 307
> >> vtkSISourceProxy (0x13a3e10): Failed to create vtkSpaceCraftInfoSource. Aborting for debugging purposes.
> >>
> >>
> >> Aborted (core dumped)
> >
> >
> > However, if Everything is in the same directory, it works as expected.
> >
> > Now I am fairly new to cmake... so I could be doing something wrong.  I am pointing to files in subdirectories with src/<file>, include/<file>, ui/<file>, xml/<file>, etc.
> >
> > Is there some other way That I am supposed to be referring to these files? Is there some CMake stuff that needs to go to make this work?
> >
> >
> > Thank You in advance,
> > Josh
> >
> >
> > _______________________________________________
> > Paraview-developers mailing list
> > Paraview-developers at paraview.org
> > http://public.kitware.com/mailman/listinfo/paraview-developers



More information about the Paraview-developers mailing list