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

Andy Bauer andy.bauer at kitware.com
Thu Aug 1 21:09:51 EDT 2013


I'm assuming you're doing a shared library build so I'm guessing that the
source code isn't getting built the way you think it is. You probably want
to build with the full output (make VERBOSE=1 or whatever with your build)
to see exactly what's getting built and then linked in to the plugin
library. Remember since you're only building a library not all of your
dependencies have to be included. It's only when you create your executable
that it will check to make sure that everything is available.

You may also want to share the output from that as well as your
CMakeLists.txt file for the failed version.

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130801/7f7675fe/attachment-0001.htm>


More information about the Paraview-developers mailing list